/* Public CSS - Orange Theme */

/* Form Container */
.sa-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.sa-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.sa-form-header h2 {
    color: #FF5722;
    font-size: 28px;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.sa-form-header h3 {
    color: #666;
    font-size: 18px;
    margin: 0;
    font-weight: 400;
}

/* Form Card */
.sa-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Form Group */
.sa-form-group {
    margin-bottom: 25px;
}

.sa-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.sa-label-ar {
    display: block;
    color: #333;
    font-size: 16px;
    margin-bottom: 2px;
}

.sa-label-en {
    display: block;
    color: #666;
    font-size: 14px;
}

/* Input Field */
.sa-input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 1px;
    box-sizing: border-box;
}

.sa-input:focus {
    outline: none;
    border-color: #FF5722;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

/* Button */
.sa-button-primary {
    width: 100%;
    padding: 16px;
    background: #FF5722;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.sa-button-primary:hover {
    background: #E64A19;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.sa-button-primary:active {
    transform: translateY(0);
}

.sa-button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Message Container */
#sa-message {
    margin-top: 25px;
    min-height: 60px;
}

/* Success Message */
.sa-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.sa-success-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: scaleIn 0.5s ease 0.2s both;
}

.sa-success-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.sa-success-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
}

.sa-success-message {
    font-size: 16px;
    opacity: 0.95;
}

/* Error Message */
.sa-error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    animation: shake 0.5s ease;
    box-shadow: 0 4px 20px rgba(244, 67, 54, 0.3);
}

.sa-error-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.sa-error-message {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
}

/* Loading Message */
.sa-loading {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    animation: pulse 1.5s ease infinite;
}

/* Quorum Display */
.sa-quorum-display {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.sa-quorum-header {
    text-align: center;
    margin-bottom: 40px;
}

.sa-quorum-title {
    font-size: 28px;
    color: #FF5722;
    margin-bottom: 5px;
    font-weight: 600;
}

.sa-quorum-subtitle {
    font-size: 18px;
    color: #666;
}

/* Statistics */
.sa-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.sa-stat-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.sa-stat-card.sa-stat-present {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border: 2px solid #2196F3;
}

.sa-stat-card.sa-stat-required {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border: 2px solid #FF9800;
}

.sa-stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sa-stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

/* Progress Bar */
.sa-progress-container {
    margin-bottom: 30px;
}

.sa-progress-bar-wrapper {
    height: 40px;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.sa-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FF9800 0%, #FF5722 100%);
    transition: width 0.5s ease, background 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.sa-progress-bar.sa-progress-achieved {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
}

.sa-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-weight: 700;
    font-size: 18px;
    z-index: 10;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
}

/* Status Badge */
.sa-status-badge {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.sa-status-pending {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    color: #F57C00;
    border: 2px solid #FF9800;
}

.sa-status-achieved {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    color: #2E7D32;
    border: 2px solid #4CAF50;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive */
@media (max-width: 600px) {
    .sa-form-container {
        padding: 10px;
    }
    
    .sa-form-card {
        padding: 25px;
    }
    
    .sa-form-header h2 {
        font-size: 24px;
    }
    
    .sa-form-header h3 {
        font-size: 16px;
    }
    
    .sa-input {
        font-size: 16px;
        padding: 12px;
    }
    
    .sa-button-primary {
        font-size: 16px;
        padding: 14px;
    }
    
    .sa-stat-number {
        font-size: 36px;
    }
    
    .sa-quorum-display {
        padding: 25px;
    }
}
