/* Aplikasi Warung Root Styles */
:root {
    --primary-color: #8BC34A;
    --primary-dark: #689F38;
    --secondary-color: #B0BEC5;
    --light-gray: #CFD8DC;
    --very-light-gray: #ECEFF1;
    --white: #FFFFFF;
    --text-dark: #263238;
    --text-light: #78909C;
    --success: #4CAF50;
    --warning: #FFC107;
    --danger: #F44336;
    --info: #2196F3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color:#8BC34A; /* #FEC97F Warna oranye seperti yang diminta  */
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#root {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.main-container {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.main-header {
    background: linear-gradient(135deg, #FEC97F, #E7A465);
    color: white;
    text-align: center;
    padding: 2rem;
}

.main-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.main-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.app-selector {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
}

.app-option {
    flex: 1;
    min-width: 250px;
    background-color: var(--very-light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.app-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
    background-color: white;
}

/* Admin card khusus dengan warna hijau pastel */
.app-option.admin-option {
    background-color: #E8F5E9; /* Hijau pastel */
    border-color: #8BC34A; /* Hijau lebih gelap untuk border */
}

.app-option.admin-option:hover {
    background-color: white;
    border-color: #8BC34A;
}

.app-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

/* Admin card khusus dengan warna hijau pastel */
.app-option.admin-option {
    background-color: #E8F5E9; /* Hijau pastel */
    border-color: #8BC34A; /* Hijau lebih gelap untuk border */
}

.app-option.admin-option:hover {
    background-color: white;
    border-color: #8BC34A;
}

.app-option.admin-option .app-icon {
    background-color: #8BC34A !important; /* Warna hijau untuk ikon */
}

/* Scan option styling - nuansa merah */
.app-option.scan-option {
    background-color: #FFEBEE; /* Warna merah muda pastel */
    border-color: #D32F2F; /* Nuansa merah lebih gelap */
}

.app-option.scan-option:hover {
    background-color: white;
    border-color: #D32F2F;
}

.app-option.scan-option .app-icon {
    background-color: #D32F2F !important; /* Nuansa merah lebih gelap untuk ikon scan */
}

.app-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.app-option h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.app-option p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.app-info {
    padding: 0 2rem 2rem;
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

.app-info p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.app-info ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.app-info li {
    background-color: var(--very-light-gray);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
}

strong {
    color: var(--primary-color);
}

.heartbeat {
    color: #e74c3c; /* Merah untuk hati */
    animation: heartbeat 1.5s infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    5% { transform: scale(1.1); }
    10% { transform: scale(1); }
    15% { transform: scale(1.2); }
    20% { transform: scale(1); }
    100% { transform: scale(1); }
}

.footer-link {
    color: inherit; /* Gunakan warna teks asli, bukan biru standar link */
    text-decoration: none; /* Tanpa underline */
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline; /* Bisa ditambahkan efek hover jika diinginkan */
}

/* Styling untuk tombol signup - nuansa biru */
.app-option.signup-option {
    background-color: #E3F2FD; /* Biru muda pastel */
    border-color: #1976D2; /* Nuansa biru lebih gelap */
}

.app-option.signup-option:hover {
    background-color: white;
    border-color: #1976D2;
}

.app-option.signup-option .app-icon {
    background-color: #1976D2 !important; /* Nuansa biru lebih gelap untuk ikon signup */
}

/* Responsive */
@media (max-width: 768px) {
    .app-selector {
        flex-direction: column;
    }

    .main-header h1 {
        font-size: 2rem;
    }

    .app-option {
        min-width: 100%;
    }
}