/* ===== ADMIN MODERNE ===== */

.admin-container-modern {
    margin-top: 100px;
    padding: 40px 0 80px;
    min-height: calc(100vh - 180px);
}

.admin-title-modern {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 3px;
    animation: fadeInDown 0.8s ease;
}

/* ===== DASHBOARD STATISTICS ===== */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease;
}

.stat-card {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--secondary-black) 100%);
    border-radius: 18px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-concerts {
    border-color: #ff6b6b;
}

.stat-concerts:hover {
    border-color: #ff6b6b;
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
}

.stat-clips {
    border-color: #4ecdc4;
}

.stat-clips:hover {
    border-color: #4ecdc4;
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.3);
}

.stat-films {
    border-color: #ffa502;
}

.stat-films:hover {
    border-color: #ffa502;
    box-shadow: 0 15px 40px rgba(255, 165, 2, 0.3);
}

.stat-interviews {
    border-color: #95e1d3;
}

.stat-interviews:hover {
    border-color: #95e1d3;
    box-shadow: 0 15px 40px rgba(149, 225, 211, 0.3);
}

.stat-divertissements {
    border-color: #a29bfe;
}

.stat-divertissements:hover {
    border-color: #a29bfe;
    box-shadow: 0 15px 40px rgba(162, 155, 254, 0.3);
}

.stat-documentaires {
    border-color: var(--gold);
}

.stat-documentaires:hover {
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.stat-icon {
    font-size: 45px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 38px;
    font-weight: bold;
    color: var(--gold);
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    margin: 6px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ADMIN TOOLBAR ===== */

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease 0.2s both;
}

.toolbar-left {
    display: flex;
    gap: 15px;
    flex: 1;
    flex-wrap: wrap;
}

.search-bar-admin {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-icon-admin {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    z-index: 1;
    color: var(--text-gray);
}

.search-bar-admin input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    padding: 14px 20px 14px 50px;
    color: var(--text-white);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-bar-admin input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-white);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.filter-select option {
    background: var(--dark-gray);
    color: var(--text-white);
    padding: 10px;
}

.btn-add-video {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: var(--primary-black);
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

.btn-add-video:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

/* ===== ADMIN VIDEO GRID ===== */

.admin-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    animation: fadeIn 0.8s ease 0.4s both;
}

.admin-video-card {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--secondary-black) 100%);
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

.admin-video-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
}

.admin-video-header {
    position: relative;
    padding-top: 56.25%;
    background: linear-gradient(135deg, var(--secondary-black) 0%, var(--dark-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.admin-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 70px;
    opacity: 0.4;
    z-index: 1;
}

.admin-video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 13px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.badge-concerts {
    background: rgba(255, 107, 107, 0.95);
    color: white;
}

.badge-clips {
    background: rgba(78, 205, 196, 0.95);
    color: white;
}

.badge-films {
    background: rgba(255, 165, 2, 0.95);
    color: white;
}

.badge-interviews {
    background: rgba(149, 225, 211, 0.95);
    color: white;
}

.badge-divertissements {
    background: rgba(162, 155, 254, 0.95);
    color: white;
}

.badge-documentaires {
    background: rgba(212, 175, 55, 0.95);
    color: var(--primary-black);
}

.admin-video-status {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    padding: 5px 11px;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.status-has-video {
    color: #4ecdc4;
}

.status-no-video {
    color: #ff6b6b;
}

.admin-video-body {
    padding: 20px;
}

.admin-video-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.admin-video-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-gray);
}

.admin-video-description {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-video-actions {
    display: flex;
    gap: 8px;
}

.admin-video-actions button {
    flex: 1;
    padding: 11px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-edit-card {
    background: var(--gold);
    color: var(--primary-black);
}

.btn-edit-card:hover {
    background: var(--light-gold);
    transform: translateY(-2px);
}

.btn-duplicate {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    border: 2px solid #4ecdc4;
}

.btn-duplicate:hover {
    background: #4ecdc4;
    color: white;
    transform: translateY(-2px);
}

.btn-delete-card {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
}

.btn-delete-card:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px);
}

/* ===== MODAL ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--secondary-black) 100%);
    border-radius: 25px;
    border: 2px solid var(--gold);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--secondary-black);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--secondary-black) 100%);
    z-index: 10;
}

.modal-header h2 {
    color: var(--gold);
    font-size: 26px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold);
    transform: rotate(90deg);
}

.modal-form {
    padding: 28px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-white);
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--dark-gray);
    color: var(--text-white);
    padding: 12px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.form-hint {
    display: block;
    color: var(--text-gray);
    font-size: 12px;
    margin-top: 6px;
    font-style: italic;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.btn-cancel {
    padding: 13px 28px;
    background: transparent;
    border: 2px solid var(--text-gray);
    color: var(--text-gray);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.btn-save {
    padding: 13px 28px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    border: none;
    color: var(--primary-black);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== TOAST NOTIFICATIONS ===== */

.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--secondary-black) 100%);
    border-radius: 15px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    border: 2px solid;
    animation: slideInRight 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.toast-success {
    border-color: #4ecdc4;
}

.toast-error {
    border-color: #ff6b6b;
}

.toast-info {
    border-color: var(--gold);
}

.toast-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-gray);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .admin-video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-title-modern {
        font-size: 36px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .toolbar-left {
        width: 100%;
    }
    
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-add-video {
        width: 100%;
    }
    
    .toast-container {
        left: 20px;
        right: 20px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-icon {
        font-size: 38px;
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .admin-container-modern {
        padding: 30px 0 60px;
    }
    
    .admin-title-modern {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .admin-video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        border-radius: 15px;
    }
    
    .modal-header,
    .modal-form {
        padding: 20px;
    }
}