/* Regulatory Documents Page Modern Styling */
.regulatory-documents-container {
    margin-bottom: 60px;
}

/* Sidebar Styling */
.sidebar-content {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.sidebar-content h5 {
    color: #003366;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0066cc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar-content > div {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-content > div:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Sidebar Program Sections */
.sidebar-program {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-program:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-docs-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 6px 0;
}

.sidebar-docs-list li {
    padding: 2px 0;
    margin-bottom: 2px;
}

.sidebar-docs-list li a {
    font-size: 0.75rem;
    color: #0066cc;
    text-decoration: none;
    line-height: 1.3;
}

.sidebar-docs-list li a:hover {
    color: #004499;
    text-decoration: underline;
}

.sidebar-content h6 {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.sidebar-content h6 a {
    color: #0066cc !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-content h6 a:hover {
    color: #004499 !important;
    text-decoration: underline !important;
}

.sidebar-content ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.sidebar-content li {
    margin-bottom: 4px;
    transition: all 0.2s ease;
    padding: 2px 0;
}

.sidebar-content li:hover {
    padding-left: 8px;
    background: #f8f9fa;
}

.sidebar-content li a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
    line-height: 1.3;
}

.sidebar-content li a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Sidebar Publications Accordion */
.sidebar-publications {
    margin-top: 8px;
}

.sidebar-pub-toggle {
    width: 100%;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 102, 204, 0.2);
    font-weight: 600;
}

.sidebar-pub-toggle:hover {
    background: linear-gradient(135deg, #004499 0%, #003366 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.3);
}

.sidebar-pub-toggle i:first-child {
    margin-right: 6px;
    font-size: 0.7rem;
}

.sidebar-toggle-icon {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.sidebar-pub-toggle.active .sidebar-toggle-icon {
    transform: rotate(180deg);
}

.sidebar-pub-content {
    max-height: 0;
    overflow: auto;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8f9fa;
    border-radius: 0 0 4px 4px;
    margin-top: 2px;
}

.sidebar-pub-content.active {
    max-height: 400px;
    padding: 6px 0;
}

.sidebar-pub-content ul {
    margin: 0;
    padding-left: 10px;
}

.sidebar-pub-content li {
    padding: 4px 6px;
    margin-bottom: 2px;
    background: transparent;
}

.sidebar-pub-content li:hover {
    background: white;
    padding-left: 10px;
}

.sidebar-pub-content li a {
    font-size: 0.7rem;
    line-height: 1.3;
}

/* Main Content Area */
.main-content-area {
    padding: 25px 35px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h1.page-title {
    color: #003366;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 15px;
    border-bottom: 3px solid #0066cc;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 35px;
    color: #495057;
}

.intro-text p {
    margin-bottom: 0;
}

/* Gantt Table Styling */
.gantt-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gantt-table th {
    background: linear-gradient(135deg, #003366 0%, #004499 100%);
    color: white;
    padding: 18px 12px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #002244;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
}

.gantt-table thead tr th:first-child {
    border-top-left-radius: 12px;
}

.gantt-table thead tr th:last-child {
    border-top-right-radius: 12px;
}

.gantt-table td {
    padding: 12px;
    border: 1px solid #dee2e6;
    position: relative;
    height: 60px;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

.gantt-table tbody tr:hover td {
    background-color: #f8f9fa;
}

.phase-column {
    border-left: 2px solid #0066cc !important;
}

.disease-area-cell {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    vertical-align: middle;
    text-align: center;
    border-right: 2px solid #0066cc !important;
}

.disease-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.disease-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.disease-icon:hover {
    transform: scale(1.1);
}

.disease-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.4;
    color: #003366;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.program-name {
    font-size: 0.85rem;
    color: #495057;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

.timeline-bar {
    position: absolute;
    height: 38px;
    background: linear-gradient(90deg, #0066cc 0%, #4d94d6 50%, #0066cc 100%);
    top: 50%;
    transform: translateY(-50%);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.timeline-bar:hover {
    background: linear-gradient(90deg, #004499 0%, #0066cc 50%, #004499 100%);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
    transform: translateY(-50%) scale(1.02);
}

/* Disease Icon Colors */
.inborn-errors-icon {
    background: #0073CF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

.inborn-errors-icon img {
    width: 95%;
    height: 95%;
    object-fit: contain;
}

.neurological-icon {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.retinal-icon {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
    color: white;
}

/* Coming Soon Styling */
.coming-soon-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 500;
}

/* Publications Column Styling */
.publications-cell {
    text-align: center;
    vertical-align: middle;
    padding: 8px !important;
}

.publications-toggle {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.2);
    margin: 0 auto;
}

.publications-toggle:hover {
    background: linear-gradient(135deg, #004499 0%, #003366 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.publications-toggle .pub-count {
    background: white;
    color: #0066cc;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.publications-toggle .toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.no-publications {
    color: #6c757d;
    font-size: 1.2rem;
    font-weight: 300;
}

/* Publications Expandable Row */
.publications-row {
    display: none;
}

.publications-row.active {
    display: table-row;
}

.publications-content {
    padding: 0 !important;
    background: #f8f9fa;
    border-top: 3px solid #0066cc !important;
}

.publications-container {
    padding: 30px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.publications-title {
    color: #003366;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0066cc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.publications-title i {
    color: #0066cc;
}

/* Publications List */
.publications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.publications-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: white;
    border-left: 4px solid #0066cc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.publications-list li:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.15);
    transform: translateX(5px);
}

.publications-list li:last-child {
    margin-bottom: 0;
}

.publications-list li a {
    color: #003366;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    display: block;
}

.publications-list li a:hover {
    color: #0066cc;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar-content {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }

    .main-content-area {
        padding: 20px;
    }

    h1.page-title {
        font-size: 1.5rem;
    }

    .gantt-table {
        font-size: 0.8rem;
    }

    .gantt-table th {
        padding: 12px 8px;
    }

    .disease-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .disease-label {
        font-size: 0.75rem;
    }

    .publications-container {
        padding: 20px;
    }

    .publications-toggle {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .publications-title {
        font-size: 1.1rem;
    }

    .publications-list li {
        padding: 10px 12px;
    }

    .publications-list li a {
        font-size: 0.85rem;
    }
}