:root {
    --primary: #1E3A8A; /* Deep Blue / Indigo */
    --primary-light: #3B82F6;
    --primary-gradient: linear-gradient(135deg, #1E3A8A, #3B82F6);
    --secondary: #EAB308; /* Ramadan Gold */
    --secondary-hover: #CA8A04;
    --success: #10B981;
    --danger: #EF4444;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --bg-color: #0F172A; /* Slate 900 */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(to bottom right, #0F172A, #1E1B4B);
}

.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #3B82F6;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #8B5CF6;
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #EAB308;
    top: 30%;
    left: 40%;
    opacity: 0.4;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(100px, 50px) rotate(45deg) scale(1.2); }
}

.container {
    width: 100%;
    max-width: 600px;
    z-index: 1;
}

/* Glassmorphism Card */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Header */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(234, 179, 8, 0.5);
}

.title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group label,
.status-selection > label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--primary-light);
    font-size: 1.1rem;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none; /* Hide default dropdown arrow for uniform look across browsers */
    line-height: normal; /* Make select and input identical height */
}

.input-wrapper input::placeholder {
    color: #9CA3AF;
}

/* Optional: Add custom arrow for select */
.input-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 1rem;
    padding-right: 3rem;
    cursor: pointer;
}

/* Style the default selected option to look like a placeholder */
.input-wrapper select:invalid {
    color: #9CA3AF;
}

.input-wrapper select option {
    color: var(--text-main);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Radio Buttons for Status */
.status-selection .radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.7);
}

.radio-btn i {
    font-size: 1.2rem;
}

/* Hover effects */
.radio-btn:hover {
    background-color: #F9FAFB;
}

/* Selected States */
input[value="Hadir"]:checked + .btn-hadir {
    border-color: var(--success);
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}
input[value="Hadir"]:checked + .btn-hadir i { color: var(--success); }

input[value="Tidak Hadir"]:checked + .btn-tidak-hadir {
    border-color: var(--danger);
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}
input[value="Tidak Hadir"]:checked + .btn-tidak-hadir i { color: var(--danger); }

/* Submit Button */
.submit-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3B82F6, #1E3A8A);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Contact Section CTA */
.contact-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}

.contact-section p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.whatsapp-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.wa-btn i {
    font-size: 1.2rem;
}

.wa-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
    .glass-effect {
        padding: 1.5rem;
    }
    
    .status-selection .radio-group {
        grid-template-columns: 1fr;
    }

    .title {
        font-size: 1.25rem;
    }
}
