* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1e40af;
    --primary-blue-light: #3b82f6;
    --secondary-purple: #8b5cf6;
    --secondary-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --white: #ffffff;
    --gray-light: #f3f4f6;
    --gray-medium: #9ca3af;
    --gray-dark: #4b5563;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: rgba(37, 99, 235, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #dbeafe 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--gray-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: float 10s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: float 12s ease-in-out infinite reverse;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(243, 244, 246, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-blue-light));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue-dark);
}

/* Pengumuman Bar */
.pengumuman-bar {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
    position: sticky;
    top: 0;
    z-index: 1001;
    overflow: hidden;
    animation: slideDownPengumuman 0.5s ease-out;
}

@keyframes slideDownPengumuman {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pengumuman-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pengumuman-icon {
    font-size: 1.5rem;
    animation: pulseIcon 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.pengumuman-text-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 1.5rem;
}

.pengumuman-text {
    white-space: nowrap;
    font-weight: 600;
    font-size: 1rem;
    animation: marquee 30s linear infinite;
    display: inline-block;
    padding-left: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pause animation on hover for better readability */
.pengumuman-text-wrapper:hover .pengumuman-text {
    animation-play-state: paused;
}

.pengumuman-text:hover {
    animation-play-state: paused;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 50%, #2563eb 100%);
    background-size: 200% 200%;
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out, gradientFlow 8s ease infinite;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.navbar.has-pengumuman {
    top: 48px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    animation: textGlow 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-brand h1:hover {
    transform: scale(1.05);
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--white), transparent);
    transition: left 0.4s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Header */
.header {
    background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 25%, #ec4899 50%, #8b5cf6 75%, #2563eb 100%);
    background-size: 300% 300%;
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    animation: fadeIn 0.8s ease-out, gradientShift 15s ease infinite, headerFloat 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body:has(.pengumuman-bar[style*="display: block"]) .header {
    margin-top: 0;
}

@keyframes headerFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
    pointer-events: none;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

.header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.2) translateY(-20px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-content h2 {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    line-height: 1.2;
    word-wrap: break-word;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideInDown 0.8s ease-out, titleWave 3s ease-in-out infinite;
    letter-spacing: -0.5px;
}

@keyframes titleWave {
    0%, 100% {
        transform: translateY(0) scaleY(1);
    }
    50% {
        transform: translateY(-8px) scaleY(1.05);
    }
}

.header-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    animation: slideInUp 0.8s ease-out 0.2s backwards;
    font-weight: 500;
    letter-spacing: 0.3px;
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.main-content::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Statistics Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: scaleIn 0.6s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes scaleIn {
    from {
        transform: scale(0.8) translateY(30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
    border-color: rgba(139, 92, 246, 0.3);
}

.stat-icon {
    font-size: 3.5rem;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.stat-card:hover .stat-icon {
    transform: rotate(8deg) scale(1.15) translateY(-5px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.stat-info {
    position: relative;
    z-index: 2;
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-weight: 800;
    transition: all 0.4s ease;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.stat-card:hover .stat-info h3 {
    color: var(--secondary-purple);
    transform: translateX(8px);
}

.stat-info p {
    color: var(--gray-medium);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Form */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out;
}

.belanja-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--gray-dark);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    background: rgba(37, 99, 235, 0.02);
    transform: translateY(-2px);
}

.form-group input[readonly] {
    background: var(--gray-light);
    cursor: not-allowed;
    color: var(--gray-medium);
}

.form-group input[type="file"] {
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.form-group input[type="file"]::file-selector-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    margin-right: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.form-group input[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, var(--secondary-purple), var(--secondary-pink));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    color: var(--gray-dark);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    margin: 0;
    width: 22px;
    height: 22px;
    accent-color: var(--primary-blue);
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:hover {
    transform: scale(1.1);
}

.checkbox-label input[type="checkbox"]:checked {
    accent-color: var(--secondary-purple);
}

.btn-submit {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 1.5rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--secondary-purple), var(--secondary-pink));
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Recent Transactions */
.recent-section {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 2.5rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.8s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.recent-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.recent-section:hover::before {
    opacity: 1;
}

.recent-section:nth-of-type(1) { animation-delay: 0.5s; }
.recent-section:nth-of-type(2) { animation-delay: 0.65s; }
.recent-section:nth-of-type(3) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recent-section:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
    border-color: rgba(139, 92, 246, 0.2);
}

.recent-section h2 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    z-index: 1;
}

.recent-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(180deg, var(--primary-blue), var(--secondary-purple));
    border-radius: 2px;
    opacity: 0;
    animation: slideInLeft 0.6s ease-out 0.3s forwards;
}

.recent-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-purple));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.recent-section:hover h2::after {
    width: 120px;
}

@keyframes slideInLeft {
    from {
        transform: translateY(-50%) translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.transaction-item {
    padding: 1.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 244, 246, 0.95) 100%);
    border-radius: 18px;
    border-left: 5px solid var(--primary-blue);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideInRight 0.7s ease-out backwards;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.transaction-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-blue), var(--secondary-purple), var(--primary-blue));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
    z-index: 1;
}

.transaction-item:hover::before {
    transform: scaleY(1);
}

.transaction-item::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.transaction-item:hover::after {
    opacity: 1;
}

.transaction-item:nth-child(1) { animation-delay: 0.15s; }
.transaction-item:nth-child(2) { animation-delay: 0.25s; }
.transaction-item:nth-child(3) { animation-delay: 0.35s; }
.transaction-item:nth-child(4) { animation-delay: 0.45s; }
.transaction-item:nth-child(5) { animation-delay: 0.55s; }

@keyframes slideInRight {
    from {
        transform: translateX(-40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.transaction-item:hover {
    transform: translateX(12px) translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.2);
    border-left-width: 7px;
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.transaction-date {
    color: var(--gray-medium);
    font-size: 0.9rem;
    font-weight: 600;
}

.transaction-amount {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    font-variant-numeric: tabular-nums;
}

.transaction-item:hover .transaction-amount {
    transform: scale(1.12) translateY(-2px);
    color: var(--secondary-purple);
}

.transaction-details {
    color: var(--gray-dark);
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.transaction-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.75rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.transaction-item:hover .transaction-category {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.empty-state {
    text-align: center;
    color: var(--gray-medium);
    padding: 4rem 2rem;
    font-style: italic;
    font-weight: 500;
    font-size: 1.1rem;
    animation: pulse 2.5s ease-in-out infinite;
    letter-spacing: 0.3px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Filter Container */
.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--gray-dark);
}

.filter-group input[type="month"] {
    padding: 0.75rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.filter-group input[type="month"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.export-buttons {
    display: flex;
    gap: 1rem;
}

.btn-export {
    padding: 0.85rem 1.8rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-export::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
    z-index: 0;
}

.btn-export:hover::before {
    left: 100%;
}

.btn-export-pdf {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.btn-export-pdf:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(220, 38, 38, 0.4);
}

.btn-export-excel {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.3);
}

.btn-export-excel:hover {
    background: linear-gradient(135deg, #15803d, #166534);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(22, 163, 74, 0.4);
}

.btn-export:active {
    transform: translateY(-1px);
}

.summary-card {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
}

.summary-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.summary-amount {
    font-size: 2rem;
    font-weight: 700;
}

/* Table */
.table-container {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    overflow-x: auto;
    overflow-y: hidden;
    transition: all 0.5s ease;
    animation: fadeInUp 0.8s ease-out 0.9s backwards;
}

.table-container:hover {
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
    transform: translateY(-4px);
}

.rekap-table {
    width: 100%;
    border-collapse: collapse;
}

.rekap-table thead {
    background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 50%, #2563eb 100%);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.rekap-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-size: 0.95rem;
}

.rekap-table tbody tr {
    border-bottom: 1px solid rgba(243, 244, 246, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInRow 0.6s ease-out backwards;
}

.rekap-table tbody tr:nth-child(1) { animation-delay: 0.15s; }
.rekap-table tbody tr:nth-child(2) { animation-delay: 0.25s; }
.rekap-table tbody tr:nth-child(3) { animation-delay: 0.35s; }
.rekap-table tbody tr:nth-child(4) { animation-delay: 0.45s; }
.rekap-table tbody tr:nth-child(5) { animation-delay: 0.55s; }

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rekap-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.05), rgba(243, 244, 246, 0.9));
    transform: scale(1.01);
    box-shadow: inset 0 0 20px rgba(37, 99, 235, 0.08);
}

.rekap-table tbody tr:hover td {
    color: var(--primary-blue-dark);
}

.rekap-table td {
    padding: 1.25rem 1.5rem;
    color: var(--gray-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.rekap-table tbody tr:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-content {
        padding: 0 1.5rem;
    }
    
    .pengumuman-content {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header {
        padding: 2rem 0;
    }

    .header-content h2 {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .header-content p {
        font-size: 1rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .stat-info h3 {
        font-size: 1.5rem;
    }

    .recent-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .recent-section h2 {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .main-content::before,
    .main-content::after {
        display: none;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .export-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .btn-export {
        flex: 1;
    }

    .summary-card {
        width: 100%;
    }

    .rekap-table {
        font-size: 0.85rem;
    }

    .rekap-table th,
    .rekap-table td {
        padding: 0.75rem 0.5rem;
    }

    .transaction-item {
        padding: 1rem;
    }

    .pengumuman-bar {
        padding: 0.5rem 0;
    }

    .pengumuman-content {
        padding: 0 1rem;
        gap: 0.75rem;
    }

    .pengumuman-icon {
        font-size: 1.2rem;
    }

    .pengumuman-text {
        font-size: 0.9rem;
    }

    .pengumuman-text-wrapper {
        height: 1.25rem;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .header-content h2 {
        font-size: 1.3rem;
    }

    .header-content p {
        font-size: 0.9rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .stat-info h3 {
        font-size: 1.3rem;
    }

    .recent-section {
        padding: 1.25rem;
    }

    .recent-section h2 {
        font-size: 1.3rem;
    }
}

/* Image Upload Styles */
.image-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-light);
    border-radius: 8px;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px var(--shadow);
}

.btn-remove-image {
    padding: 0.5rem 1rem;
    background: #dc2626;
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-image:hover {
    background: #b91c1c;
}

.bukti-preview {
    margin-top: 0.5rem;
}

.bukti-thumbnail {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow);
    margin-top: 0.5rem;
}

.bukti-thumbnail:hover {
    transform: scale(1.05);
}

.bukti-thumbnail-table {
    max-width: 80px;
    max-height: 80px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px var(--shadow);
}

.bukti-thumbnail-table:hover {
    transform: scale(1.1);
}

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    padding: 2rem;
    text-align: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-modal-content .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-modal-content .modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.admin-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-header h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-card {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.login-card h2 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.login-subtitle {
    color: var(--gray-medium);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.login-hint {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--gray-medium);
    font-style: italic;
    font-weight: 500;
}

.btn-add {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-add::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-add:hover::before {
    left: 100%;
}

.btn-add:hover {
    background: linear-gradient(135deg, var(--secondary-purple), var(--secondary-pink));
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.btn-add:active {
    transform: translateY(-1px);
}

.btn-edit,
.btn-delete {
    padding: 0.7rem 1.3rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.btn-edit::before,
.btn-delete::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.btn-edit:hover::before,
.btn-delete:hover::before {
    left: 100%;
}

.btn-edit {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-edit:hover {
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--white);
    margin: 3% auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem;
    border-bottom: 2px solid var(--gray-light);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(139, 92, 246, 0.05));
}

.modal-header h3 {
    color: var(--primary-blue);
    font-size: 1.7rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.modal-close {
    color: var(--gray-medium);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-light);
}

.modal-close:hover {
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.1);
    transform: rotate(90deg) scale(1.1);
}

.modal-content .belanja-form {
    padding: 2.5rem;
    margin: 0;
    box-shadow: none;
}

.btn-cancel {
    flex: 1;
    padding: 1.1rem;
    background: var(--gray-light);
    color: var(--gray-dark);
    border: 2px solid var(--gray-medium);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.3px;
}

.btn-cancel:hover {
    background: var(--gray-medium);
    color: var(--white);
    border-color: var(--gray-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.form-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-actions .btn-submit {
    flex: 1;
    margin: 0;
}

/* Responsive for Admin */
@media (max-width: 768px) {
    .agenda-item {
        flex-direction: column;
    }

    .agenda-date {
        min-width: auto;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .agenda-day {
        font-size: 1.5rem;
    }

    .agenda-actions {
        flex-direction: row;
        width: 100%;
    }

    .btn-edit,
    .btn-delete {
        flex: 1;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-add {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .form-actions {
        flex-direction: column;
    }
}
