/* Two-D Laundry Management System - Fresh Modern Styles */
:root {
    /* Fresh Color Palette */
    --primary-color: #06d6a0;
    --primary-dark: #048a5c;
    --primary-light: #7ff3d3;
    --secondary-color: #118ab2;
    --secondary-dark: #0c5f7a;
    --accent-color: #ffd166;
    --accent-dark: #f18701;
    
    /* Fresh Gradients */
    --gradient-primary: linear-gradient(135deg, #06d6a0 0%, #118ab2 100%);
    --gradient-secondary: linear-gradient(135deg, #ffd166 0%, #f18701 100%);
    --gradient-success: linear-gradient(135deg, #06d6a0 0%, #10b981 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --gradient-bg: linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 50%, #f0f9ff 100%);
    
    /* Text Colors */
    --text-color: #264653;
    --text-light: #6b7280;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-color: #f8fafc;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    
    /* Status Colors */
    --success-color: #06d6a0;
    --warning-color: #ffd166;
    --error-color: #e76f51;
    --info-color: #118ab2;
    
    /* Border & Shadow */
    --border-color: #e1e8ed;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --shadow-sm: 0 2px 8px rgba(6, 214, 160, 0.1);
    --shadow-md: 0 4px 16px rgba(6, 214, 160, 0.15);
    --shadow-lg: 0 8px 32px rgba(6, 214, 160, 0.2);
}

/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gradient-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 14px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Login Screen */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradient-primary);
    padding: 1rem;
    position: relative;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom/cover no-repeat;
}

.login-container > div {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.login-icon i {
    font-size: 2.5rem;
    color: var(--text-white);
}

.login-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-header > p {
    color: var(--text-light);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-subtitle p {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.1);
    transform: translateY(-1px);
}

/* Button Styles */
.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--gradient-success);
    color: var(--text-white);
}

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

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-logout {
    background: var(--error-color);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-icon {
    padding: 0.75rem;
    min-width: auto;
    width: auto;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i {
    margin: 0;
}

/* Header */
.header {
    background: var(--bg-white);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    height: 70px;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 200;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.sidebar.active {
    left: 0;
}

.sidebar.minimized {
    width: 70px;
    left: 0;
}

.sidebar.minimized .nav-link span {
    display: none;
}

.sidebar.minimized .nav-link {
    justify-content: center;
    padding: 1rem;
}

.sidebar.minimized .nav-link i {
    margin-right: 0;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--text-white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h3 .greeting-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    display: inline-block;
    animation: greetingPulse 2s ease-in-out infinite;
}

@keyframes greetingPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Card Components */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    background: var(--gradient-card);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h3 i {
    color: var(--primary-color);
    font-size: 1rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.card-body {
    padding: 1.5rem;
}

/* Search Input */
.search-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-width: 200px;
    flex: 1;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .card-header {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .search-input {
        min-width: auto;
        margin-bottom: 0.5rem;
    }
}

.sidebar-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    transition: all 0.3s ease;
}

/* Sidebar toggle removed - no longer needed */

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.nav-menu li {
    margin: 0.25rem 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-menu li.hidden {
    max-height: 0;
    margin: 0;
    opacity: 0;
    transform: translateX(-20px);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 500;
    border-radius: 0 25px 25px 0;
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateX(5px);
}

.nav-link:hover::before {
    transform: scaleY(1);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.nav-link.active::before {
    transform: scaleY(1);
    background: var(--text-white);
}

.nav-link i {
    font-size: 1.125rem;
    width: 20px;
    min-width: 20px;
    text-align: center;
}

.nav-link span {
    font-weight: 500;
    transition: opacity 0.3s ease;
}

/* Main Content - Updated */
.main-content {
    background: var(--bg-color);
    scroll-behavior: smooth;
    overflow-y: auto;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
    outline: none;
}

.content-section.active {
    display: block;
}

.content-section:focus {
    outline: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--gradient-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.section-header h2 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0.5rem 0 0 0;
    font-weight: 500;
    width: 100%;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Force 2x2 grid on mobile regardless of minmax */
@media (max-width: 768px) {
    .main-content .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(2, auto) !important;
        gap: 0.75rem !important;
        margin-bottom: 1.5rem !important;
        width: 100% !important;
    }
    
    .main-content .stats-grid .stat-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.75rem !important;
        min-height: 90px !important;
        gap: 0.5rem !important;
        border-radius: 12px !important;
        background: var(--gradient-card) !important;
        box-shadow: var(--shadow-sm) !important;
        border: 1px solid var(--border-color) !important;
        transition: all 0.3s ease !important;
    }
    
    .main-content .stats-grid .stat-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: var(--shadow-md) !important;
    }
    
    .main-content .stats-grid .stat-card .stat-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.875rem !important;
        border-radius: 8px !important;
        margin-bottom: 0.25rem !important;
    }
    
    .main-content .stats-grid .stat-card .stat-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding-top: 0 !important;
    }
    
    .main-content .stats-grid .stat-card .stat-info h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.125rem !important;
        font-weight: 700 !important;
        text-align: center !important;
    }
    
    .main-content .stats-grid .stat-card .stat-info p {
        font-size: 0.65rem !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        font-weight: 500 !important;
        text-align: center !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--gradient-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: var(--text-white);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0.5rem;
    min-width: 0;
    overflow: hidden;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-info p {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stat-info .stat-subtitle {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.8;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Charts Container */
/* Stats Grid - 2x2 on Desktop */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.charts-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    min-height: 350px;
}

.chart-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.chart-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-card h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

.chart-card canvas {
    width: 100% !important;
    height: 300px !important;
}

/* Ensure pie chart is perfectly circular */
#statusChart {
    width: 300px !important;
    height: 300px !important;
    max-width: 300px !important;
    max-height: 300px !important;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    display: block;
    box-sizing: border-box;
}

/* Container for status chart to maintain circular shape */
.chart-card:has(#statusChart) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 1.5rem;
    overflow: visible;
}

.chart-card:has(#statusChart) canvas {
    width: 300px !important;
    height: 300px !important;
    max-width: 300px !important;
    max-height: 300px !important;
    flex-shrink: 0;
}

/* Alternative approach - target the specific chart container */
.chart-card h3 + canvas#statusChart {
    width: 300px !important;
    height: 300px !important;
    margin: 1rem auto;
    display: block;
}

/* Force square aspect ratio on the chart wrapper */
#statusChart {
    border-radius: 50% !important;
    object-fit: contain;
}


/* Chart Loading State */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.chart-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

/* Chart Empty State */
.chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-muted);
    text-align: center;
}

.chart-empty i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Form Container */
.form-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* Filter Controls */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--gradient-card);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.filter-controls select,
.filter-controls input[type="date"] {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-white);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 160px;
    transition: all 0.3s ease;
}

.filter-controls select:focus,
.filter-controls input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.filter-controls .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls select,
    .filter-controls input[type="date"],
    .filter-controls .btn {
        width: 100%;
        min-width: unset;
    }
    
    .export-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dropdown-menu {
        right: auto;
        left: 0;
        width: 100%;
        min-width: unset;
    }
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Export Actions */
.export-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* Export Dropdown */
.export-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

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

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--gradient-card);
    color: var(--primary-color);
}

.dropdown-item:first-child {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.dropdown-item:last-child {
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
    z-index: 2000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 4px solid;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.notification-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.notification-info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.notification-content i {
    font-size: 1.25rem;
}

.notification-error .notification-content i {
    color: #ef4444;
}

.notification-success .notification-content i {
    color: #10b981;
}

.notification-info .notification-content i {
    color: #3b82f6;
}

.notification-content span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: unset;
        max-width: unset;
    }
}

/* Extra Small Mobile (≤480px) */
@media (max-width: 480px) {
    .stats-grid {
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 0.5rem;
        min-height: 75px;
        gap: 0.25rem;
    }
    
    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    .stat-info h3 {
        font-size: 1.125rem;
        margin-bottom: 0.125rem;
    }
    
    .stat-info p {
        font-size: 0.6rem;
        line-height: 1;
    }
}

/* Table Styles */
.table-container {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--gradient-primary);
}

.data-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background: var(--primary-light);
}

.data-table tbody td {
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Status Badges */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending {
    background: rgba(255, 209, 102, 0.2);
    color: var(--accent-dark);
}

.status-proses {
    background: rgba(17, 138, 178, 0.2);
    color: var(--secondary-dark);
}

.status-selesai {
    background: rgba(6, 214, 160, 0.2);
    color: var(--primary-dark);
}

.status-active {
    background: rgba(6, 214, 160, 0.2);
    color: var(--primary-dark);
}

.status-inactive {
    background: rgba(231, 111, 81, 0.2);
    color: var(--error-color);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-view {
    background: var(--info-color);
    color: var(--text-white);
}

.btn-edit {
    background: var(--warning-color);
    color: var(--text-color);
}

.btn-delete {
    background: var(--error-color);
    color: var(--text-white);
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-controls input,
.filter-controls select {
    min-width: 150px;
}

.date-filter {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.close:hover {
    background: var(--error-color);
    color: var(--text-white);
}

/* Laporan Styles */
.laporan-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.laporan-item {
    background: var(--gradient-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.laporan-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.laporan-item h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.laporan-item p {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.empty-state p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-light);
    font-weight: 500;
}

/* Login Info */
.login-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(6, 214, 160, 0.05);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(6, 214, 160, 0.2);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.info-header i {
    font-size: 1rem;
}

.login-accounts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(6, 214, 160, 0.1);
}

.account-role {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.875rem;
}

.account-role i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.account-creds {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    font-size: 0.8rem;
}

.account-creds code {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Poppins', monospace;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Login Footer */
.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.login-footer p {
    color: var(--text-light);
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Removed duplicate CSS - handled in Layout Fix section */

/* Layout Fix */
body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
}

.sidebar {
    position: fixed;
    top: 70px;
    left: -280px;
    width: 280px;
    height: calc(100vh - 70px);
    z-index: 999;
}

.sidebar.active {
    left: 0;
}

.main-content {
    margin-top: 70px;
    margin-left: 0;
    min-height: calc(100vh - 70px);
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

/* Desktop Layout */
@media (min-width: 1200px) {
    .sidebar {
        left: 0;
    }
    
    .main-content {
        margin-left: 280px;
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .sidebar.minimized {
        width: 70px;
    }
    
    .sidebar.minimized + .main-content,
    .main-content.sidebar-minimized {
        margin-left: 70px;
    }
}

/* Removed duplicate - handled in Tablet Layout */

/* Tablet Layout */
@media (max-width: 1199px) and (min-width: 769px) {
    .sidebar {
        left: -280px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
        visibility: visible !important;
        position: relative;
        z-index: 1001;
    }
    
    .sidebar {
        width: 100%;
        left: -100%;
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-overlay {
        display: block !important;
    }
    
    .main-content {
        padding: 0.75rem;
        margin-left: 0 !important;
        margin-top: 70px;
    }
    
    .header {
        height: 60px;
        padding: 0.75rem 1rem;
    }
    
    .header-left {
        gap: 0.75rem;
    }
    
    .app-title {
        font-size: 1.125rem;
        font-weight: 600;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    .user-info {
        font-size: 0.75rem;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .btn-icon {
        padding: 0.5rem;
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .btn-icon i {
        font-size: 0.875rem;
    }
    
    .sidebar {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .main-content {
        margin-top: 60px !important;
        min-height: calc(100vh - 60px);
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        margin-bottom: 1.5rem;
        gap: 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .date-filter {
        font-size: 0.8rem;
        width: 100%;
        text-align: left;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .filter-controls select,
    .filter-controls input[type="date"],
    .filter-controls .btn {
        width: 100%;
        min-width: unset;
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -0.75rem;
    }
    
    .table-container table {
        min-width: 600px;
    }
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .charts-container {
        gap: 1rem;
    }
    
    .chart-card {
        padding: 1rem;
    }
    
    .chart-card h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Mobile responsive for status chart */
    .chart-card:has(#statusChart) {
        min-height: 350px;
        padding: 1rem;
        overflow: visible;
    }
    
    #statusChart {
        width: 250px !important;
        height: 250px !important;
        max-width: 250px !important;
        max-height: 250px !important;
    }
    
    .chart-card:has(#statusChart) canvas {
        width: 250px !important;
        height: 250px !important;
        max-width: 250px !important;
        max-height: 250px !important;
    }
    
    .empty-state {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .empty-state i {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .empty-state h3 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .empty-state p {
        font-size: 0.875rem;
    }
    
    .export-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .dropdown-menu {
        right: auto;
        left: 0;
        width: 100%;
        min-width: unset;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }
    
    .header-left h1 {
        font-size: 1.25rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .chart-card,
    .form-container {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .sidebar,
    .filter-controls,
    .action-buttons {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .table-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        background: white;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Optgroup Styling */
select optgroup {
    font-weight: 600;
    color: var(--primary-color);
    background: var(--bg-light);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

select option {
    padding: 0.5rem 1rem;
    font-weight: 400;
    color: var(--text-primary);
}

select optgroup option {
    padding-left: 1.5rem;
    font-size: 0.8rem;
}

/* Customer Info Styling */
.customer-info {
    line-height: 1.4;
}

.customer-info strong {
    color: var(--text-primary);
    font-weight: 600;
}

.customer-info small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Action Buttons Fix */
.action-buttons {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
    min-height: 32px;
}

.action-buttons .btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 100 !important;
    position: relative !important;
    padding: 0.375rem 0.5rem !important;
    border-radius: 4px !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
    min-width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.action-buttons .btn:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: scale(1.05) !important;
}

.action-buttons .btn-view {
    background: #17a2b8 !important;
    border-color: #17a2b8 !important;
}

.action-buttons .btn-view:hover {
    background: #138496 !important;
    border-color: #138496 !important;
}

.action-buttons .btn-edit {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

.action-buttons .btn-edit:hover {
    background: #218838 !important;
    border-color: #218838 !important;
}

.action-buttons .btn-warning {
    background: #ffc107 !important;
    border-color: #ffc107 !important;
    color: #212529 !important;
}

.action-buttons .btn-warning:hover {
    background: #e0a800 !important;
    border-color: #e0a800 !important;
}

.action-buttons .btn-danger {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.action-buttons .btn-danger:hover {
    background: #c82333 !important;
    border-color: #c82333 !important;
}

.data-table td {
    position: relative;
    z-index: 1;
    vertical-align: middle;
}

.data-table .action-buttons {
    z-index: 100;
    position: relative;
}

/* Ensure table doesn't interfere with buttons */
.data-table {
    position: relative;
    z-index: 1;
}

.table-container {
    position: relative;
    z-index: 1;
    overflow-x: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Order Detail Styles */
.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-section {
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.detail-section h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 100px;
    font-size: 0.875rem;
}

.detail-value {
    color: var(--text-primary);
    text-align: right;
    font-weight: 500;
    flex: 1;
}

.detail-value.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.detail-value.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
    }
    
    .order-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
    }
}

/* Real-time Update Animations */
@keyframes flash {
    0% { background-color: var(--primary-light); }
    50% { background-color: var(--primary-color); color: white; }
    100% { background-color: transparent; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stat-card h3 {
    transition: all 0.3s ease;
}

.stat-card.updated h3 {
    animation: pulse 0.6s ease;
}

/* Success notification enhancement */
.notification.success {
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ==================== PENGELUARAN SECTION STYLES ==================== */

/* Pengeluaran form styling */
#pengeluaran .form-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#pengeluaran .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

#pengeluaran .form-group {
    display: flex;
    flex-direction: column;
}

#pengeluaran .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

#pengeluaran .form-group label i {
    color: #6c757d;
    width: 16px;
}

#pengeluaran .form-group input {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

#pengeluaran .form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

#pengeluaran .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

#pengeluaran .form-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Pengeluaran table styling */
#pengeluaran .table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#pengeluaran .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

#pengeluaran .data-table th {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#pengeluaran .data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

#pengeluaran .data-table tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#pengeluaran .action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

#pengeluaran .btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* Mobile Responsive for Pengeluaran */
@media (max-width: 768px) {
    #pengeluaran .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #pengeluaran .form-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    #pengeluaran .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    #pengeluaran .form-actions .btn {
        width: 100%;
        padding: 1rem;
    }
    
    #pengeluaran .table-container {
        overflow-x: auto;
    }
    
    #pengeluaran .data-table {
        min-width: 600px;
        font-size: 0.8rem;
    }
    
    #pengeluaran .data-table th,
    #pengeluaran .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    #pengeluaran .filter-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    #pengeluaran .filter-controls select,
    #pengeluaran .filter-controls input {
        width: 100%;
        padding: 0.75rem;
    }
    
    #pengeluaran .filter-controls .btn {
        width: 100%;
        padding: 0.75rem;
    }
}

/* Export Actions Mobile Fix */
@media (max-width: 768px) {
    .export-actions {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .export-actions .export-dropdown {
        width: 100%;
    }
    
    .export-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-menu {
        width: 100%;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }
}

/* Laporan Section Mobile Improvements */
@media (max-width: 768px) {
    #laporan .filter-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    #laporan .filter-controls select,
    #laporan .filter-controls input {
        width: 100%;
        padding: 0.75rem;
    }
    
    #laporan .filter-controls .btn {
        width: 100%;
        padding: 0.75rem;
    }
    
    #laporan .section-header {
        text-align: center;
    }
    
    #laporan .section-header h2 {
        margin-bottom: 1rem;
    }
}