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

body {
    /* font-family: Arial, sans-serif; */
    font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    background: #f5f6fa;
}

.container {
    display: flex;
    height: 100vh;
}

/* Top Bar */
.top-bar {
    background: #015A35;
    /* Dark green for the top bar */
    color: white;
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.top-bar .logo {
    margin-left: auto;
    font-size: 1.2rem;
}

.hamburger {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-item {
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}


/* Sidebar #5a7d22; TP */
.sidebar {
    background: #5a7d22;
    color: white;
    width: 250px;
    padding: 6px;
    margin: 12px 0 12px 12px;
    border-radius: 10px 0 0 10px;
    /*
        position: fixed;
        left: 0;
        z-index: 999; 
    */
    height: 96%;
}

.nav-logo {
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 66px;
    /* border-bottom: 16px; */
    border-radius: 10px 0 0 0;
    margin: -3px -3px 20px -3px;
}

.sidebar hr {
    color: #cccccc;
}

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

.nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-item:hover {
    background: #cccccc;
    color: white;
}

.nav-item.active {
    background: #5a7d22;
    color: white;
}

.nav-item .icon {
    margin-right: 10px;
}

.nav-item .badge {
    margin-left: auto;
    background: red;
    color: white;
    border-radius: 10px;
    padding: 2px 5px;
    font-size: 0.75rem;
}

/* Main Content */
.main {
    flex: 1;
    /* margin-left: 250px; */
    padding: 20px;
    background: #f5f6fa;
    transition: margin-left 0.3s ease;
}

.main.full-width {
    margin-left: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        display: none
            /* transform: translateX(-100%); */
    }

    .main {
        margin-left: 0;
    }
}


/* Modal */
/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal Box */
.modal {
    background-color: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Modal Header */
.modal-header {
    background-color: #f8f8f8;
    padding: 16px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

/* Modal Body */
.modal-body {
    padding: 20px;
}

/* Dropdown Menu */
.dropdown {
    width: 100%;
    position: relative;
}

.dropdown select {
    width: 100%;
    padding: 10px 16px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    appearance: none;
    background: #f8f8f8 url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"%3E%3Cpolyline points="6 9 12 15 18 9"%3E%3C/polyline%3E%3C/svg%3E') no-repeat right 16px center;
    background-size: 16px;
    outline: none;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
}

.modal-footer button {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-cancel {
    background-color: #eee;
    color: #333;
}

.btn-ok {
    background-color: #53731f;
    color: #fff;
}