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

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

:root {
    /* Palm Oil Green Palette */
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --primary-glow: rgba(46, 125, 50, 0.25);
    --secondary: #1b5e20;
    --accent: #f9a825;
    --accent-dark: #f57f17;

    /* Status Colors */
    --success: #43a047;
    --danger: #e53935;
    --warning: #f9a825;
    --info: #00acc1;

    /* Dark Tones */
    --dark: #1a2e1a;
    --dark-2: #162516;
    --dark-3: #0d1f0d;
    --sidebar-bg: linear-gradient(180deg, #0d1f0d 0%, #162516 40%, #1e3a1e 100%);

    /* Light Tones */
    --text: #1a2e1a;
    --text-secondary: #5a7a5a;
    --bg: #f0f5f0;
    --bg-card: #ffffff;
    --border: #c8ddc8;
    --border-light: #e8f0e8;

    /* Effects */
    --shadow: 0 2px 16px rgba(46,125,50,0.08);
    --shadow-lg: 0 8px 32px rgba(46,125,50,0.14);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
    display: flex;
}

/* ============================================================ */
/* LOGIN PAGE */
/* ============================================================ */
.login-page {
    display: none;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(145deg, #0d1f0d 0%, #1b5e20 35%, #2e7d32 60%, #1b5e20 80%, #0d1f0d 100%);
    background-size: 300% 300%;
    animation: gradientBG 10s ease infinite;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-page.active {
    display: flex;
}

/* Floating leaf decorations */
.login-bg-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.leaf {
    position: absolute;
    font-size: 3em;
    opacity: 0.12;
    animation: leafFloat 12s ease-in-out infinite;
    filter: blur(1px);
}

.leaf-1 { top: 5%; left: 8%; animation-delay: 0s; font-size: 4em; }
.leaf-2 { top: 15%; right: 10%; animation-delay: 2s; font-size: 5em; }
.leaf-3 { bottom: 20%; left: 5%; animation-delay: 4s; font-size: 3.5em; }
.leaf-4 { bottom: 10%; right: 8%; animation-delay: 1s; font-size: 2.5em; }
.leaf-5 { top: 50%; left: 50%; animation-delay: 6s; font-size: 6em; opacity: 0.07; }

@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(8deg); }
    66% { transform: translateY(10px) rotate(-5deg); }
}

.login-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.3);
    padding: 52px 48px;
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.7s cubic-bezier(.22,1,.36,1);
    position: relative;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--primary));
    border-radius: 24px 24px 0 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
    font-size: 3.5em;
    text-align: center;
    margin-bottom: 12px;
    animation: palmBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(46,125,50,0.3));
}

@keyframes palmBounce {
    0%, 100% { transform: scale(1) rotate(-3deg); }
    50% { transform: scale(1.08) rotate(3deg); }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 1.85em;
    color: var(--dark);
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 500;
}

.login-box .form-group {
    margin-bottom: 20px;
}

.login-box .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.88em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-box .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f5f9f5;
    color: var(--text);
}

.login-box .form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: white;
}

.btn-full {
    width: 100%;
    margin-top: 10px;
}

/* ============================================================ */
/* SIDEBAR */
/* ============================================================ */
.sidebar {
    width: 270px;
    background: var(--sidebar-bg);
    color: white;
    padding: 24px 16px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 200;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 8px rgba(249,168,37,0.5));
    animation: palmBounce 4s ease-in-out infinite;
}

.sidebar-header {
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.3em;
    margin-bottom: 3px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-header p {
    font-size: 0.8em;
    opacity: 0.6;
    font-weight: 400;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    flex: 1;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255,255,255,0.85);
    border: 1px solid transparent;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon {
    font-size: 1.2em;
    min-width: 24px;
    text-align: center;
}

.nav-label {
    flex: 1;
}

.nav-btn:hover {
    background: rgba(78,160,78, 0.2);
    border-color: rgba(78,160,78, 0.3);
    color: white;
    transform: translateX(4px);
}

.nav-btn.active {
    background: linear-gradient(135deg, rgba(46,125,50,0.8) 0%, rgba(27,95,32,0.9) 100%);
    font-weight: 700;
    border-color: rgba(249,168,37,0.4);
    color: white;
    box-shadow: 0 4px 20px rgba(46,125,50,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
    font-size: 1.8em;
    min-width: 40px;
    text-align: center;
    background: rgba(249,168,37,0.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(249,168,37,0.3);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95em;
}

.user-role {
    font-size: 0.78em;
    opacity: 0.65;
    font-weight: 400;
    margin-top: 2px;
}

.logout-btn {
    width: 100%;
    padding: 12px 16px;
    background: rgba(229, 57, 53, 0.08);
    color: #ef9a9a;
    border: 1px solid rgba(229, 57, 53, 0.25);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9em;
    margin-top: 8px;
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    box-shadow: 0 4px 15px rgba(229,57,53,0.4);
}

/* ============================================================ */
/* MOBILE TOP BAR */
/* ============================================================ */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: var(--dark-2);
    background: linear-gradient(135deg, #0d1f0d, #1e3a1e);
    z-index: 300;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-topbar-title {
    flex: 1;
    color: white;
    font-weight: 700;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-topbar-user {
    font-size: 1.4em;
    opacity: 0.8;
}

.hamburger-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================================ */
/* MOBILE BOTTOM NAVIGATION */
/* ============================================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 70px;
    background: linear-gradient(135deg, #0d1f0d, #1e3a1e);
    z-index: 300;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.mobile-nav-btn {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 12px;
    transition: all 0.25s ease;
    font-family: inherit;
    position: relative;
}

.mobile-nav-btn.active {
    color: var(--accent);
}

.mobile-nav-btn.active::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
}

.mobile-nav-btn:active {
    transform: scale(0.92);
}

.mobile-nav-icon {
    font-size: 1.4em;
    line-height: 1;
}

.mobile-nav-label {
    font-size: 0.65em;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 150;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    display: block;
}

/* ============================================================ */
/* MAIN CONTENT */
/* ============================================================ */
.main-content {
    margin-left: 270px;
    flex: 1;
    min-width: 0; /* Prevents flex blowout on mobile */
    padding: 28px 32px;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 28px 32px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '🌴';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 7em;
    opacity: 0.08;
    pointer-events: none;
}

.header::after {
    content: '🌿';
    position: absolute;
    right: 80px;
    top: -10px;
    font-size: 5em;
    opacity: 0.06;
    pointer-events: none;
    transform: rotate(-20deg);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.header-icon {
    font-size: 3em;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

.header h1 {
    font-size: 1.7em;
    margin-bottom: 4px;
    color: white;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9em;
    font-weight: 400;
}

.tab-content {
    display: none;
    animation: fadeIn 0.35s ease;
}

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

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

/* ============================================================ */
/* FORM */
/* ============================================================ */
.form-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--border-light);
}

form {
    width: 100%;
}

.form-section {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: var(--primary);
    font-size: 1.1em;
    margin-bottom: 16px;
    font-weight: 700;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(46,125,50,0.06), rgba(46,125,50,0.02));
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-info {
    color: var(--text-secondary);
    font-size: 0.88em;
    margin-top: -8px;
    margin-bottom: 18px;
    font-style: italic;
    padding-left: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-row.triple {
    grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 900px) {
    .form-row.triple {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .form-row,
    .form-row.triple {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
    }
    
    .form-group label {
        font-size: 0.72em;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .form-group input[type="text"],
    .form-group input[type="date"],
    .form-group input[type="time"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        padding: 10px 10px;
        font-size: 0.88em;
    }
    
    .time-picker-24 select {
        padding: 10px 4px 10px 8px;
        font-size: 0.88em;
    }
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95em;
    font-family: inherit;
    transition: all 0.25s ease;
    background: #fafcfa;
    color: var(--text);
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-glow);
    outline: none;
}

.form-group input[readonly] {
    background: linear-gradient(135deg, #ecf3ec, #e8f0e8);
    color: var(--text-secondary);
    cursor: not-allowed;
    border-color: var(--border-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 96px;
}

/* ── Custom 24-Jam Time Picker ── */
.time-picker-24 {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fafcfa;
    overflow: hidden;
    transition: all 0.25s ease;
}

.time-picker-24:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.time-picker-24 select {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 12px 8px 12px 14px;
    font-size: 1em;
    font-family: inherit;
    font-weight: 600;
    color: var(--text);
    min-width: 0;
    appearance: none;
    background-image: none !important;
    cursor: pointer;
    outline: none;
    text-align: center;
}

.time-picker-24 select:focus {
    border: none;
    box-shadow: none;
    outline: none;
}

.time-separator {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--primary);
    padding: 0 2px;
    user-select: none;
    flex-shrink: 0;
}

.help-text {
    font-size: 0.78em;
    color: var(--text-secondary);
    margin-top: 5px;
    font-style: italic;
}

.calculation-note {
    font-size: 0.78em;
    color: var(--primary);
    margin-top: 5px;
    display: block;
    font-weight: 600;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95em;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    gap: 8px;
}

.radio-label:has(input:checked) {
    border-color: var(--primary);
    background: rgba(46,125,50,0.06);
    color: var(--primary);
    font-weight: 600;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

/* ============================================================ */
/* BUTTONS */
/* ============================================================ */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.92em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 130px;
    font-family: inherit;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s;
}

.btn:hover::after {
    background: rgba(255,255,255,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(46,125,50,0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #78909c;
    color: white;
}

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

.btn-info {
    background: linear-gradient(135deg, #00acc1, #0097a7);
    color: white;
    box-shadow: 0 4px 16px rgba(0,172,193,0.25);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,172,193,0.35);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #c62828);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229,57,53,0.35);
}

/* Success / Error */
.success-message {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #1b5e20;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-left: 4px solid var(--success);
    animation: fadeIn 0.3s ease;
    font-weight: 500;
}

.error-message {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    color: #b71c1c;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-left: 4px solid var(--danger);
    font-weight: 500;
}

/* ============================================================ */
/* DASHBOARD */
/* ============================================================ */
.dashboard-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-header h2 {
    color: var(--dark);
    font-size: 1.4em;
    font-weight: 800;
}

.dashboard-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.dashboard-filters select {
    padding: 10px 36px 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88em;
    background: white;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s;
    color: var(--text);
}

.dashboard-filters select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    color: white;
    padding: 22px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.stat-card-gradient-1 {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    box-shadow: 0 8px 24px rgba(46,125,50,0.3);
}

.stat-card-gradient-2 {
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    box-shadow: 0 8px 24px rgba(229,57,53,0.3);
}

.stat-card-gradient-3 {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    box-shadow: 0 8px 24px rgba(67,160,71,0.3);
}

.stat-card-danger {
    background: linear-gradient(135deg, #f57f17 0%, #e65100 100%);
    box-shadow: 0 8px 24px rgba(245,127,23,0.3);
}

.stat-icon {
    font-size: 2.2em;
    min-width: 50px;
    text-align: center;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.8em;
    opacity: 0.88;
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5em;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Rupiah Summary */
.rupiah-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.rupiah-card {
    padding: 18px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.rupiah-card-saved {
    background: linear-gradient(135deg, rgba(67,160,71,0.08) 0%, rgba(67,160,71,0.02) 100%);
    border-color: rgba(67,160,71,0.3);
}

.rupiah-card-brondolan {
    background: linear-gradient(135deg, rgba(249,168,37,0.08) 0%, rgba(249,168,37,0.02) 100%);
    border-color: rgba(249,168,37,0.3);
}

.rupiah-card-net {
    background: linear-gradient(135deg, rgba(229,57,53,0.06) 0%, rgba(229,57,53,0.01) 100%);
    border-color: rgba(229,57,53,0.25);
}

.rupiah-card-icon {
    font-size: 1.8em;
}

.rupiah-card-content {
    flex: 1;
}

.rupiah-card-label {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.rupiah-card-value {
    font-size: 1.15em;
    font-weight: 800;
    color: var(--dark);
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.charts-grid.single {
    grid-template-columns: 1fr;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s ease;
}

.chart-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.chart-card h3 {
    color: var(--dark);
    font-size: 1em;
    margin-bottom: 16px;
    font-weight: 700;
}

.chart-wrapper {
    position: relative;
    height: 280px;
}

.chart-wrapper-wide {
    height: 300px;
}

/* Rekap Table */
.rekap-section {
    margin-bottom: 28px;
}

.rekap-section h3 {
    color: var(--dark);
    font-size: 1.1em;
    margin-bottom: 16px;
    font-weight: 800;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.rekap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.rekap-table thead {
    background: linear-gradient(135deg, var(--dark) 0%, #1e3a1e 100%);
    color: white;
}

.rekap-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.85em;
    letter-spacing: 0.3px;
}

.rekap-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
}

.rekap-table tbody tr {
    transition: background 0.2s;
}

.rekap-table tbody tr:hover {
    background: rgba(46,125,50,0.04);
}

.rekap-table tbody tr:nth-child(even) {
    background: #f5f9f5;
}

.rekap-table tbody tr:nth-child(even):hover {
    background: rgba(46,125,50,0.06);
}

.rekap-table tfoot {
    background: linear-gradient(135deg, rgba(46,125,50,0.08), rgba(27,95,32,0.06));
    font-weight: 700;
}

.rekap-table tfoot td {
    padding: 14px 16px;
    border-top: 2px solid var(--primary);
    color: var(--dark);
}

.badge-success {
    background: rgba(67,160,71,0.12);
    color: var(--success);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
}

.badge-warning {
    background: rgba(229,57,53,0.1);
    color: var(--danger);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-block;
}

/* Division Cards */
.division-stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
}

.division-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.division-card::before {
    content: '🌴';
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 3em;
    opacity: 0.05;
    pointer-events: none;
}

.division-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.division-card h3 {
    color: var(--dark);
    font-size: 1.1em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    font-weight: 800;
    display: inline-block;
}

.division-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.division-stat-item {
    background: linear-gradient(135deg, #f5f9f5, #edf5ed);
    padding: 14px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.division-stat-item.danger {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, #fff5f5, #ffebee);
}

.division-stat-label {
    font-size: 0.78em;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.division-stat-value {
    font-size: 1.2em;
    font-weight: 800;
    color: var(--dark);
}

/* ============================================================ */
/* HISTORY */
/* ============================================================ */
.history-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
    flex-wrap: wrap;
    gap: 16px;
}

.history-header h2 {
    color: var(--dark);
    font-size: 1.4em;
    font-weight: 800;
}

.history-controls {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 260px;
    align-items: center;
}

.history-controls input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #fafcfa;
}

.history-controls input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.history-list {
    display: grid;
    gap: 14px;
}

.history-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: all 0.25s ease;
    border-left: 4px solid transparent;
}

.history-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
    border-left-color: var(--primary);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 14px;
    gap: 12px;
}

.history-item-title {
    flex: 1;
}

.history-item-title h3 {
    color: var(--dark);
    font-size: 1.02em;
    margin-bottom: 4px;
    font-weight: 700;
}

.history-item-meta {
    color: var(--text-secondary);
    font-size: 0.82em;
}

.history-item-actions {
    display: flex;
    gap: 8px;
}

.history-btn {
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-xs);
    font-size: 0.82em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.history-btn-edit {
    background: rgba(0,172,193,0.1);
    color: var(--info);
    border: 1px solid rgba(0,172,193,0.25);
}

.history-btn-edit:hover {
    background: var(--info);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,172,193,0.3);
}

.history-btn-delete {
    background: rgba(229,57,53,0.08);
    color: var(--danger);
    border: 1px solid rgba(229,57,53,0.2);
}

.history-btn-delete:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229,57,53,0.3);
}

.history-item-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.history-detail {
    font-size: 0.85em;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f5f9f5, #eef5ee);
    border-radius: var(--radius-xs);
}

.history-detail-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.history-detail-value {
    color: var(--dark);
    font-weight: 700;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 3.5em;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 1.05em;
    margin-bottom: 8px;
    font-weight: 500;
}

/* ============================================================ */
/* MASTER DATA */
/* ============================================================ */
.master-add-form {
    background: linear-gradient(135deg, #f5f9f5, #eef5ee);
    border: 1px solid rgba(46,125,50,0.2);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}

.master-add-form h3 {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 1.05em;
    font-weight: 700;
}

.master-field-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.master-field-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    border-radius: 4px 0 0 4px;
}

.master-field-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.master-field-card h3 {
    color: var(--dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    font-size: 1em;
    font-weight: 800;
}

.field-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(46,125,50,0.1), rgba(46,125,50,0.05));
    color: var(--primary);
    padding: 7px 14px;
    border-radius: 24px;
    font-size: 0.88em;
    font-weight: 600;
    border: 1px solid rgba(46,125,50,0.2);
    transition: all 0.2s;
}

.field-chip:hover {
    background: rgba(46,125,50,0.15);
}

.field-chip-delete {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--danger);
    font-size: 0.9em;
    line-height: 1;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.field-chip-delete:hover {
    background: var(--danger);
    color: white;
}

/* ============================================================ */
/* PRINT */
/* ============================================================ */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .sidebar, .header, .form-actions, .nav-btn, .logout-btn,
    .mobile-topbar, .mobile-bottom-nav {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 0;
    }

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

    .print-header h1 {
        font-size: 1.8em;
        margin-bottom: 5px;
    }

    .print-data-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 15px;
    }

    .print-data-item {
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 4px;
    }

    .print-data-item label {
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
    }

    .print-data-item value {
        display: block;
        color: #555;
    }
}

/* Select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 1.3em;
    padding-right: 40px;
}

/* ============================================================ */
/* RESPONSIVE – DESKTOP */
/* ============================================================ */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rupiah-summary-grid {
        grid-template-columns: 1fr;
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .division-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================================ */
/* RESPONSIVE – TABLET & MOBILE */
/* ============================================================ */
@media (max-width: 768px) {
    /* Hide desktop sidebar, show mobile nav */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(.22,1,.36,1);
        width: 280px;
        min-height: 100vh;
        position: fixed;
        top: 0; left: 0;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 40px rgba(0,0,0,0.35);
    }

    .mobile-topbar {
        display: flex;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 12px;
        padding-top: 72px;
        padding-bottom: 78px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .header {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: var(--radius-sm);
    }

    .header h1 {
        font-size: 1.1em;
    }

    .header p {
        font-size: 0.8em;
    }

    .header::before, .header::after {
        display: none;
    }

    .header-icon {
        font-size: 1.8em;
    }

    /* ── Dashboard Mobile ── */
    .dashboard-container,
    .history-container {
        padding: 14px;
        border-radius: var(--radius-sm);
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .dashboard-header h2 {
        font-size: 1.15em;
    }

    .dashboard-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }

    .dashboard-filters select {
        width: 100%;
        font-size: 0.82em;
        padding: 8px 30px 8px 10px;
    }

    .dashboard-filters .btn {
        grid-column: 1 / -1;
        width: 100%;
        font-size: 0.8em;
        padding: 8px 12px;
    }

    /* Stats Cards - 2 kolom di HP */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 14px;
        width: 100%;
    }

    .stat-card {
        padding: 14px 12px;
        gap: 10px;
    }

    .stat-icon {
        font-size: 1.5em;
        min-width: 36px;
    }

    .stat-label {
        font-size: 0.7em;
    }

    .stat-value {
        font-size: 1.1em;
    }

    /* Rupiah Cards - stack vertical */
    .rupiah-summary-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 16px;
        width: 100%;
    }

    .rupiah-card {
        padding: 14px 16px;
    }

    .rupiah-card-icon {
        font-size: 1.4em;
    }

    .rupiah-card-label {
        font-size: 0.72em;
    }

    .rupiah-card-value {
        font-size: 1em;
    }

    /* Charts - stack vertical */
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 16px;
        width: 100%;
    }

    .chart-card {
        padding: 16px 12px;
    }

    .chart-card h3 {
        font-size: 0.9em;
    }

    .chart-wrapper {
        height: 200px;
    }

    .chart-wrapper-wide {
        height: 180px;
    }

    /* Rekap Table - scroll horizontal */
    .rekap-section {
        margin-bottom: 16px;
    }

    .rekap-section h3 {
        font-size: 0.95em;
    }

    .table-responsive {
        width: 100%;
        max-width: 100vw;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rekap-table {
        font-size: 0.78em;
        min-width: 500px;
    }

    .rekap-table th,
    .rekap-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }

    /* Division Stats */
    .division-stats-grid {
        grid-template-columns: 1fr;
    }

    /* ── Form Mobile ── */
    .form-container {
        padding: 18px 14px;
    }

    .form-section h2 {
        font-size: 0.95em;
    }

    .form-row,
    .form-row.triple {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
    }

    .form-actions {
        flex-wrap: wrap;
    }

    .btn {
        min-width: auto;
        flex: 1;
        font-size: 0.85em;
        padding: 11px 14px;
    }

    /* ── History Mobile ── */
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .history-controls {
        width: 100%;
        min-width: auto;
    }

    .history-item-header {
        flex-direction: column;
    }

    .history-item-actions {
        width: 100%;
    }

    .history-btn {
        flex: 1;
        text-align: center;
    }

    .history-item-details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .history-item-details {
        grid-template-columns: 1fr;
    }

    .division-stats-grid {
        grid-template-columns: 1fr;
    }

    .login-box {
        padding: 36px 24px;
    }

    .login-header h1 {
        font-size: 1.5em;
    }
}

/* Input readonly */
input[readonly], textarea[readonly] {
    opacity: 0.9;
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(46,125,50,0.2);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(46,125,50,0.35);
}

/* Edit mode indicator */
.form-container.editing {
    border: 2px solid var(--accent);
    position: relative;
}

.form-container.editing::before {
    content: '✏️ Mode Edit — Mengubah data laporan yang sudah tersimpan';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.88em;
    border-radius: var(--radius) var(--radius) 0 0;
    text-align: center;
}

.form-container.editing form {
    margin-top: 50px;
}

/* ============================================================ */
/* MICRO ANIMATIONS */
/* ============================================================ */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Smooth focus transitions */
input, select, textarea, button {
    transition-property: border-color, box-shadow, background, transform, opacity;
    transition-duration: 0.22s;
    transition-timing-function: ease;
}

/* ============================================================ */
/* NOTIF MODAL POPUP */
/* ============================================================ */
.notif-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.notif-modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.notif-modal-box {
    background: white;
    border-radius: 24px;
    padding: 44px 40px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.2);
    transform: scale(0.88) translateY(24px);
    transition: transform 0.32s cubic-bezier(.22,1,.36,1);
    position: relative;
    overflow: hidden;
}

.notif-modal-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--primary));
    border-radius: 24px 24px 0 0;
}

.notif-modal-overlay.show .notif-modal-box {
    transform: scale(1) translateY(0);
}

.notif-modal-icon {
    font-size: 3.8em;
    margin-bottom: 16px;
    animation: modalIconBounce 0.5s cubic-bezier(.22,1,.36,1) 0.1s both;
    line-height: 1;
}

@keyframes modalIconBounce {
    from { transform: scale(0) rotate(-20deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}

.notif-modal-title {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.notif-modal-msg {
    color: var(--text-secondary);
    font-size: 0.97em;
    line-height: 1.6;
    margin-bottom: 28px;
}

.notif-modal-detail {
    background: linear-gradient(135deg, #f5f9f5, #edf5ed);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 28px;
    text-align: left;
    font-size: 0.88em;
    color: var(--text);
}

.notif-modal-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-light);
}

.notif-modal-detail-row:last-child {
    border-bottom: none;
}

.notif-modal-detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.notif-modal-detail-value {
    font-weight: 700;
    color: var(--dark);
}

.notif-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.notif-modal-actions .btn {
    min-width: 120px;
    padding: 12px 32px;
    font-size: 0.95em;
}

/* Success state */
.notif-modal-overlay.success .notif-modal-box::before {
    background: linear-gradient(90deg, #43a047, #2e7d32, #81c784);
}

/* Error state */
.notif-modal-overlay.error .notif-modal-box::before {
    background: linear-gradient(90deg, #e53935, #b71c1c, #ef9a9a);
}

.notif-modal-overlay.error .notif-modal-actions .btn {
    background: linear-gradient(135deg, var(--danger), #c62828);
    box-shadow: 0 4px 20px rgba(229,57,53,0.3);
}
