/* ===========================
   SMART CLASS - Unified Admin CSS
   =========================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-size: 14px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Main Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    padding: 0 20px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 15px;
}

.sidebar nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(5px);
}

/* ===========================
   DROPDOWN NAVIGATION - ENHANCED
   =========================== */
.nav-dropdown {
    position: relative;
    margin-bottom: 5px;
}

.nav-dropdown-toggle {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    font-size: 14px;
    font-family: inherit;
}

.nav-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(3px);
}

.nav-dropdown-toggle i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 10px;
    margin-left: auto;
    transform-origin: center;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    display: none;
    background: rgba(0, 0, 0, 0.3);
    margin: 5px 0;
    border-radius: 8px;
    padding: 8px 0;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    margin-left: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 0;
}

.nav-dropdown-content.show {
    display: block;
    max-height: 300px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 300px;
        transform: translateY(0);
    }
}

.nav-dropdown-content a {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px 10px 30px;
    font-size: 13px;
    border-radius: 6px;
    margin: 2px 10px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.nav-dropdown-content a:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.nav-dropdown-content a i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    font-size: 12px;
}

.nav-dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(5px);
    padding-left: 35px;
}

.nav-dropdown-content a:hover:before {
    background: white;
    transform: translateY(-50%) scale(1.5);
}

/* Data Master dan Setting specific styling dengan selector yang lebih akurat */
.nav-dropdown-toggle[onclick*="data-master"] {
    border-left: 3px solid #4facfe;
    background: linear-gradient(90deg, rgba(79, 172, 254, 0.1) 0%, transparent 100%);
}

.nav-dropdown-toggle[onclick*="data-master"]:hover {
    background: linear-gradient(90deg, rgba(79, 172, 254, 0.2) 0%, rgba(255, 255, 255, 0.15) 100%);
}

#data-master {
    border-left-color: #4facfe;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.nav-dropdown-toggle[onclick*="setting"] {
    border-left: 3px solid #f093fb;
    background: linear-gradient(90deg, rgba(240, 147, 251, 0.1) 0%, transparent 100%);
}

.nav-dropdown-toggle[onclick*="setting"]:hover {
    background: linear-gradient(90deg, rgba(240, 147, 251, 0.2) 0%, rgba(255, 255, 255, 0.15) 100%);
}

#setting {
    border-left-color: #f093fb;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.sidebar .logout {
    margin-top: auto;
    padding: 0 15px;
}

.logout-btn,
.sidebar .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.logout-btn:hover,
.sidebar .btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Content Area */
.content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===========================
   PAGE HEADER - UNIFIED STYLE
   =========================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px 0;
    border-bottom: 2px solid #e9ecef;
}

.page-header h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Dropdown Menu Styling */
.btn-group {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 160px;
    padding: 8px 0;
    margin-top: 4px;
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* ===========================
   CARD STYLES - UNIFIED
   =========================== */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* ===========================
   TABLE STYLES - UNIFIED
   =========================== */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
}

.table {
    width: 100%;
    margin-bottom: 0;
    color: #333;
    border-collapse: collapse;
    background: white;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    border-bottom: 2px solid #dee2e6;
}

.table-striped tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table tbody tr:hover {
    background-color: #e8f4fd;
    transition: background-color 0.2s ease;
}

/* ===========================
   BUTTON STYLES - UNIFIED
   =========================== */
.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 171, 47, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.btn-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-group .btn:not(:last-child) {
    margin-right: 0;
}

/* Action Buttons Specific Styling */
.action-buttons .btn-group {
    align-items: center;
}

.action-buttons .btn {
    min-width: 40px;
    text-align: center;
    white-space: nowrap;
}

/* Camera/Capture Button Styling */
.btn-primary .fas.fa-camera {
    font-size: 14px;
}

.btn-primary[title*="Ambil Gambar"] {
    background-color: #0d6efd;
    border-color: #0d6efd;
    position: relative;
}

.btn-primary[title*="Ambil Gambar"]:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
}

.btn-primary[title*="Ambil Gambar"]:after {
    content: "📷";
    position: absolute;
    right: -8px;
    top: -5px;
    font-size: 10px;
    opacity: 0.7;
}

/* ===========================
   FORM STYLES - UNIFIED
   =========================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 25px;
}

/* ===========================
   ALERT STYLES - UNIFIED
   =========================== */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1c2c7 100%);
    color: #721c24;
    border: 1px solid #f1c2c7;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* ===========================
   MODAL/OVERLAY STYLES - UNIFIED
   =========================== */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.form-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.form-overlay .form-group {
    padding: 0 20px;
}

.form-overlay .form-actions {
    padding: 0 20px 20px;
}

/* ===========================
   BADGE STYLES
   =========================== */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #212529;
}

.badge-primary {
    background: #007bff;
    color: white;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

/* ===========================
   LOGIN PAGE STYLES
   =========================== */
.login-page-fullscreen {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-fullscreen-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.login-brand {
    text-align: center;
    margin-bottom: 30px;
}

.login-brand h1 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-brand p {
    color: #6c757d;
    font-size: 14px;
}

.login-card {
    background: white;
    padding: 0;
    border: none;
    box-shadow: none;
}

.login-header h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 30px;
}

.login-form {
    width: 100%;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.login-hints {
    margin-top: 20px;
}

.role-hint {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.role-hint p {
    margin: 0 0 5px 0;
    font-weight: 600;
}

.role-hint small {
    color: #6c757d;
    font-size: 12px;
}

/* ===========================
   DASHBOARD STYLES
   =========================== */
.dashboard-container {
    padding: 0;
}

.dashboard-header {
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-header h1 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 10px;
}

.dashboard-header h2 {
    color: #6c757d;
    font-size: 18px;
    font-weight: 400;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e9ecef;
}

.stat-card h3 {
    color: #495057;
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

.content-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    
    .content {
        margin-left: 200px;
        padding: 15px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 3px;
    }
    
    .btn-group .btn {
        width: 100%;
        min-width: auto;
    }
    
    .table-responsive {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 8px 10px;
    }
    
    /* Dropdown menu adjustments for mobile */
    .nav-dropdown-toggle {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .nav-dropdown-content {
        margin-left: 5px;
        padding: 5px 0;
    }
    
    .nav-dropdown-content a {
        padding: 8px 15px 8px 20px;
        font-size: 12px;
        margin: 1px 5px;
    }
    
    .user-profile {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .avatar-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .content {
        margin-left: 0;
        padding: 10px;
    }
    
    .layout {
        flex-direction: column;
    }
    
    .form-container {
        width: 95%;
        margin: 10px;
    }
    
    .btn-group {
        gap: 2px;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* ===========================
   COPYRIGHT FOOTER
   =========================== */
.copyright-footer {
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.copyright-content p {
    margin: 0;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
}

.copyright-content p:first-child {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.copyright-subtitle {
    font-style: italic;
    color: #868e96;
}

/* ===========================
   ANIMATION KEYFRAMES
   =========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 0.5s ease-in-out;
}

/* ===========================
   UTILITY ANIMATIONS
   =========================== */
.hover-lift:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* ===========================
   ENHANCED VISUAL EFFECTS
   =========================== */
.sidebar {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===========================
   IMPROVED TYPOGRAPHY
   =========================== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
    font-weight: 600;
}

.sidebar nav a,
.nav-dropdown-toggle {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ===========================
   ACCESSIBILITY IMPROVEMENTS
   =========================== */
.btn:focus,
.form-control:focus,
.nav-dropdown-toggle:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

.sidebar nav a:focus,
.nav-dropdown-content a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ===========================
   LOADING STATES
   =========================== */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================
   SCROLLBAR STYLING
   =========================== */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===========================
   ENHANCED RESPONSIVE FIXES
   =========================== */
@media (max-width: 480px) {
    .sidebar {
        width: 180px;
    }
    
    .content {
        margin-left: 180px;
        padding: 10px;
    }
    
    .user-profile {
        padding: 15px;
    }
    
    .avatar-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .user-info h3 {
        font-size: 1em;
    }
    
    .user-info p {
        font-size: 0.8em;
    }
    
    .nav-dropdown-toggle {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .nav-dropdown-content a {
        padding: 8px 15px 8px 25px;
        font-size: 12px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .page-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ===========================
   BUTTON GROUP ENHANCEMENTS
   =========================== */
.btn-group .btn {
    min-width: 40px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.btn-group .btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-group .btn:hover:before {
    left: 100%;
}

/* ===========================
   FORM ROW LAYOUTS
   =========================== */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
    margin-bottom: 20px;
}

/* ===========================
   QUICK ACTIONS GRID
   =========================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    display: block;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.action-card i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.action-card h4 {
    margin: 10px 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.action-card p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
}

.action-primary {
    border-color: #007bff;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.action-info {
    border-color: #17a2b8;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.action-success {
    border-color: #28a745;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border: none;
    font-family: inherit;
    width: 100%;
}