:root {
    --color-bg: #f4f6f9;
    --color-sidebar: #1f2937;
    --color-sidebar-hover: #374151;
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-text: #111827;
    --color-text-light: #9ca3af;
    --color-border: #e5e7eb;
}

/* ===== GLOBAL ===== */
body {
    overflow-x: hidden;
    background-color: var(--color-bg);
    color: var(--color-text);
}
/* ===== REMOVE UNDERLINE ===== */
a {
    text-decoration: none;
    color: inherit;
}

/* ===== REMOVE UNDERLINE ===== */
.footer-link {
    text-decoration: none;
    color: inherit;
    font-weight:bold;
    transition: all 0.3s ease;
}

/* ===== SIDEBAR ===== */
#sidebar {
    width: 250px;
    min-height: 100vh;
    background: var(--color-sidebar);
    color: white;
}

    #sidebar ul {
        padding-left: 0;
        margin-left: 0;
    }

    #sidebar .nav-link {
        color: var(--color-text-light);
        text-align: left;
        transition: all 0.2s;
    }

        #sidebar .nav-link:hover {
            background: var(--color-sidebar-hover);
            color: #fff;
        }

        #sidebar .nav-link.active {
            background-color: var(--color-primary);
            color: white;
        }

    #sidebar ul .nav-link.active {
        background-color: transparent;
        color: var(--color-primary);
        font-weight: 600;
    }

    /* Collapse animation */
    #sidebar ul.collapse {
        transition: height 0.3s ease;
    }

    /* Arrow animation */
    #sidebar i.fa-angle-left {
        transition: transform 0.25s ease-in-out;
    }

        #sidebar i.fa-angle-left.rotate {
            transform: rotate(-90deg);
        }

    #sidebar i.fa-chevron-left {
        transition: transform 0.25s ease-in-out;
    }

        #sidebar i.fa-chevron-left.rotate {
            transform: rotate(-90deg);
        }


/* ===== HEADER ===== */
#header {
    background: #fff;
    padding: 10px 20px;
    border-bottom: 1px solid var(--color-border);
}

/* ===== CONTENT ===== */
#content {
    padding: 20px;
}

/* ===== FOOTER ===== */
#footer {
    background: #fff;
    padding: 10px;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

/* ===== Small Legend ===== */
.small-legend {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--color-text-light);
}

.step {
    margin-top: 20px;
    display: none;
}
.step.active {
    display: block;
}

.d-none {
    display: none;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    text-align: center;
    color: white;
    font-size: 18px;
}