:root {
    --primary: #2D3436;
    --accent: #0984e3;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --text: #2d3436;
    --text-muted: #636e72;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: #f5f6fa;
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: transform 0.1s ease-out;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
}

/* Container */
.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
    /* Space for bottom nav */
}

/* Glassmorphism Cards */
.card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 20px;
    border-radius: 20px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--accent);
    background: white;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 10px 2px;
    /* Lebih rapat lagi */
    z-index: 1000;
}

.nav-item {
    text-align: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    /* Ukuran font lebih kecil untuk 6 item */
    font-weight: 600;
    flex: 1;
    min-width: 0;
    /* Mencegah overflow flex item */
}

.nav-item i {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 2px;
}

.nav-item.active {
    color: var(--primary);
}

/* Finance Items */
.finance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.finance-item:last-child {
    border-bottom: none;
}

.amount {
    font-weight: 700;
    font-size: 1.1rem;
}

.amount.masuk {
    color: #27ae60;
}

.amount.keluar {
    color: #e74c3c;
}

/* News Items */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
    /* Agak diperbesar sedikit */
    color: #b2bec3;
    /* Abu-abu muda */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    color: #636e72;
    /* Sedikit lebih gelap saat hover */
    transform: scale(1.1);
}

.btn-icon:active {
    transform: scale(0.9);
}

.news-card {
    padding: 0;
    overflow: hidden;
}

.news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

/* Admin Styles */
.badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-admin {
    background: #ffeaa7;
    color: #d63031;
}