/* Style de base pour l'administration */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar {
    min-height: 100vh;
    background-color: #343a40;
    color: #fff;
    padding: 20px 0;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    margin: 2px 0;
    border-radius: 0;
}

.sidebar .nav-link:hover {
    background-color: #495057;
    color: #fff;
}

.sidebar .nav-link.active {
    background-color: #007bff;
    color: #fff;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

.main-content {
    padding: 20px;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.table th {
    border-top: none;
    font-weight: 600;
}

.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Style pour les formulaires */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Style pour les alertes */
.alert {
    border-radius: 5px;
}

/* Style pour les boutons d'action */
.action-buttons .btn {
    margin-right: 5px;
}

/* Style pour les médias */
.media-preview {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.media-container {
    position: relative;
    margin-bottom: 20px;
}

.media-controls {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    display: flex;
    justify-content: center;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Style pour le tableau de bord */
.dashboard-card {
    transition: transform 0.3s;
}

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

/* Style pour les icônes */
.icon-lg {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Style pour les formulaires de téléchargement */
.upload-area {
    border: 2px dashed #ddd;
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

/* Style pour les aperçus de médias */
.media-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

/* Style pour les messages de succès/erreur */
.message {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Style pour les boutons de partage */
.share-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    border-radius: 20px;
}

/* Style pour les compteurs */
.video-stats {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Style pour le bouton J'aime */
button[name="like_video"] {
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

button[name="like_video"]:hover {
    color: #0d6efd !important;
}

/* Style pour le menu déroulant de partage */
.dropdown-menu {
    min-width: 12rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

/* Animation pour le bouton copier */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.copied-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    animation: fadeOut 2s 1s forwards;
    z-index: 1000;
}