.profile-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 30px;
        border-radius: 15px;
        margin-bottom: 30px;
        position: relative;
        overflow: hidden;
    }
    
    .profile-header::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 200px;
        height: 200px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        transform: translate(50px, -50px);
    }
    
    .profile-info {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 20px;
        align-items: center;
        position: relative;
        z-index: 1;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        font-weight: bold;
    }
    
    .profile-details h1 {
        margin: 0 0 10px 0;
        font-size: 28px;
    }
    
    .profile-details p {
        margin: 5px 0;
        opacity: 0.9;
    }
    
    .profile-actions {
        display: flex;
        gap: 10px;
        flex-direction: column;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .stat-card {
        background: white;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid #e0e0e0;
        text-align: center;
    }
    
    .stat-value {
        font-size: 2rem;
        font-weight: bold;
        color: #667eea;
        margin-bottom: 5px;
    }
    
    .main-content {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }
    
    .mission-card {
        background: white;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid #e0e0e0;
        margin-bottom: 15px;
    }
    
    /*.mission-header {
        display: flex;
        justify-content: between;
        align-items: flex-start;
        margin-bottom: 15px;
    }*/
    
    .mission-status {
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: bold;
        color: white;
    }
    
    .status-planifiee { background: #ffc107; }
    .status-en_cours { background: #28a745; }
    .status-terminee { background: #6c757d; }
    .status-annulee { background: #dc3545; }
    
    .sidebar-section {
        background: white;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid #e0e0e0;
        margin-bottom: 20px;
    }
    
    .document-upload {
        border: 2px dashed #ddd;
        padding: 20px;
        text-align: center;
        border-radius: 8px;
        margin: 10px 0;
    }
    
    .document-upload:hover {
        border-color: #667eea;
        background: #f8f9fa;
    }
    
    .btn {
        padding: 10px 20px;
        border-radius: 8px;
        text-decoration: none;
        display: inline-block;
        text-align: center;
        cursor: pointer;
        border: none;
        font-size: 14px;
    }
    
    .btn-primary { background: #0d6efd; color: white; } /*#667eea*/
    .btn-success { background: #28a745; color: white; }
    .btn-warning { background: #ffc107; color: black; }
    .btn-danger { background: #dc3545; color: white; }
    .btn-secondary { background: #6c757d; color: white; }
    
    @media (max-width: 768px) {
        .main-content {
            grid-template-columns: 1fr;
        }
        .profile-info {
            grid-template-columns: 1fr;
            text-align: center;
        }
    }

.photo-preview img:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.photo-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.document-upload {
    border: 2px dashed #dee2e6;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.document-upload:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}
.document-preview img:hover,
.pdf-preview-container:hover,
.file-preview-container:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.document-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.pdf-preview-container:hover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

@media (max-width: 768px) {
    .photo-actions {
        flex-direction: column;
    }
    
    .photo-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    .document-actions {
        flex-direction: column;
    }
    
    .document-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .modal-dialog.modal-xl {
        max-width: 95%;
    }
}
/* dashbord.php */ 
.hero-card {
        background: white;
        border-radius: 15px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        overflow: hidden;
        margin-bottom: 2rem;
    }
    
    .hero-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 2rem;
        text-align: center;
    }
    
    .login-card {
        background: white;
        border-radius: 15px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    
    .dashboard-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        margin-bottom: 1.5rem;
        transition: all 0.3s ease;
    }
    
    .dashboard-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    
    .stat-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        margin-bottom: 1.5rem;
        transition: all 0.3s ease;
    }
    
    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    
    /*.stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }*/
    
    .mission-card {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1rem;
        transition: all 0.3s ease;
    }
    
    .mission-card:hover {
        border-color: #667eea;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .context-selector {
        background: rgba(255,255,255,0.1);
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 1rem;
    }
    
    .card-header {
        background: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
        padding: 1rem;
        border-radius: 12px 12px 0 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    @media (max-width: 768px) {
        .hero-header {
            padding: 1.5rem;
        }
        
        .stats-grid {
            grid-template-columns: 1fr;
        }
    }

    .timeline-item {
    position: relative;
}

.timeline-item:not(:last-child):before {
    content: '';
    position: absolute;
    left: 15px;
    top: 80px;
    height: 20px;
    width: 2px;
    background-color: #dee2e6;
}

.border-start {
    border-left-width: 3px !important;
}