/**
 * French Language System - Components Stylesheet
 * 
 * @package French_Language_System
 * @version 1.0.0
 */

/* ===== LOGIN/REGISTER FORMS ===== */
/* حذف شد - از افزونه super-auth-popup استفاده می‌شود */

/* ===== LEVEL DETERMINATION FORM ===== */
.level-form-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.level-form-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.level-form-header {
    background: #c2452d;color: white !important;
    color: white;
    padding: 40px;
    text-align: center;
}

.level-form-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.level-form-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.level-form-body {
    padding: 40px;
}

.level-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.level-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.level-option:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.level-option.selected {
    border-color: #667eea;
    background: #c2452d;color: white !important;
    color: white;
}

.level-option-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.level-option-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.level-option-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== PRIVATE CLASS FORM ===== */
.private-class-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.private-class-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.private-class-header {
    background: #c2452d;color: white !important;
    color: white;
    padding: 40px;
    text-align: center;
}

.private-class-video {
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    margin: 20px auto;
    display: block;
}

.private-class-body {
    padding: 40px;
}

.class-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.class-type-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.class-type-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
}

.class-type-card.selected {
    border-color: #667eea;
    background: #c2452d;color: white !important;
    color: white;
}

.class-type-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.class-type-sessions {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== PRICING CALCULATOR ===== */
.pricing-calculator {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.pricing-row:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.2rem;
    color: #667eea;
}

.pricing-label {
    color: #666;
}

.pricing-value {
    font-weight: 600;
}

.discount-applied {
    color: #28a745;
}

/* ===== USER DASHBOARD ===== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.quick-action-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    display: block;
}

.quick-action-btn:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
    text-decoration: none;
    color: #667eea;
}

.quick-action-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* ===== ADMIN PANEL ===== */
.admin-container {
    background: #f8f9fa;
    min-height: 100vh;
}

.admin-sidebar {
    background: #343a40;
    color: white;
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 15px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
}

.admin-sidebar .nav-link i {
    margin-left: 10px;
    width: 20px;
}

.admin-content {
    padding: 30px;
}

.admin-header {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.admin-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.admin-table th {
    background: #f8f9fa;
    border: none;
    padding: 15px;
    font-weight: 600;
    color: #333;
}

.admin-table td {
    padding: 15px;
    border-top: 1px solid #e9ecef;
    vertical-align: middle;
}

.admin-filters {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* auth styles removed - using plugin */
    
    .level-form-header,
    .level-form-body,
    .private-class-header,
    .private-class-body {
        padding: 20px;
    }
    
    .level-options {
        grid-template-columns: 1fr;
    }
    
    .class-type-selector {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .pricing-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    /* auth styles removed - using plugin */
    
    .level-form-header h1 {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .quick-action-btn {
        padding: 15px;
    }
    
    .quick-action-icon {
        font-size: 1.5rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== LOADING STATES ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: #c2452d;color: white !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: #c2452d;color: white !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.border-radius-custom {
    border-radius: 15px;
}

.transition-custom {
    transition: all 0.3s ease;
} 