.admin-manager {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.upload-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.media-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
}

.media-preview {
    position: relative;
    padding-top: 75%;
}

.media-preview img,
.media-preview video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-controls {
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #eee;
}

.order-form,
.delete-form {
    margin-bottom: 0.5rem;
}

.form-group input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-update {
    background: #28a745;
    color: white;
}

.btn-update:hover {
    background: #218838;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.no-items {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

/* Style personnalisé pour l'input file */
input[type="file"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .admin-manager {
        margin: 1rem;
        padding: 1rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .media-controls {
        padding: 0.5rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Animation d'entrée */
.media-item {
    animation: fadeIn 0.5s ease-out;
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .admin-manager {
        background: #2d2d2d;
        color: #fff;
    }

    .upload-section,
    .media-item {
        background: #3d3d3d;
    }

    .media-controls {
        background: #2d2d2d;
        border-top-color: #4d4d4d;
    }

    input[type="file"],
    input[type="number"] {
        background: #4d4d4d;
        border-color: #5d5d5d;
        color: #fff;
    }

    .no-items {
        color: #adb5bd;
    }
}

/* Hover effects */
.media-item:hover .media-controls {
    background: rgba(0, 0, 0, 0.05);
}

/* Loading state */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Custom scrollbar */
.admin-manager {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.admin-manager::-webkit-scrollbar {
    width: 8px;
}

.admin-manager::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.admin-manager::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.admin-manager::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.admin-dashboard {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.admin-dashboard h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
    text-align: center;
}

.admin-dashboard ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0;
    list-style: none;
}

.admin-dashboard li {
    transition: transform 0.3s ease;
}

.admin-dashboard li:hover {
    transform: translateY(-5px);
}

.admin-dashboard a {
    display: block;
    padding: 1.5rem;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.admin-dashboard a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.admin-dashboard a:hover {
    background: #000;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.admin-dashboard a:hover::before {
    transform: translateX(100%);
}

/* Style spécial pour le bouton de déconnexion */
.admin-dashboard li:last-child a {
    background: #ff4444;
    color: white;
}

.admin-dashboard li:last-child a:hover {
    background: #cc0000;
}

/* Responsive design */
@media (max-width: 768px) {
    .admin-dashboard {
        margin: 1rem;
        padding: 1rem;
    }

    .admin-dashboard h1 {
        font-size: 2rem;
    }

    .admin-dashboard ul {
        grid-template-columns: 1fr;
    }
}

/* Animation d'entrée */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-dashboard {
    animation: fadeIn 0.5s ease-out;
}

/* Icônes (nécessite Font Awesome) */
.admin-dashboard a::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 10px;
}

.admin-dashboard li:nth-child(1) a::after { content: "\f03e"; } /* Galerie */
.admin-dashboard li:nth-child(2) a::after { content: "\f03d"; } /* Vidéos */
.admin-dashboard li:nth-child(3) a::after { content: "\f008"; } /* Carousel */
.admin-dashboard li:nth-child(4) a::after { content: "\f05a"; } /* À propos */
.admin-dashboard li:nth-child(5) a::after { content: "\f013"; } /* Paramètres */
.admin-dashboard li:last-child a::after { content: "\f2f5"; } /* Déconnexion */


.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.login-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.admin-carousel-manager {
    padding: 20px;
}

.carousel-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.carousel-item {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.carousel-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

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

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #45a049;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 480px) {
    .login-form {
        padding: 20px;
    }
}

.admin-about-manager {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.current-image {
    margin: 1rem 0;
}

.current-image img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}