/* PROFESSIONAL LEGAL DOCUMENT STYLING FOR ADR PROJECT */

/* ==================== ROOT VARIABLES ==================== */
:root {
    /* Professional Color Palette */
    --primary-bg: rgb(245, 245, 245);
    --secondary-bg: rgb(255, 255, 255);
    --header-bg: rgb(25, 53, 92);
    --header-accent: rgb(139, 166, 205);
    --text-primary: rgb(34, 34, 34);
    --text-secondary: rgb(68, 68, 68);
    --border-color: rgb(25, 53, 92);
    --border-light: rgb(200, 200, 200);
    --link-color: rgb(0, 102, 204);
    --link-hover: rgb(0, 68, 136);
    --button-bg: rgb(25, 53, 92);
    --button-hover: rgb(15, 35, 60);
    --highlight-bg: rgb(255, 251, 230);
    --table-header-bg: rgb(25, 53, 92);
    --table-row-alt: rgb(240, 248, 255);
    --box-shadow: rgba(0, 0, 0, 0.1);
    --accent-gold: rgb(184, 134, 11);
    --footnote-bg: rgb(250, 250, 250);
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    font-weight: bold;
}

.container {
    max-width: 210mm;
    margin: 0 auto;
    background-color: var(--secondary-bg);
    box-shadow: 0 0 10px var(--box-shadow);
}

/* ==================== NAVIGATION MENU ==================== */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: var(--header-bg);
    color: white;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 5px var(--box-shadow);
}

.nav-toggle {
    padding: 20px;
    background-color: var(--button-bg);
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 2px solid var(--accent-gold);
    text-align: center;
}

.nav-toggle:hover {
    background-color: var(--button-hover);
}

.nav-list {
    list-style: none;
    padding: 20px 0;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 12pt;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-list a:hover {
    background-color: var(--button-hover);
    border-left: 4px solid var(--accent-gold);
    padding-left: 25px;
}

/* ==================== PRINT BUTTON ==================== */
.print-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.print-btn {
    background-color: var(--button-bg);
    color: white;
    border: 2px solid var(--accent-gold);
    padding: 12px 24px;
    font-size: 14pt;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 4px 6px var(--box-shadow);
    transition: all 0.3s ease;
}

.print-btn:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px var(--box-shadow);
}

/* ==================== PAGE STRUCTURE ==================== */
.page {
    padding: 20mm;
    margin: 0;
    min-height: 297mm;
    border: 3pt solid var(--border-color);
    position: relative;
    page-break-after: always;
    background-color: var(--secondary-bg);
}

.page-title {
    font-size: 16pt;
    font-weight: bold;
    text-align: center;
    color: var(--header-bg);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--border-color);
    padding-bottom: 10px;
}

.page-number {
    position: absolute;
    bottom: 15mm;
    right: 20mm;
    font-size: 11pt;
    font-weight: bold;
    color: var(--text-secondary);
}

/* ==================== COVER PAGE ==================== */
.cover-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgb(245, 245, 245) 0%, rgb(255, 255, 255) 100%);
}

.college-logo {
    font-size: 80px;
    margin-bottom: 20px;
    color: var(--header-bg);
}

.college-name {
    font-size: 24pt;
    font-weight: bold;
    color: var(--header-bg);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-box {
    border: 4px solid var(--border-color);
    padding: 30px;
    margin: 30px 0;
    background-color: var(--highlight-bg);
    box-shadow: 0 4px 8px var(--box-shadow);
}

.project-title {
    font-size: 18pt;
    font-weight: bold;
    color: var(--text-primary);
    line-height: 1.6;
    text-transform: uppercase;
}

.project-details {
    margin: 30px 0;
    text-align: left;
    width: 80%;
}

.project-details p {
    margin: 12px 0;
    font-size: 13pt;
    font-weight: bold;
}

.submission-date {
    margin: 20px 0;
    font-size: 13pt;
    font-weight: bold;
}

.teacher-name {
    margin-top: 40px;
    font-size: 13pt;
    font-weight: bold;
}

/* ==================== CONTENT TEXT ==================== */
.content-text {
    text-align: justify;
    font-size: 12pt;
    line-height: 1.5;
    font-weight: bold;
}

.content-text p {
    margin-bottom: 15px;
    text-indent: 0;
}

.content-text h4 {
    font-size: 14pt;
    font-weight: bold;
    color: var(--header-bg);
    margin-top: 25px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-gold);
    padding-left: 10px;
}

.content-text h5 {
    font-size: 13pt;
    font-weight: bold;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 12px;
    text-decoration: underline;
}

/* ==================== CHAPTER PAGES ==================== */
.chapter-page {
    background-color: var(--secondary-bg);
}

.chapter-title {
    font-size: 18pt;
    font-weight: bold;
    text-align: center;
    color: var(--header-bg);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.chapter-subtitle {
    font-size: 14pt;
    font-weight: bold;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* ==================== LISTS ==================== */
.bullet-list {
    list-style: disc;
    margin-left: 40px;
    margin-bottom: 15px;
    font-weight: bold;
}

.bullet-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.inner-bullet-list {
    list-style: circle;
    margin-left: 30px;
    margin-top: 8px;
}

.declaration-points {
    list-style: decimal;
    margin-left: 40px;
    font-weight: bold;
}

.declaration-points li {
    margin-bottom: 15px;
    line-height: 1.5;
}

/* ==================== TABLES ==================== */
.cases-table,
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 11pt;
    font-weight: bold;
    box-shadow: 0 2px 4px var(--box-shadow);
}

.cases-table thead,
.info-table thead {
    background-color: var(--table-header-bg);
    color: white;
}

.cases-table th,
.info-table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border: 1px solid var(--border-color);
}

.cases-table td,
.info-table td {
    padding: 10px;
    border: 1px solid var(--border-light);
}

.cases-table tbody tr:nth-child(even),
.info-table tbody tr:nth-child(even) {
    background-color: var(--table-row-alt);
}

.cases-table tbody tr:hover,
.info-table tbody tr:hover {
    background-color: var(--highlight-bg);
}

/* ==================== STATUTORY PROVISIONS ==================== */
.statutory-provision {
    background-color: var(--highlight-bg);
    border-left: 4px solid var(--border-color);
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    font-size: 11pt;
    font-weight: bold;
}

.statutory-provision p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ==================== FOOTNOTES ==================== */
.footnotes {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    background-color: var(--footnote-bg);
    padding: 15px;
}

.footnote-line {
    width: 3in;
    border: none;
    border-top: 1px solid var(--text-secondary);
    margin: 0;
    margin-bottom: 15px;
}

.footnote {
    font-size: 10pt;
    line-height: 1.0;
    margin-bottom: 8px;
    text-align: justify;
    font-weight: normal;
}

.footnote sup {
    font-weight: bold;
}

/* ==================== SIGNATURE BLOCK ==================== */
.signature-block {
    margin-top: 40px;
    font-weight: bold;
}

.signature-block p {
    margin-bottom: 15px;
}

/* ==================== CONTENTS PAGE ==================== */
.contents-list {
    margin: 20px 0;
}

.contents-item {
    margin-bottom: 5px;
}

.contents-btn {
    width: 100%;
    text-align: left;
    background-color: transparent;
    border: 1px solid var(--border-light);
    padding: 12px 15px;
    cursor: pointer;
    font-size: 12pt;
    font-weight: bold;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contents-btn:hover {
    background-color: var(--header-bg);
    color: white;
    border-color: var(--border-color);
}

.chapter-item .contents-btn {
    background-color: var(--highlight-bg);
    border-left: 4px solid var(--border-color);
}

.contents-title {
    flex: 1;
}

.contents-page {
    font-style: italic;
    color: var(--text-secondary);
}

.contents-btn:hover .contents-page {
    color: white;
}

/* ==================== BIBLIOGRAPHY ==================== */
.biblio-list {
    list-style: none;
    margin: 20px 0;
    font-weight: bold;
}

.biblio-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    text-indent: -20px;
    line-height: 1.5;
}

.disclaimer-text {
    margin-top: 30px;
    padding: 15px;
    background-color: var(--highlight-bg);
    border: 2px solid var(--accent-gold);
    font-style: italic;
    font-weight: bold;
}

/* ==================== VISUAL AIDS ==================== */
.visual-page {
    padding: 15mm;
}

canvas {
    display: block;
    width: 100%;
    height: auto;
    margin: 20px auto;
    border: 2px solid var(--border-light);
    box-shadow: 0 2px 4px var(--box-shadow);
}

/* ==================== FOOTER ==================== */
.educational-footer {
    background-color: var(--header-bg);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 10pt;
    font-weight: bold;
    border-top: 3px solid var(--accent-gold);
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        box-shadow: none;
    }
    
    .page {
        border: 3pt solid var(--border-color);
        page-break-after: always;
        margin: 0;
        box-shadow: none;
    }
    
    .page-title {
        font-size: 16pt;
        color: black;
    }
    
    .chapter-title {
        font-size: 18pt;
        color: black;
    }
    
    .content-text h4 {
        color: black;
    }
    
    a {
        color: black;
        text-decoration: none;
    }
    
    .cases-table,
    .info-table {
        page-break-inside: avoid;
    }
    
    .statutory-provision {
        page-break-inside: avoid;
    }
    
    canvas {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media screen and (max-width: 768px) {
    .nav-menu {
        transform: translateX(-250px);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .container {
        margin: 0;
        padding: 0;
    }
    
    .page {
        padding: 15mm;
        min-height: auto;
        border-width: 2pt;
    }
    
    .college-name {
        font-size: 18pt;
    }
    
    .project-title {
        font-size: 14pt;
    }
    
    .project-details {
        width: 95%;
    }
    
    .print-button-container {
        top: 10px;
        right: 10px;
    }
    
    .print-btn {
        padding: 8px 16px;
        font-size: 12pt;
    }
}

/* ==================== ACCESSIBILITY ==================== */
.contents-btn:focus,
.print-btn:focus {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

a:focus {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page {
    animation: fadeIn 0.5s ease-in-out;
}

/* ==================== CUSTOM SCROLLBAR ==================== */
.nav-menu::-webkit-scrollbar {
    width: 8px;
}

.nav-menu::-webkit-scrollbar-track {
    background: var(--header-bg);
}

.nav-menu::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgb(205, 164, 51);
}

/* ==================== EMPHASIS AND SPECIAL TEXT ==================== */
strong {
    font-weight: bold;
    color: var(--text-primary);
}

em {
    font-style: italic;
}

sup {
    font-size: 0.8em;
    vertical-align: super;
    font-weight: bold;
}

/* ==================== END OF STYLESHEET ==================== */