/* css/styles.css - Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    overflow-x: hidden;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    transition: all 0.3s ease-in-out;
}

#sidebar .sidebar-header {
    padding: 20px;
}

#sidebar ul.components {
    padding: 10px 0 20px;
}

#sidebar ul li a {
    padding: 12px 20px;
    font-size: 0.95rem;
    display: block;
    text-decoration: none;
    border-radius: 50px;
    margin: 4px 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s ease-in-out;
}

.btn {
    border-radius: 50px !important;
    padding: 8px 18px;
    font-weight: 600;
}

.btn-success {
    background: #10b981 !important;
    border: none !important;
    color: #fff !important;
}

.btn-sm {
    padding: 4px 12px !important;
    font-size: 0.82rem !important;
}

.form-control, .form-select {
    border-radius: 30px !important;
    padding: 8px 16px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #000000;
    opacity: 0.5;
    z-index: 1040;
}

.modal-content {
    border-radius: 20px !important;
}

.notif-dropdown {
    width: 300px;
    max-height: 380px;
    overflow-y: auto;
    border-radius: 16px;
    position: absolute !important;
}

.user-tag {
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        height: 100vh;
        z-index: 1050;
        display: flex;
        flex-direction: column;
    }
    #sidebar .sidebar-header {
        flex-shrink: 0;
    }
    #sidebar .sidebar-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    #sidebar.active {
        left: 0 !important;
    }
    .sidebar-overlay.active {
        display: block;
    }
}

@media (min-width: 769px) {
    #sidebar {
        margin-left: 0;
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    #sidebar .sidebar-header {
        flex-shrink: 0;
    }
    #sidebar .sidebar-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }
    #sidebar.active {
        margin-left: -260px;
    }
    .sidebar-overlay {
        display: none !important;
    }
}