/* Global Styles */
:root {
    --primary-color: #141540;
    --primary-light: #2b2c5c;
    --primary-dark: #0c0d30;
    --secondary-color: #f8f9fc;
    --accent-color: #e74a3b;
    --text-color: #333;
    --light-gray: #f6f6f6;
    --border-radius: 5px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #141540 0%, #0c0d30 100%);
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

/* Language-specific styles */
html[lang="ar"] {
    font-family: 'Roboto', 'Amiri', sans-serif;
}

/* Header & Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-dark {
    background-color: var(--primary-color) !important;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/static/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* Feature Cards */
.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 0;
    margin: 40px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 28px;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(20, 21, 64, 0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2b2c5c 0%, #141540 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(20, 21, 64, 0.35);
}

.btn-primary:disabled {
    background: #6c757d;
    border-color: #6c757d;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 28px;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: #f8f9fa;
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Auth Cards */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
}

.card-header {
    background: var(--gradient-primary);
    border-bottom: none;
    padding: 1.25rem;
}

.card-footer {
    background-color: #f8f9fd;
    border-top: none;
}

/* Form Styling */
.form-control {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #e1e5eb;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(20, 21, 64, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #e1e5eb;
    border-radius: 8px 0 0 8px;
}

.form-select {
    border-radius: 8px;
    padding: 12px 16px;
    height: auto;
    border: 1px solid #e1e5eb;
}

/* Password Strength Meter */
.password-strength {
    display: flex;
    gap: 2px;
    margin-top: 5px;
}

.strength-bar {
    height: 4px;
    flex: 1;
    background-color: #e9ecef;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.strength-bar.active.weak {
    background-color: #dc3545;
}

.strength-bar.active.medium {
    background-color: #ffc107;
}

.strength-bar.active.good {
    background-color: #17a2b8;
}

.strength-bar.active.strong {
    background-color: #28a745;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.alert-danger {
    background-color: #fdeded;
    color: #b71c1c;
}

.alert-success {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.alert-warning {
    background-color: #fff8e1;
    color: #ff6f00;
}

.alert-info {
    background-color: #e3f2fd;
    color: #0d47a1;
}

/* Footer */
footer {
    margin-top: 0 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .card {
        margin-left: 10px;
        margin-right: 10px;
    }
}

/* Progress Indicators */
.upload-progress {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
}

.google-download-progress {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
}

.upload-progress .progress-text {
    font-weight: 500;
    color: #495057;
}

.google-download-progress .progress-text {
    font-weight: 500;
    color: #856404;
}

.upload-progress .progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.google-download-progress .progress {
    height: 6px;
    border-radius: 3px;
    background-color: #f5f0d8;
}

.upload-progress .progress-bar {
    transition: width 0.3s ease;
}

.google-download-progress .progress-bar {
    transition: width 0.2s ease;
}

/* Spinner animations */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Progress text styling */
#upload-current-file, #google-download-current-file {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Success states */
.upload-progress.success {
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.upload-progress.success .progress-text {
    color: #0f5132;
}

/* Error states */
.upload-progress.error {
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.upload-progress.error .progress-text {
    color: #842029;
} 