/**
 * Styles personnalisés pour MeetFollow
 * Design épuré, professionnel et responsive
 */

/* Variables CSS personnalisées */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.15s ease-in-out;
}

/* Styles généraux */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

.min-vh-75 {
    min-height: 75vh;
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

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

/* Hero section 
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}*/

/* Cards 
.card {
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
*/

.hero-section {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.btn-light {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* Formulaires */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

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

.form-text {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Boutons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
}

.alert-success {
    background-color: #d1edff;
    color: #0c5460;
}

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

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table th {
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: var(--dark-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

/* Dashboard */
.dashboard-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.dashboard-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Profile */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    padding: 3rem 0;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    margin-bottom: 1rem;
}

.profile-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.profile-section h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Links */
.link-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.link-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    color: var(--primary-color);
}

.link-item i {
    font-size: 1.25rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

/* Documents */
.document-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.document-item:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-2px);
}

.document-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--danger-color);
}

/* Calendar */
.calendar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.calendar-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #dee2e6;
}

.calendar-day {
    background: white;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calendar-day:hover {
    background: var(--light-color);
}

.calendar-day.available {
    background: #d4edda;
    color: #155724;
}

.calendar-day.unavailable {
    background: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
}

/* Time slots */
.time-slot {
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.time-slot:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
}

.time-slot.available {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.time-slot.unavailable {
    background: #f8d7da;
    border-color: #f1b0b7;
    color: #721c24;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* QR Code */
.qr-code-container {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.qr-code-container img {
    max-width: 200px;
    height: auto;
    border-radius: var(--border-radius);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .dashboard-card .icon {
        font-size: 2.5rem;
    }
    
    /* Dashboard header responsive */
    .dashboard-header .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    /* Actions rapides responsive */
    .dashboard-actions .btn {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .dashboard-actions .btn i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .profile-section {
        padding: 1.5rem;
    }

    /* Dashboard mobile optimizations */
    .dashboard-header h1 {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .dashboard-header .btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .dashboard-header .btn .d-sm-none {
        font-size: 0.75rem;
    }
    
    /* Actions rapides mobile */
    .dashboard-actions .btn {
        padding: 1rem 0.5rem;
        text-align: center;
    }
    
    .dashboard-actions .btn strong {
        font-size: 0.9rem;
    }
    
    .dashboard-actions .btn small {
        font-size: 0.75rem;
    }
    
    /* Statistiques mobile */
    .dashboard-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .dashboard-card h3 {
        font-size: 1.1rem;
    }
    
    .dashboard-card .icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    /* Centrer les paragraphes lead sur mobile */
    p.lead {
        text-align: center;
    }
}

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

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

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

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

/* Utilitaires */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }

.shadow-sm { box-shadow: var(--box-shadow) !important; }
.rounded { border-radius: var(--border-radius) !important; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
