/* ============================================
   LLB SEMESTER 5 SYLLABUS - CSS STYLING
   Main Color: RGB(31, 150, 230)
   Border Color: RGB(101, 70, 224)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.8;
}

/* ============================================
   NAVBAR STYLING
   ============================================ */

.navbar {
    background: linear-gradient(135deg, rgb(31, 150, 230) 0%, rgb(101, 70, 224) 100%);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-title {
    color: white;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.print-btn {
    background-color: white;
    color: rgb(31, 150, 230);
    border: 2px solid rgb(101, 70, 224);
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.print-btn:hover {
    background-color: rgb(101, 70, 224);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ============================================
   MAIN CONTAINER
   ============================================ */

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION MENU
   ============================================ */

.navigation-menu {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid rgb(101, 70, 224);
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(31, 150, 230, 0.1);
}

.navigation-menu h3 {
    color: rgb(31, 150, 230);
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.nav-btn {
    background: linear-gradient(135deg, rgb(31, 150, 230) 0%, rgb(51, 170, 250) 100%);
    color: white;
    border: 2px solid rgb(101, 70, 224);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(31, 150, 230, 0.2);
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgb(101, 70, 224) 0%, rgb(31, 150, 230) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(31, 150, 230, 0.3);
}

.nav-btn:active {
    transform: translateY(-1px);
}

/* ============================================
   SECTION STYLING
   ============================================ */

.section {
    background: white;
    padding: 35px;
    margin-bottom: 30px;
    border-radius: 10px;
    border: 2px solid rgb(101, 70, 224);
    box-shadow: 0 5px 20px rgba(31, 150, 230, 0.15);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section h2 {
    color: rgb(31, 150, 230);
    font-size: 26px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid rgb(101, 70, 224);
    font-weight: bold;
    letter-spacing: 1px;
}

.section h3 {
    color: rgb(101, 70, 224);
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: bold;
}

/* ============================================
   CONTENT BOX
   ============================================ */

.content-box {
    background: linear-gradient(135deg, rgba(31, 150, 230, 0.05) 0%, rgba(101, 70, 224, 0.05) 100%);
    padding: 20px;
    border-left: 4px solid rgb(31, 150, 230);
    border-radius: 8px;
    margin: 15px 0;
}

.content-box p {
    color: #333;
    margin: 10px 0;
    font-weight: bold;
    font-size: 15px;
}

/* ============================================
   TABLE STYLING
   ============================================ */

.info-table, .coursemap-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(31, 150, 230, 0.1);
}

.info-table th, .coursemap-table th {
    background: linear-gradient(135deg, rgb(31, 150, 230) 0%, rgb(51, 170, 250) 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    font-size: 15px;
    border: 2px solid rgb(101, 70, 224);
}

.info-table td, .coursemap-table td {
    padding: 14px 15px;
    border: 1px solid rgb(101, 70, 224);
    color: #333;
    font-weight: bold;
}

.info-table tr:nth-child(even), .coursemap-table tr:nth-child(even) {
    background: rgba(31, 150, 230, 0.05);
}

.info-table tr:hover, .coursemap-table tr:hover {
    background: rgba(31, 150, 230, 0.1);
    transition: background 0.3s ease;
}

.total-row {
    background: linear-gradient(135deg, rgb(31, 150, 230) 0%, rgb(101, 70, 224) 100%);
}

.total-row td {
    color: white;
    font-weight: bold;
    border: 2px solid rgb(101, 70, 224);
}

/* ============================================
   LIST STYLING
   ============================================ */

.paper-list, .books-list {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.paper-list li, .books-list li {
    padding: 10px 15px;
    margin: 8px 0;
    background: linear-gradient(90deg, rgba(31, 150, 230, 0.1) 0%, transparent 100%);
    border-left: 4px solid rgb(31, 150, 230);
    border-radius: 4px;
    color: #333;
    font-weight: bold;
    transition: all 0.3s ease;
}

.paper-list li:hover, .books-list li:hover {
    background: linear-gradient(90deg, rgba(31, 150, 230, 0.2) 0%, transparent 100%);
    transform: translateX(5px);
    border-left-color: rgb(101, 70, 224);
}

/* ============================================
   PAPER CONTENT
   ============================================ */

.paper-content {
    padding: 20px;
    background: rgba(31, 150, 230, 0.03);
    border-radius: 8px;
}

/* ============================================
   FLOWCHART STYLING
   ============================================ */

.flowchart-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 2px solid rgb(31, 150, 230);
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(31, 150, 230, 0.1);
}

.flowchart-container svg {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
}

/* ============================================
   COURSEMAP CONTAINER
   ============================================ */

.coursemap-container {
    background: rgba(31, 150, 230, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, rgb(31, 150, 230) 0%, rgb(101, 70, 224) 100%);
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    border-top: 3px solid rgb(101, 70, 224);
    border-radius: 8px 8px 0 0;
}

.footer p {
    font-weight: bold;
    margin: 8px 0;
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    body {
        background: white;
    }

    .navbar, .print-btn, .navigation-menu {
        display: none;
    }

    .section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
    }

    .nav-btn {
        display: none;
    }

    .section h2 {
        color: #000;
        border-color: #000;
    }

    .section h3 {
        color: #333;
    }

    table {
        border-collapse: collapse;
        width: 100%;
    }

    table th {
        background: #f0f0f0 !important;
        color: #000 !important;
    }

    table tr:nth-child(even) {
        background: #f9f9f9 !important;
    }

    .footer {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        background: #f5f5f5;
        color: #333;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-title {
        font-size: 20px;
    }

    .print-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    .section {
        padding: 20px;
    }

    .section h2 {
        font-size: 22px;
    }

    .section h3 {
        font-size: 16px;
    }

    .nav-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .nav-btn {
        padding: 10px 15px;
        font-size: 12px;
    }

    table {
        font-size: 14px;
    }

    table th, table td {
        padding: 10px;
    }

    .flowchart-container {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-title {
        font-size: 18px;
        text-align: center;
    }

    .section {
        padding: 15px;
    }

    .section h2 {
        font-size: 20px;
    }

    .nav-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-table, .coursemap-table {
        font-size: 12px;
    }

    .info-table th, .coursemap-table th {
        padding: 10px;
    }

    .info-table td, .coursemap-table td {
        padding: 8px;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: rgb(31, 150, 230);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(101, 70, 224);
}