/* Wrapper and Responsiveness */

/* Wrapper and Responsiveness */
.syllabus-wrapper {
    max-width: 100%;
    margin: 20px 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.table-responsive {
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    background-color: #fff;
}

/* Table Base Styles */
.syllabus-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Prevents squishing on desktop screens */
}
.syllabus-table th, 
.syllabus-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

/* Headers */
.syllabus-table .semester-title {
    background-color: #1e293b;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.syllabus-table .column-headers th {
    background-color: #f8fafc;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
}
.syllabus-table .align-left {
    text-align: left;
}

/* Body Rows */
.syllabus-table tbody tr {
    transition: background-color 0.2s ease;
}
.syllabus-table tbody tr:hover {
    background-color: #f1f5f9;
}
.syllabus-table .course-name {
    text-align: left;
    font-weight: 600;
    color: #0f172a;
}
.syllabus-table p {
    margin: 4px 0;
}

/* Footer (Totals) */
.syllabus-table .footer-row td {
    background-color: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}
.syllabus-table .total-label {
    text-align: right;
    padding-right: 24px;
}

/* Links and Buttons */
.syllabus-table .action-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: inline-block;
}
.syllabus-table .action-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}
.full-syllabus-action {
    text-align: center;
    margin-top: 24px;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #059669;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.1s;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}
.btn-download:hover {
    background-color: #047857;
    color: #ffffff;
    transform: translateY(-1px);
}

/* --- MOBILE RESPONSIVENESS FIXES --- */
@media (max-width: 640px) {
    .syllabus-table {
        min-width: 100%; /* Allows table to shrink to mobile screen */
    }
    .hide-mobile {
        display: none !important; /* Hides the less important columns */
    }
    .syllabus-table th, 
    .syllabus-table td {
        padding: 12px 8px; /* Reduces padding slightly to save space */
        font-size: 0.85rem; /* Shrinks text slightly for mobile */
    }
    .syllabus-table .course-name {
        font-size: 0.9rem;
    }
    .syllabus-table .semester-title {
        font-size: 1rem;
    }
    .btn-download {
        width: 100%; /* Makes download button full-width on mobile */
        box-sizing: border-box;
    }
}

.isoui-syl-wrapper {
  all: initial; 
  font-family: system-ui, -apple-system, sans-serif;
  display: block;
  width: 100%;
  color: #cbd5e1;
  line-height: 1.6;
}

.isoui-syl-wrapper * {
  box-sizing: border-box;
}

.isoui-syl-container {
  background: #0f172a;
  border-radius: 12px;
  padding: 30px;
  border: 1px solid #1e293b;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Header & Meta Information */
.isoui-syl-header-top {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1e293b;
}

.isoui-syl-uni { color: #94a3b8; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; margin: 0;}
.isoui-syl-degree { color: #3b82f6; font-size: 1.1rem; font-weight: 600; margin: 5px 0 15px 0;}
.isoui-syl-title { color: #f8fafc; font-size: 2.2rem; font-weight: 800; margin: 0; letter-spacing: -0.5px; }

.isoui-syl-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.isoui-syl-meta-card {
  background: #1e293b;
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}
.isoui-syl-meta-card.teal { border-left-color: #0d9488; }
.isoui-syl-meta-card.purple { border-left-color: #9333ea; }
.isoui-syl-meta-card.rose { border-left-color: #e11d48; }

.isoui-syl-meta-label { font-size: 0.75rem; text-transform: uppercase; color: #94a3b8; font-weight: 700; letter-spacing: 0.5px; }
.isoui-syl-meta-value { color: #f8fafc; font-weight: 600; font-size: 1.1rem; margin-top: 4px; display: block; }

/* Descriptions */
.isoui-syl-info-box {
  background: rgba(30, 41, 59, 0.5);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #334155;
}
.isoui-syl-info-box strong { color: #f8fafc; font-size: 1.1rem; display: block; margin-bottom: 8px;}

/* Section Headings */
.isoui-syl-heading {
  color: #f8fafc;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.isoui-syl-heading::after { content: ''; flex: 1; height: 1px; background: #334155; }

/* Unit Cards */
.isoui-syl-unit {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.isoui-syl-unit:hover {
  border-color: #475569;
  transform: translateY(-2px);
}
.isoui-syl-unit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.isoui-syl-unit-title {
  color: #f8fafc;
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0;
}
.isoui-syl-badge {
  background: #2563eb;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.isoui-syl-badge.lab { background: #0d9488; }
.isoui-syl-unit-content { font-size: 0.95rem; color: #94a3b8; margin: 0; }

/* Book Lists */
.isoui-syl-book-list { list-style: none; padding: 0; margin: 0; }
.isoui-syl-book-list li {
  padding: 12px 15px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  background: #1e293b;
  margin-bottom: 8px;
  border-radius: 6px;
}
.isoui-syl-book-list li::before { content: '📖'; font-size: 1.2rem; }
.isoui-syl-book-list strong { color: #f8fafc; }

/* Mobile Responsive */
@media (max-width: 600px) {
  .isoui-syl-container { padding: 15px; }
  .isoui-syl-title { font-size: 1.8rem; }
  .isoui-syl-unit-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}



/* Main Wrapper */
.csit-notes-wrapper {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 100%;
    margin: 20px 0;
    color: #334155;
}

/* Subject Blocks */
.csit-subject-block {
    margin-bottom: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.csit-subject-title {
    background-color: #1e293b;
    color: #ffffff;
    margin: 0;
    padding: 16px 20px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Chapter List & Items */
.csit-chapter-list {
    display: flex;
    flex-direction: column;
}

.csit-chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.csit-chapter-item:last-child {
    border-bottom: none;
}

.csit-chapter-item:hover {
    background-color: #f8fafc;
}

/* Chapter Info (Left Side) */
.csit-chapter-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.csit-chapter-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.csit-chapter-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

/* Resources & Buttons (Right Side) */
.csit-chapter-resources {
    display: flex;
    align-items: center;
    gap: 20px;
}

.csit-badges {
    display: flex;
    gap: 8px;
}

/* Badges for File Types */
.csit-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pdf { background-color: #fee2e2; color: #b91c1c; }
.badge-pptx { background-color: #ffedd5; color: #c2410c; }
.badge-cheat { background-color: #dcfce7; color: #15803d; }

/* Action Button */
.csit-btn-action {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
    background-color: transparent;
    border: 1px solid #2563eb;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.csit-btn-action:hover {
    background-color: #2563eb;
    color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .csit-chapter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .csit-chapter-resources {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}