/* ==============================================
   PROFESSIONAL ASSAMESE VOICE PROJECT STYLES
   ============================================== */

/* Base Variables and Resets */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --success-dark: #38a169;
    --danger-color: #f56565;
    --danger-dark: #e53e3e;
    --dark-text: #2d3748;
    --light-text: #718096;
    --border-light: #e2e8f0;
    --border-hover: #cbd5e0;
    --bg-light: #f8fafc;
    --placeholder-color: #a0aec0;
}

/* ==============================================
   HOMEPAGE HERO SECTION
   ============================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,0 1000,300 1000,1000 0,700"/></svg>') no-repeat center center;
    background-size: cover;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

/* ==============================================
   LOGIN CARD (HOMEPAGE)
   ============================================== */

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 2rem 0;
    position: relative;
    animation: slideInUp 0.6s ease-out;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), #f093fb);
    border-radius: 25px 25px 0 0;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h3 {
    color: var(--dark-text);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--light-text);
    margin: 0;
    font-size: 1rem;
}

/* Login Form Specific Styles */
.login-form .form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: none;
}

.login-form .form-control {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: white;
    outline: none;
}

.login-form .form-control::placeholder {
    color: var(--placeholder-color);
    font-style: italic;
}

.login-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #6b46c1 100%);
}

/* Mini Stats */
.mini-stats {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.mini-stats .stat-item {
    text-align: center;
}

.mini-stats .stat-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.mini-stats .stat-item small {
    color: var(--light-text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==============================================
   AUTH PAGES (LOGIN.PHP PROFILE FORMS)
   ============================================== */

.auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 3rem;
    max-width: 900px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), #f093fb);
}

/* Profile Headers */
.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.profile-header h2 {
    color: var(--dark-text);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-header p {
    color: var(--light-text);
    font-size: 1.1rem;
    margin: 0;
}

.profile-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--dark-text);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--light-text);
    font-size: 1rem;
}

/* ==============================================
   FORM CONTROLS (GENERAL)
   ============================================== */

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control, .form-select {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: white;
    outline: none;
}

.form-control:hover, .form-select:hover {
    border-color: var(--border-hover);
    background-color: white;
}

.form-control::placeholder {
    color: var(--placeholder-color);
    font-style: italic;
}

/* Form Validation Styles */
.form-control.is-valid, .form-select.is-valid {
    border-color: var(--success-color);
    background-color: #f0fff4;
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--danger-color);
    background-color: #fff5f5;
}

/* ==============================================
   BUTTONS
   ============================================== */

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #6b46c1 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.login-footer .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-footer .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* ==============================================
   FORM SECTIONS & LAYOUT
   ============================================== */

.form-section {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.section-title {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group:hover .form-label {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* ==============================================
   PROGRESS INDICATOR
   ============================================== */

.progress-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.progress-step {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scale(1.2);
}

/* ==============================================
   DIALECTICAL CATEGORY SPECIFIC
   ============================================== */

.dialect-section {
    position: relative;
}

.dialect-section .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.dialect-other-input {
    margin-top: 0.75rem;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==============================================
   ALERTS & NOTIFICATIONS
   ============================================== */

.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert-success,
.login-card .alert-success {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
    color: white;
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

.alert-danger,
.login-card .alert-danger {
    background: linear-gradient(135deg, var(--danger-color), var(--danger-dark));
    color: white;
    box-shadow: 0 8px 25px rgba(245, 101, 101, 0.3);
}

.login-card .alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.login-card .alert-success {
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

/* ==============================================
   FOOTER & MISC
   ============================================== */

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-footer {
    margin-top: 1.5rem;
}

/* ==============================================
   ICONS
   ============================================== */

.form-label i,
.login-form .form-label i,
.login-header i {
    color: var(--primary-color);
    width: 16px;
}

/* ==============================================
   ANIMATIONS
   ============================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

/* Large devices */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .login-card {
        margin: 3rem 0 2rem 0;
    }
}

/* Medium devices */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: auto;
        min-width: 200px;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
        margin: 2rem 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .profile-header h2 {
        font-size: 1.75rem;
    }
    
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
}

/* Small devices */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .login-card {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    
    .login-header h3 {
        font-size: 1.3rem;
    }
    
    .auth-container {
        padding: 1rem 0.5rem;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .profile-header h2 {
        font-size: 1.5rem;
    }
    
    .progress-indicator {
        margin-bottom: 1.5rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .login-card,
    .auth-card {
        padding: 1rem 0.75rem;
    }
}

/* ===== Shortcuts bar: bigger + higher contrast ===== */
.shortcuts-mini {
    text-align: center;
    margin: 14px 0 0 0;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(135, 206, 250, 0.25), rgba(173, 216, 230, 0.25)); /* Light sky gradient */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.hotkeys-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    line-height: 1.2;
}

.hotkeys-bar .hk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #1e3a8a; /* Darker blue text */
}

.hotkeys-bar kbd {
    background: #1e3a8a; /* Navy blue key */
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1em;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
