/* Styles */
:root {
    --primary-color: #2b8768;
    --secondary-color: #40af8a;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-description {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-bottom: 1.5rem;
}

.feature-description h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.feature-description ul {
    margin-left: 1.5rem;
}

.feature-description ul li {
    margin-bottom: 0.5rem;
}

/* Screenshot Containers */
.screenshot-container {
    margin: 2rem 0;
    display: grid;
    gap: 2rem;
}

.screenshot-container.single-img {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-container.double-img {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.screenshot-container.triple-img {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.screenshot-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.img-caption {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
}

/* Alert Boxes */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
}

.alert-info {
    border-left-color: var(--info-color);
    background-color: #eff6ff;
    color: #1e40af;
}

.alert-tip {
    border-left-color: var(--success-color);
    background-color: #f0fdf4;
    color: #166534;
}

.alert-warning {
    border-left-color: var(--warning-color);
    background-color: #fffbeb;
    color: #92400e;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Quick Navigation */
.quick-nav {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.quick-nav h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

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

.quick-nav-item {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--light-color) 0%, #e5e7eb 100%);
    border-radius: var(--border-radius);
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
}

.quick-nav-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Progress Indicator */
.progress-indicator {
    position: sticky;
    top: 20px;
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    z-index: 100;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

/* Feature Lists */
ul.feature-list {
    list-style: none;
    padding-left: 0;
}

ul.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

ul.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.3em;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.badge-active {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-approved {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-reject {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-paid {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-due {
    background-color: #fef3c7;
    color: #92400e;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 1000;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.3);
}

/* Collapsible Sections */
.collapsible {
    background-color: var(--light-color);
    color: var(--dark-color);
    cursor: pointer;
    padding: 1.25rem;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapsible:hover {
    background-color: #e5e7eb;
}

.collapsible:after {
    content: '\002B';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
}

.collapsible.active {
    background-color: var(--primary-color);
    color: white;
}

.collapsible.active:after {
    content: "\2212";
    color: white;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.collapsible-content-inner {
    padding: 1.5rem;
}

/* Section Headers */
.doc-title {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.doc-title:before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #459771 0%, #1fb687 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.highlight-box h3 {
    margin-bottom: 1rem;
}

.highlight-box ul {
    margin-left: 1.5rem;
}

/* Sidebar Styles */
.doc-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: white;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.doc-sidebar .navbar-primary {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.doc-sidebar .navbar-primary img {
    max-width: 140px;
}

.doc-sidebar .navbar {
    padding: 0 1rem;
}

.doc-sidebar .navbar-aside {
    margin-bottom: 1.5rem;
}

.doc-sidebar .nav-link {
    padding: 0.75rem 1rem;
    color: #4b5563;
    font-size: 0.95rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
}

.doc-sidebar .nav-link:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
    transform: translateX(4px);
}

.doc-sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
}

.doc-sidebar .submenu-nav {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.doc-sidebar .submenu-nav .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Topbar Styles */
.doc-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
}

.doc-topbar .topbar-content {
    height: 100%;
    padding: 0 1.5rem;
}

.btn-toggle-sidenav {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content Area */
.doc-content-wrapper {
    margin-left: 280px;
    padding: 2rem;
    max-width: 1200px;
}

/* Sidebar Overlay for Mobile */
.doc-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doc-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .doc-topbar {
        display: block;
    }

    .doc-sidebar {
        transform: translateX(-100%);
    }

    .doc-sidebar.active {
        transform: translateX(0);
    }

    .doc-content-wrapper {
        margin-left: 0;
        padding: 1.5rem;
        margin-top: 70px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .screenshot-container.double-img,
    .screenshot-container.triple-img {
        grid-template-columns: 1fr;
    }

    .quick-nav-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .doc-sidebar,
    .doc-topbar,
    #backToTop,
    .progress-indicator {
        display: none;
    }

    .doc-content-wrapper {
        margin-left: 0;
    }
}
