/* FPS Frontend Styles */
.fps-form-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.fps-form-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f4f8;
}

.fps-title {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.fps-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

.fps-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.fps-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fps-label {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fps-label .required {
    color: #e74c3c;
    font-size: 18px;
}

.fps-input,
.fps-select {
    padding: 14px 16px;
    border: 2px solid #e3e8ee;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #2c3e50;
    width: 100%;
    box-sizing: border-box;
}

.fps-input:focus,
.fps-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.fps-input::placeholder {
    color: #a0aec0;
}

.fps-hint {
    font-size: 13px;
    color: #718096;
    margin-top: 4px;
    font-style: italic;
}

/* Radio Buttons */
.fps-radio-group {
    display: flex;
    gap: 25px;
    margin-top: 5px;
}

.fps-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #4a5568;
    position: relative;
    padding-left: 35px;
    user-select: none;
}

.fps-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    position: absolute;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #cbd5e0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.fps-radio-label:hover .radio-custom {
    border-color: #3498db;
}

.fps-radio-label input[type="radio"]:checked ~ .radio-custom {
    background-color: #3498db;
    border-color: #3498db;
}

.fps-radio-label input[type="radio"]:checked ~ .radio-custom:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

/* Submit Button */
.fps-submit-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.fps-submit-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6396 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.fps-submit-btn:active {
    transform: translateY(0);
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Message Styles */
.fps-message {
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 15px;
    text-align: center;
    display: none;
}

.fps-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.fps-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Stats Styles */
.fps-stats-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
}

.fps-stats-title {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.fps-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fps-stat-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.fps-stat-card:hover {
    transform: translateY(-5px);
    background: #edf2f7;
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.stat-icon.total { color: #3498db; }
.stat-icon.smp { color: #2ecc71; }
.stat-icon.sma { color: #e74c3c; }
.stat-icon.smk { color: #f39c12; }

.stat-content h4 {
    color: #4a5568;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.fps-stats-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.fps-detail-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #9b59b6;
}

.fps-detail-card h4 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 18px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.fps-detail-card p {
    color: #4a5568;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

.fps-detail-card strong {
    color: #2c3e50;
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 15px;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fps-form-container {
        margin: 20px;
        padding: 25px 20px;
    }
    
    .fps-title {
        font-size: 24px;
    }
    
    .fps-radio-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .fps-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fps-input,
    .fps-select {
        padding: 12px 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .fps-form-container {
        margin: 10px;
        padding: 20px 15px;
    }
    
    .fps-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .fps-stats-details {
        grid-template-columns: 1fr;
    }
    
    .fps-submit-btn {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
}