/* Mobile-first responsive design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.question {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.4;
}

.status-container {
    margin: 30px 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading {
    font-size: 18px;
    color: #666;
}

.status {
    padding: 20px 40px;
    border-radius: 15px;
    font-size: 32px;
    font-weight: 700;
    transition: all 0.3s ease;
    min-width: 120px;
}

.status-open {
    background-color: #10b981;
    color: white;
}

.status-closed {
    background-color: #ef4444;
    color: white;
}

.status-text {
    display: block;
}

.last-updated {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    .container {
        padding: 60px 50px;
    }
    
    .question {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .status {
        font-size: 48px;
        padding: 30px 60px;
        min-width: 180px;
    }
    
    .last-updated {
        font-size: 16px;
    }
}

/* Desktop screens */
@media (min-width: 1024px) {
    .question {
        font-size: 42px;
    }
    
    .status {
        font-size: 56px;
    }
}

/* Admin pages styling */
.admin-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    margin: 20px auto;
}

.admin-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch-friendly minimum size */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5568d3;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-toggle {
    background-color: #10b981;
    color: white;
    font-size: 18px;
    padding: 16px;
    margin-bottom: 15px;
}

.btn-toggle.status-closed {
    background-color: #ef4444;
}

.btn-toggle:hover {
    opacity: 0.9;
}

.admin-login-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.admin-login-btn:hover {
    background-color: white;
    color: #5568d3;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.admin-login-btn:active {
    transform: translateY(0);
}

.error-message {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.success-message {
    background-color: #d1fae5;
    color: #059669;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.current-status {
    text-align: center;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
}

.current-status.status-open {
    background-color: #d1fae5;
    color: #059669;
}

.current-status.status-closed {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Mobile adjustments for admin pages */
@media (max-width: 767px) {
    .admin-container {
        padding: 25px 20px;
    }
    
    .admin-title {
        font-size: 20px;
    }
    
    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .admin-login-btn {
        top: 15px;
        right: 15px;
        padding: 10px 18px;
        font-size: 13px;
    }
}

