/* styles.css - BLUEWAVE BANTEN STYLES (FIXED) */
/* ============================================= */

/* --- Global Styles & Fonts --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* --- Authentication Pages Styles --- */
.auth-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.auth-notification {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Dashboard Styles --- */
.dashboard-bg {
    background-color: #f8fafc;
}

.sidebar {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    position: relative;
    min-height: 100vh;
}

.nav-item {
    position: relative;
    transition: all 0.2s ease-in-out;
    color: #dbeafe;
    border-radius: 8px;
    margin: 2px 0;
}

.nav-item.active, 
.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: white;
    border-radius: 0 4px 4px 0;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* --- Card & Interactive Elements --- */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.wisata-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.wisata-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.btn-favorite {
    transition: all 0.2s ease;
}

.btn-favorite:hover {
    transform: scale(1.1);
}

.payment-method {
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.payment-method:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.payment-method.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.counter-btn {
    transition: all 0.2s ease;
}

.counter-btn:hover {
    background-color: #e5e7eb;
}

.counter-btn:active {
    transform: scale(0.95);
}

/* --- Progress & Steps --- */
#progressBar {
    transition: width 0.5s ease-in-out;
}

.step-indicator.active .step-number {
    background-color: #3b82f6;
    color: white;
}

.step-indicator.completed .step-number {
    background-color: #10b981;
    color: white;
}

/* --- Map & QR Code --- */
#map {
    height: 400px;
    border-radius: 12px;
    z-index: 1;
}

.leaflet-popup-content {
    font-family: 'Poppins', sans-serif;
}

.qr-code {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 8px;
    background-color: white;
    padding: 10px;
    border: 1px solid #e5e7eb;
}

/* --- Weather & Icons --- */
.weather-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* --- Form Elements --- */
.datepicker-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #374151;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
}

.datepicker-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* --- Notifications --- */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    animation: slideInRight 0.3s ease-out, fadeOut 0.5s ease-in 4s forwards;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 250px;
}

.notification.error {
    background-color: #ef4444;
}

.notification.warning {
    background-color: #f59e0b;
}

.notification.info {
    background-color: #3b82f6;
}

@keyframes slideInRight {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateX(100%); }
}

/* --- Badges & Status --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success { 
    background-color: #dcfce7; 
    color: #166534; 
}

.badge-warning { 
    background-color: #fef3c7; 
    color: #92400e; 
}

.badge-error { 
    background-color: #fee2e2; 
    color: #991b1b; 
}

.badge-info { 
    background-color: #dbeafe; 
    color: #1e40af; 
}

/* --- Loading & Skeleton --- */
.loading {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .auth-card {
        margin: 10px;
    }
    
    .wisata-card {
        margin-bottom: 1rem;
    }
    
    .payment-method {
        margin-bottom: 0.5rem;
    }
    
    #map {
        height: 300px;
    }
    
    .sidebar {
        width: 100%;
        position: fixed;
        z-index: 40;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
}

/* --- Utility Classes --- */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}