/* Moukli Mentoring - Main Styles */

:root {
    --primary-color: #212859;
    --primary-dark: #212859;
    --secondary-color: #A90327;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 76px; /* Account for fixed navbar */
}

.main-content {
    min-height: calc(100vh - 76px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

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

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

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.75rem 1rem !important;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: #212859 !important;
    background-image: none !important;
    background-color: #212859 !important;
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    display: none !important;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

/* Call to Action Section */
.bg-primary h2,
.bg-primary h3,
.bg-primary .display-6,
.booking-header h1,
.booking-header .display-5 {
    color: white !important;
}

/* Override success color to use logo red */
.text-success {
    color: #A90327 !important;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background-color: white;
    border-color: white;
    color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

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

.card-header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

/* Service Cards */
.service-card {
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Feature Sections */
.feature-section {
    padding: 5rem 0;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), #8a021f);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* Stats Section */
.stats-section {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem 0;
    position: relative;
    box-shadow: var(--shadow-md);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    font-weight: bold;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
}

.testimonial-subject {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.grade-badge {
    background: linear-gradient(135deg, var(--accent-color), #f59e0b);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Booking Calendar */
.booking-calendar {
    max-width: 100%;
    margin: 0 auto;
}

.fc {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.fc-header-toolbar {
    background-color: var(--bg-light);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.fc-button-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.fc-button-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.available-slot {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    cursor: pointer;
}

.available-slot:hover {
    background-color: #059669 !important;
    border-color: #059669 !important;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 40, 89, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem;
}

/* Admin Styles */
.admin-sidebar {
    background-color: var(--text-dark);
    min-height: calc(100vh - 76px);
    padding: 2rem 0;
}

.admin-nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem 1rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-header {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

/* Dashboard Cards */
.dashboard-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card.success {
    background: linear-gradient(135deg, var(--secondary-color), #8a021f);
}

.dashboard-card.warning {
    background: linear-gradient(135deg, var(--accent-color), #d97706);
}

.dashboard-card.info {
    background: linear-gradient(135deg, #212859, #1a1f47);
}

.dashboard-metric {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.dashboard-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Tables */
.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background-color: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: var(--bg-light);
}

/* Status Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-warning {
    background-color: var(--accent-color) !important;
}

.badge.bg-success {
    background-color: var(--secondary-color) !important;
}

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

/* Payment Styles */
.payment-option {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.payment-option:hover,
.payment-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(33, 40, 89, 0.05);
}

.payment-option input[type="radio"] {
    margin-right: 1rem;
}

.paypal-button,
.apple-pay-button {
    width: 100%;
    border-radius: 8px;
    padding: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.paypal-button {
    background: #212859;
    color: white;
}

.paypal-button:hover {
    background: #1a1f47;
}

.apple-pay-button {
    background: #000;
    color: white;
}

.apple-pay-button:hover {
    background: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .feature-section {
        padding: 3rem 0;
    }
    
    .stats-section {
        padding: 3rem 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .admin-sidebar {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .dashboard-metric {
        font-size: 2rem;
    }
}

/* Loading and Animation States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}