/*
 Theme Name:   Astra Child
 Description:  Child theme untuk Astra
 Author:       Goowebb
 Template:     astra
 Version:      1.0.0
*/

/* Container Box & Global */
.event-auth-container, .dashboard-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 40px auto;
    font-family: 'Inter', sans-serif;
}
.event-auth-container { max-width: 450px; text-align: center;}

/* Form Styling */
.form-group { text-align: left; margin-bottom: 20px; }
.form-group label { font-size: 11px; font-weight: 700; color: #4A5568; letter-spacing: 1px; display: block; margin-bottom: 8px; }
.form-group input { width: 100%; padding: 12px 15px; border: 1px solid #E2E8F0; background: #F8FAFC; border-radius: 6px; font-size: 14px; }

/* Buttons */
button[name="submit_register"], button[name="submit_login"], #btn-redeem.active {
    width: 40%; background: #12d251; color: #ffffff; padding: 14px; border: none; border-radius: 8px; font-weight: bold; letter-spacing: 1px; cursor: pointer; transition: 0.3s;
}
button:hover { background: #1A202C; }

/* Dashboard Grid Layout */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 30px; }
.booth-card { background: #ffffff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); display: flex; flex-direction: column; justify-content: space-between; min-height: 140px; border-left: 5px solid #CBD5E1; transition: 0.3s;}

/* State Status */
.booth-card.visited { border-left-color: #10B981; }
.booth-card.not-visited { border-left-color: #F59E0B; }

.card-content { padding: 20px 20px 10px 20px; }
.station-number { font-size: 10px; color: #A0AEC0; font-weight: bold; }
.card-content h3 { font-size: 18px; margin: 5px 0 0 0; color: #2D3748; }
.card-footer { padding: 10px 20px 20px 20px; }

.status-icon { font-size: 12px; font-weight: 600; display: inline-block;}
.success-icon { color: #10B981; }
.scan-icon { color: #F59E0B; cursor: pointer; }

/* Progress Bar & Header */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #EDF2F7; padding-bottom: 20px; }
.welcome-tag { font-size: 11px; color: #ED8936; font-weight: bold; }
.progress-bar-bg { width: 180px; height: 8px; background: #E2E8F0; border-radius: 4px; overflow: hidden; margin-top: 5px;}
.progress-bar-fill { height: 100%; background: #F6AD55; border-radius: 4px; }

/* Redeem Button Disabled State */
#btn-redeem.disabled { background: #E2E8F0; color: #A0AEC0; cursor: not-allowed; width: auto; padding: 12px 40px;}

/* =======================================================
   PERBAIKAN LAYOUT MOBILE (FEST PROGRESS DI BAWAH WELCOME)
   ======================================================= */
@media (max-width: 680px) {
    .dashboard-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px;
    }
    
	.event-auth-container, .dashboard-container {
		padding: 15px;
	}
	
    /* Memaksa area progress bar melebar penuh di bawah nama */
    .dashboard-header > div:last-child {
        width: 100% !important;
    }
    
    .progress-bar-bg {
        width: 100% !important; /* Bar memanjang penuh mengikuti layar HP */
        margin-top: 8px;
    }
}
