:root {
    --primary-bg: #0f172a;
    --primary-accent: #3b82f6;
    --secondary-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #ffffff;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 8px;
    --radius-lg: 12px;
}


/* Breadcrumb Navigation */

.breadcrumb-nav {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.breadcrumb-link {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.breadcrumb-link:hover {
    color: var(--primary-accent);
}

.breadcrumb-separator {
    color: var(--text-muted);
    margin: 0 0.5rem;
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: var(--text-light);
    font-weight: 600;
}


/* Progress Indicator */

.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-accent), #60a5fa);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 10%;
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

body {
    background: var(--primary-bg);
    /* Dark blue background like index.html */
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Header */

.header {
    background: var(--secondary-bg);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    flex: 1;
}

.header-center {
    flex: 2;
    text-align: center;
}

.header-right {
    flex: 1;
    text-align: right;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.header-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.header-top {
    margin-bottom: 0;
}

.back-link {
    color: var(--primary-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: #2563eb;
    transform: translateX(-2px);
}

.premium-badge {
    background: var(--primary-accent);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}


/* Main Layout */

.main-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    padding: 2rem 0;
}


/* Progress Indicator - Make it sticky */

.progress-container {
    position: sticky;
    top: 70px;
    z-index: 98;
    background: var(--primary-bg);
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}


/* Sidebar Navigation */

.sidebar {
    position: sticky;
    top: 120px;
    height: calc(100vh - 140px);
    z-index: 97;
    margin-top: 1rem;
    overflow-y: auto;
}

.nav-card {
    background: var(--secondary-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.nav-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-list {
    padding: 1rem;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-button:hover {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-button.active {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-button i {
    width: 1rem;
    text-align: center;
}

.nav-button-text {
    flex: 1;
}

.nav-button-title {
    font-weight: 500;
    font-size: 0.875rem;
}

.nav-button-subtitle {
    font-size: 0.75rem;
    opacity: 0.75;
}


/* Main Content */

.main-content {
    background: var(--secondary-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    min-height: 800px;
}

.content-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.025em;
}

.content-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.nav-btn:hover:not(:disabled) {
    background: #f1f5f9;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* Search Overlay */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-container {
    background: var(--secondary-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
}

.search-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-header h3 {
    margin: 0;
    color: var(--text-dark);
}

.search-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
}

.search-input-container {
    padding: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

#search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
}

.search-btn {
    padding: 0.75rem 1rem;
    background: var(--primary-accent);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

.search-results {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.search-result-excerpt {
    color: var(--text-muted);
    font-size: 0.875rem;
}


/* Quick Reference Section */

.quick-reference {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.quick-ref-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quick-ref-header h3 {
    margin: 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-all-btn {
    background: var(--primary-accent);
    color: var(--text-light);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.download-all-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.quick-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-ref-item {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quick-ref-item:hover {
    background: #f1f5f9;
    border-color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quick-ref-item i {
    color: var(--primary-accent);
    font-size: 1.25rem;
}

.quick-ref-item span {
    font-weight: 500;
    color: var(--text-dark);
}


/* Interactive Checklists */

.checklist-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    margin-left: auto;
    transition: var(--transition);
}

.checklist-toggle:hover {
    color: var(--primary-accent);
}

.checklist-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.checklist-btn {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
}

.checklist-btn:hover {
    background: #e2e8f0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.checklist-item:hover {
    background: #f8fafc;
}

.checklist-item.completed {
    background: #f0fdf4;
    border-color: #10b981;
}

.checklist-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.checklist-text {
    flex: 1;
    font-weight: 500;
}

.checklist-item.completed .checklist-text {
    text-decoration: line-through;
    color: #10b981;
}


/* Best Practices Callout */

.best-practices-callout {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.callout-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.callout-header i {
    color: #f59e0b;
    font-size: 1.5rem;
}

.callout-header h4 {
    margin: 0;
    color: #92400e;
    font-weight: 600;
}

.callout-content ul {
    margin: 0;
    padding-left: 1.5rem;
}

.callout-content li {
    margin-bottom: 0.5rem;
    color: #92400e;
}

.callout-content li:last-child {
    margin-bottom: 0;
}


/* Related Topics Section */

.related-topics {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 3rem;
}

.related-topics h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-item {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.related-item:hover {
    background: #f1f5f9;
    border-color: var(--primary-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.related-item i {
    color: var(--primary-accent);
    font-size: 1.5rem;
}

.related-item span {
    font-weight: 500;
}

.content-body {
    padding: 2rem;
}


/* Cards */

.card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.025em;
}

.card-content {
    padding: 1.5rem;
}


/* Grid Layouts */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}


/* Lists */

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.feature-list i {
    color: #10b981;
    width: 1rem;
}


/* Badges */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0.25rem;
}


/* Icons */

.icon-large {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
}

.icon-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.icon-green {
    background: #dcfce7;
    color: #059669;
}

.icon-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.icon-orange {
    background: #fed7aa;
    color: #ea580c;
}


/* Process Flow */

.process-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.process-flow .badge {
    margin: 0;
}


/* Page Content Styles */

.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-gray-600 {
    color: #475569;
    font-weight: 500;
    letter-spacing: 0.025em;
}


/* Responsive */

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        order: 2;
        height: auto;
        overflow-y: visible;
    }
    .main-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0.5rem 0;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .header-left,
    .header-center,
    .header-right {
        flex: none;
        text-align: center;
    }
    .header-title {
        font-size: 1.25rem;
    }
    .header-subtitle {
        font-size: 0.8rem;
    }
    .progress-container {
        position: static;
        padding: 0.75rem 0;
        margin-bottom: 0.5rem;
    }
    .breadcrumb-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .content-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .nav-btn {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-container {
        width: 95%;
        margin: 1rem;
    }
    .nav-card {
        margin-bottom: 1rem;
    }
    .nav-list {
        max-height: 300px;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .content-body {
        padding: 1rem;
    }
    .card-content {
        padding: 1rem;
    }
    .quick-ref-grid {
        grid-template-columns: 1fr;
    }
    .quick-ref-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .checklist-controls {
        flex-direction: column;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .best-practices-callout {
        padding: 1rem;
    }
}


/* Notification System */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.notification-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.notification-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 1rem;
    opacity: 0.7;
    transition: var(--transition);
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Loading States */

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* Enhanced button states */

.checklist-btn:disabled,
.download-all-btn:disabled,
.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checklist-btn.loading,
.download-all-btn.loading,
.search-btn.loading {
    background: linear-gradient(135deg, #64748b, #475569);
}


/* Print styles for the print function */

@media print {
    body {
        font-family: Arial, sans-serif;
        line-height: 1.6;
        margin: 0;
    }
    .card {
        border: 1px solid #ccc;
        margin: 1rem 0;
        padding: 1rem;
    }
    .card-header {
        background: #f5f5f5;
        padding: 0.5rem;
        margin: -1rem -1rem 1rem -1rem;
    }
    table {
        border-collapse: collapse;
        width: 100%;
    }
    th,
    td {
        border: 1px solid #ccc;
        padding: 0.5rem;
    }
    th {
        background: #f5f5f5;
    }
}