* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fff9f0, #fff);
    color: #2c1810;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(201, 167, 77, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* LOGIN PAGE */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C9A74D, #b8923a);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '❤️';
    position: absolute;
    font-size: 15rem;
    opacity: 0.1;
    bottom: -50px;
    right: -50px;
    transform: rotate(15deg);
}

.login-page::after {
    content: '💍';
    position: absolute;
    font-size: 12rem;
    opacity: 0.1;
    top: -30px;
    left: -30px;
    transform: rotate(-15deg);
}

.login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.login-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.login-subtitle {
    opacity: 0.9;
    font-style: italic;
    font-size: 1.1rem;
}

.login-box {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.login-form-group {
    margin-bottom: 20px;
}

.login-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.login-form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.login-form-group input:focus {
    outline: none;
    border-color: #C9A74D;
    box-shadow: 0 0 0 4px rgba(201, 167, 77, 0.1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #C9A74D, #b8923a);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(201, 167, 77, 0.4);
}

/* NAVBAR */
.navbar {
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #8b5a2b;
    font-weight: 600;
}

.nav-brand i {
    color: #C9A74D;
    margin-right: 5px;
}

.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    padding: 8px 15px;
    background: #F4F4F4;
    border-radius: 25px;
}

.nav-user i {
    color: #C9A74D;
    font-size: 1.2rem;
}

.nav-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    background: #F4F4F4;
    color: #333;
}

.nav-btn:hover {
    background: #C9A74D;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 167, 77, 0.3);
}

.logout-btn {
    background: #ffebee;
    color: #ff6b6b;
}

.logout-btn:hover {
    background: #ff6b6b;
    color: white;
}

/* Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(201, 167, 77, 0.1), rgba(255,255,255,0.9));
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(201, 167, 77, 0.1);
    border: 1px solid rgba(201, 167, 77, 0.2);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '💍❤️💍';
    position: absolute;
    font-size: 5rem;
    opacity: 0.1;
    top: -20px;
    right: -20px;
    transform: rotate(15deg);
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #8b5a2b;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.title-icon {
    margin: 0 15px;
    font-size: 2.5rem;
}

.subtitle {
    color: #C9A74D;
    font-style: italic;
    font-size: 1.3rem;
    font-weight: 300;
}

/* Progress Card */
.progress-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid rgba(201, 167, 77, 0.1);
}

.progress-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(201, 167, 77, 0.15);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.progress-header h2 {
    color: #8b5a2b;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.target-date {
    background: #F4F4F4;
    padding: 10px 20px;
    border-radius: 25px;
    color: #666;
    font-size: 0.95rem;
}

.progress-main {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.progress-circle {
    width: 150px;
    height: 150px;
    border: 8px solid #F4F4F4;
    border-top-color: #C9A74D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateIn 0.5s;
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

.circle-progress {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #C9A74D;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.progress-numbers {
    flex: 1;
    display: flex;
    gap: 40px;
}

.progress-numbers h3 {
    font-size: 2.2rem;
    color: #8b5a2b;
    font-weight: 700;
}

.progress-numbers span {
    color: #666;
    font-size: 0.95rem;
}

.progress-bar-container {
    width: 100%;
    height: 15px;
    background: #F4F4F4;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #C9A74D, #e6c572);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.remaining-info {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 10px;
    background: #F4F4F4;
    border-radius: 25px;
}

.remaining-info i {
    color: #C9A74D;
    margin-right: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.3s;
    border: 1px solid rgba(201, 167, 77, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(201, 167, 77, 0.15);
    border-color: #C9A74D;
}

.stat-card i {
    font-size: 2.5rem;
    color: #C9A74D;
    width: 60px;
    height: 60px;
    background: #F4F4F4;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.stat-card:hover i {
    background: #C9A74D;
    color: white;
    transform: rotate(360deg);
}

.stat-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-card h4 {
    color: #8b5a2b;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.btn {
    padding: 20px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn i {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.btn:hover i {
    transform: scale(1.2);
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-danger {
    background: #ff6b6b;
    color: white;
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Transactions */
.transactions-section {
    background: white;
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(201, 167, 77, 0.1);
}

.transactions-section h2 {
    color: #8b5a2b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #F4F4F4;
    border-radius: 15px;
    transition: all 0.3s;
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.transaction-item:hover {
    transform: translateX(5px) scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.transaction-item:hover .delete-btn {
    display: flex;
}

.transaction-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.transaction-item:hover .transaction-icon {
    transform: rotate(360deg);
}

.transaction-icon.masuk {
    background: #e8f5e9;
    color: #4caf50;
}

.transaction-icon.keluar {
    background: #ffebee;
    color: #ff6b6b;
}

.transaction-details {
    flex: 1;
}

.transaction-desc {
    font-weight: 500;
    margin-bottom: 5px;
}

.transaction-date {
    font-size: 0.8rem;
    color: #666;
}

.transaction-amount {
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 45px;
}

.transaction-amount.positive {
    color: #4caf50;
}

.transaction-amount.negative {
    color: #ff6b6b;
}

.delete-btn {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: #ffebee;
    color: #ff6b6b;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    position: absolute;
    right: 10px;
}

.delete-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

.no-data {
    text-align: center;
    color: #999;
    padding: 50px;
    background: #F4F4F4;
    border-radius: 15px;
    font-style: italic;
}

.no-data i {
    font-size: 3rem;
    color: #C9A74D;
    margin-bottom: 15px;
    display: block;
}

.no-data p {
    font-size: 1rem;
    color: #666;
}

/* Tips Card */
.tips-card {
    background: linear-gradient(135deg, #C9A74D, #b8923a);
    border-radius: 30px;
    padding: 30px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(201, 167, 77, 0.3);
    animation: glow 3s infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 10px 30px rgba(201, 167, 77, 0.3); }
    50% { box-shadow: 0 20px 50px rgba(201, 167, 77, 0.6); }
}

.tips-card::before {
    content: '💡';
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    bottom: -20px;
    right: -20px;
    transform: rotate(15deg);
}

.tips-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tips-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    position: relative;
}

.tips-card p {
    font-size: 1.2rem;
    animation: fadeInOut 5s infinite;
    position: relative;
    font-weight: 300;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* FOOTER */
.footer {
    background: linear-gradient(135deg, #8b5a2b, #5a3a1c);
    border-radius: 30px 30px 0 0;
    padding: 20px;
    margin-top: 40px;
    overflow: hidden;
    position: relative;
}

.footer-content {
    overflow: hidden;
    white-space: nowrap;
}

.copyright {
    color: #C9A74D;
    font-size: 1rem;
    display: inline-block;
    animation: moveText 15s linear infinite;
    padding-left: 100%;
    font-weight: 300;
    letter-spacing: 1px;
}

@keyframes moveText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Milestone Notification */
.milestone-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    z-index: 1000;
    animation: slideInRight 0.5s, fadeOut 0.5s 2.5s forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.milestone-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.milestone-content i {
    font-size: 1.5rem;
}

/* Modal */
.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(8px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    border-radius: 30px;
    overflow: hidden;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

@keyframes slideDown {
    from {
        transform: translateY(-100px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #C9A74D, #b8923a);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.close {
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    transform: rotate(90deg) scale(1.1);
    background: rgba(255,255,255,0.2);
}

.modal-content form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #F4F4F4;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #C9A74D;
    box-shadow: 0 0 0 4px rgba(201, 167, 77, 0.1);
}

.modal-content button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #C9A74D, #b8923a);
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-content button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(201, 167, 77, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-main {
        justify-content: center;
        text-align: center;
    }
    
    .progress-numbers {
        justify-content: center;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .progress-numbers {
        flex-direction: column;
        gap: 15px;
    }

    .nav-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
    }

    .btn {
        padding: 15px;
    }
}

/* Animasi Hover untuk Semua Card */
.card-hover-effect {
    transition: all 0.3s;
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(201, 167, 77, 0.2);
}

/* Scrollbar Custom */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F4F4F4;
}

::-webkit-scrollbar-thumb {
    background: #C9A74D;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8923a;
}