/* Modern Vocabulary Learning Interface Styles */

.vocabulary-learning-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'IRANSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header Section */
.learning-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.learning-title {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.learning-subtitle {
    color: #718096;
    margin: 0;
    font-size: 0.95rem;
}

.overall-progress-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.25rem;
    border-radius: 15px;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-numbers {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Main Learning Area */
.learning-main {
    padding: 2rem 0;
}

/* Settings Card */
.settings-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.setting-group {
    margin-bottom: 1.25rem;
}

.setting-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
    font-size: 0.9rem;
}

.modern-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #4a5568;
}

.modern-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.settings-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Word Learning Card */
.word-learning-card {
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Word Display Section */
.word-display-section {
    margin-bottom: 2.5rem;
}

.word-visual-area {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.word-image-container {
    position: relative;
    flex-shrink: 0;
}

.word-image {
    width: 180px;
    height: 140px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.word-image:hover {
    transform: scale(1.05);
}

.image-placeholder {
    width: 180px;
    height: 140px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 2.5rem;
    border: 2px dashed #cbd5e0;
}

.word-content {
    flex: 1;
}

.main-word {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.word-translation {
    font-size: 1.25rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 1rem 1.5rem;
    background: #f7fafc;
    border-radius: 15px;
    border-right: 4px solid #667eea;
}

/* Word Progress Section */
.word-progress-section {
    background: #f8faff;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #e6f3ff;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-title {
    font-weight: 600;
    color: #4a5568;
}

.attempts-counter {
    font-size: 0.9rem;
    color: #718096;
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Progress Bars */
.modern-progress, .word-progress-bar {
    margin-bottom: 0.5rem;
}

.progress-track, .score-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill, .score-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

/* Action Buttons */
.action-buttons-section {
    margin: 2.5rem 0;
}

.button-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.modern-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    justify-content: center;
}

.modern-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.modern-btn:hover:before {
    left: 100%;
}

.modern-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-listen {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.btn-translate {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.btn-record {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-stop {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.btn-next {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
    color: white;
}



/* AI Feedback Section */
.ai-feedback-section {
    margin-top: 2rem;
}

.feedback-card {
    background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
    border: 2px solid #e6f3ff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: #4a5568;
    font-weight: 600;
    font-size: 1.1rem;
}

.feedback-text {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    border-right: 4px solid #667eea;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-label {
    font-weight: 600;
    color: #4a5568;
    min-width: 100px;
}

.score-bar {
    flex: 1;
    max-width: 200px;
}

.score-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
    min-width: 50px;
}

/* Status Message */
.status-message {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.status-message.success {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #c6f6d5;
}

.status-message.warning {
    background: #fffbf0;
    color: #dd6b20;
    border: 1px solid #fed7aa;
}

.status-message.error {
    background: #fff5f5;
    color: #e53e3e;
    border: 1px solid #fed7d7;
}

.status-message.info {
    background: #f7faff;
    color: #3182ce;
    border: 1px solid #bee3f8;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vocabulary-learning-container {
        padding: 0;
    }
    
    .learning-header {
        padding: 1rem 0;
    }
    
    .learning-main {
        padding: 1rem 0;
    }
    
    .word-learning-card {
        margin: 0 1rem;
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .word-visual-area {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .main-word {
        font-size: 2.5rem;
    }
    
    .button-row {
        flex-direction: column;
        align-items: center;
    }
    
    .modern-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .settings-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .main-word {
        font-size: 2rem;
    }
    
    .word-image,
    .image-placeholder {
        width: 150px;
        height: 120px;
    }
    
    .word-learning-card {
        padding: 1rem;
    }
}

/* Animation for smooth transitions */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.word-learning-card,
.settings-card,
.feedback-card {
    animation: slideInUp 0.6s ease-out;
}

/* Focus states for accessibility */
.modern-btn:focus,
.modern-select:focus,
.settings-btn:focus {
    outline: 3px solid rgba(102, 126, 234, 0.3);
    outline-offset: 2px;
}

/* Sign up button enhancement */
.btn-outline-primary {
    transition: all 0.3s ease;
    font-weight: 600;
    border-width: 2px;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
    transform: translateY(-2px);
}

.btn-outline-primary:active {
    transform: translateY(0);
}

/* Sign up section styling */
.signup-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 2px dashed rgba(13, 110, 253, 0.2);
}

/* Enhanced Sign Up Section */
.signup-section-enhanced {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.signup-section-enhanced:hover {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12) 0%, rgba(102, 126, 234, 0.08) 100%);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   TEAL THEME STYLING - صفحه Login
   ============================================ */

/* Teal Color Variables */
:root {
    --teal-primary: #20c997;
    --teal-dark: #1aa179;
    --teal-light: #d2f5f0;
    --teal-lighter: #e8faf7;
}

.text-teal {
    color: var(--teal-primary) !important;
}

.text-teal-dark {
    color: var(--teal-dark) !important;
}

.bg-teal {
    background-color: var(--teal-primary) !important;
}

.bg-teal-light {
    background-color: var(--teal-light) !important;
}

.bg-light-subtle {
    background-color: var(--teal-lighter) !important;
}

.border-teal {
    border-color: var(--teal-primary) !important;
}

.border-teal-light {
    border-color: var(--teal-light) !important;
}

/* Login Section Styling */
.login-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, var(--teal-lighter) 100%);
}

.login-left {
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal-lighter) 100%) !important;
}

.login-right {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Header Styling */
.login-header {
    animation: fadeInDown 0.6s ease-out;
}

.login-emoji {
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-title {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    color: var(--teal-dark) !important;
    font-weight: 700;
}

.login-subtitle {
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    line-height: 1.6;
    color: #495057 !important;
    font-weight: 500;
}

/* Form Card */
.login-form-card {
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.12) !important;
    border: 1px solid rgba(32, 201, 151, 0.15) !important;
    background: #ffffff;
    animation: slideInUp 0.6s ease-out;
}

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

/* Form Labels */
.login-label {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50 !important;
    letter-spacing: 0.3px;
}

/* Input Groups */
.login-input-group {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.08);
    transition: all 0.3s ease;
}

.login-input-group:hover {
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.15);
}

.login-input {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.login-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.login-input:focus {
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.25);
    border-color: var(--teal-primary) !important;
    color: #2c3e50;
}

.input-group-text {
    background-color: var(--teal-light) !important;
    border-color: var(--teal-light) !important;
    color: var(--teal-dark) !important;
    border: none !important;
    padding: 0.75rem 1rem !important;
    font-weight: 600;
}

/* Hint Text */
.login-hint {
    font-size: 0.9rem;
    color: #495057 !important;
    letter-spacing: 0.2px;
    line-height: 1.5;
    font-weight: 500;
}

/* Forgot Password Link */
.login-forgot-link {
    color: var(--teal-primary) !important;
    transition: all 0.2s ease;
    font-weight: 500;
}

.login-forgot-link:hover {
    color: var(--teal-dark) !important;
    text-decoration: underline !important;
}

/* Login Button */
.btn-teal {
    background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-dark) 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.25);
}

.btn-teal:hover {
    background: linear-gradient(135deg, var(--teal-dark) 0%, #138d75 100%);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.35);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-teal:active {
    transform: translateY(0);
}

.login-btn {
    font-size: 1.05rem;
    padding: 0.85rem 1.5rem;
}

/* Sign Up Button Outline */
.btn-outline-teal {
    color: var(--teal-primary) !important;
    border: 2px solid var(--teal-primary) !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-teal:hover {
    background-color: var(--teal-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(32, 201, 151, 0.3);
    border-color: var(--teal-primary) !important;
    transform: translateY(-2px);
}

.btn-outline-teal:active {
    transform: translateY(0);
}

/* Sign Up Section */
.login-signup-section {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.08) 0%, rgba(45, 212, 191, 0.05) 100%);
    border: 2px solid rgba(32, 201, 151, 0.25) !important;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-signup-section:hover {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.12) 0%, rgba(45, 212, 191, 0.08) 100%);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.15);
    transform: translateY(-3px);
}

.login-signup-title {
    color: #2c3e50 !important;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.login-signup-text {
    color: #2c3e50 !important;
    line-height: 1.6;
    font-weight: 600;
}

.login-signup-btn {
    font-size: 1.05rem;
    padding: 0.85rem 1.5rem;
}

/* Info Box */
.login-info-box {
    background: var(--teal-lighter) !important;
    border-radius: 10px;
    animation: fadeInUp 1s ease-out;
    border: 1px solid rgba(32, 201, 151, 0.2);
}

.login-info-title {
    color: #2c3e50 !important;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.login-info-text {
    color: #2c3e50 !important;
    line-height: 1.5;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Error Alert */
.login-error-alert {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
    border-radius: 10px;
}

.login-error-alert strong {
    font-weight: 700;
}

/* Typography */
.rounded-lg {
    border-radius: 10px;
}

/* Text Color Utilities */
.text-dark {
    color: #2c3e50 !important;
    font-weight: 500;
}

.text-secondary {
    color: #495057 !important;
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.fw-500 {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
    .login-right {
        padding: 3rem 1rem;
        min-height: auto;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .login-subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .login-title {
        font-size: 1.75rem;
    }
    
    .login-emoji {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
}

/* Login Form Styling */
.card {
    border: 1px solid rgba(13, 110, 253, 0.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

.form-label {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-label i {
    font-size: 1.1rem;
}

/* Input Group Styling */
.input-group-lg .form-control {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-group-lg .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    border-color: #0d6efd;
}

.input-group-text {
    border-radius: 8px !important;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0d6efd 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
    transform: translateY(-2px);
}

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

/* Text Color Adjustments */
.text-dark {
    color: #1a1a1a !important;
}

.text-secondary {
    color: #6c757d !important;
}

.fw-600 {
    font-weight: 600;
}

.fw-500 {
    font-weight: 500;
}

/* Rounded Classes */
.rounded-lg {
    border-radius: 10px;
}

/* Info Box */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Link Styling */
a {
    transition: all 0.2s ease;
}

.text-primary {
    color: #0d6efd !important;
}

.text-primary:hover {
    color: #0b5ed7 !important;
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .display-6 {
        font-size: 3rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
}
