﻿/* === Font and Global === */
body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    color: #1A1A1A;
    margin: 0;
}

/* === Header === */


.navbar-light .nav-link {
    color: #1A1A1A;
    font-weight: 500;
    padding: 0.75rem 1rem;
}

    .navbar-light .nav-link:hover {
        color: #84BD00;
    }

.btn-success {
    background-color: #84BD00;
    border-color: #84BD00;
}

    .btn-success:hover {
        background-color: #6fa400;
        border-color: #6fa400;
    }

/* === Sidebar Menu === */
nav.bg-dark {
    background-color: #1A1A1A !important;
}

    nav.bg-dark .nav-link {
        color: white;
    }

        nav.bg-dark .nav-link:hover {
            color: #84BD00;
            text-decoration: none;
        }

/* === Main Container === */
main.container-fluid {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 1rem;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

/* === Modal === */
.modal-header {
    background-color: #f2f2f2;
    border-bottom: 1px solid #ddd;
}

.modal-footer {
    border-top: 1px solid #ddd;
}

/* Sidebar mini mode */
.sidebar {
    transition: width 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    height: 100vh;
}

    .sidebar.collapsed {
        width: 70px !important;
        transition: width 0.3s ease;
    }

    .sidebar .nav-link {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .sidebar .nav-link span {
            transition: opacity 0.3s ease;
            display: inline;
            opacity: 1;
        }

    .sidebar.collapsed .nav-link span {
        display: none;
        opacity: 0;
    }

    .sidebar.collapsed span {
        display: none;
    }

@media (max-width: 991.98px) {
    #sidebar {
        transition: margin-top 0.35s ease, width 0.3s ease;
    }

        #sidebar.navbar-expanded {
            margin-top: 240px;
        }

        #sidebar:not(.navbar-expanded) {
            margin-top: 0;
        }

    #sidebar {
        width: 70px !important;
        position: fixed;
        z-index: 1050;
        height: 100vh;
        top: 100px;
        left: 0;
        overflow-y: auto;
        
    }

        #sidebar.collapsed span {
            display: none;
        }

        #sidebar:not(.collapsed) {
            width: 250px !important;
        }

    #mainContentWrapper {
        margin-left: 70px;
    }

    .navbar-collapse {
        position: relative;
        z-index: 1040;
        transition: height 0.35s ease;
    }
}

.headerGreen {
    background-color: #84BD00;
    color: white;
}
/* fix for mobile table */
@media (max-width: 768px) {
    table thead {
        display: none;
    }

    table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        padding: 1rem;
        border-radius: 5px;
        background: #fff;
    }

    table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
    }

        table td::before {
            content: attr(data-label);
            font-weight: bold;
            color: #333;
        }
}
