body {
    font-family: Arial;
    background: #0f172a;
    color: white;
    margin: 0;
}

.container {
    width: 90%;
    margin: auto;
    padding: 20px;
}

form {
    max-width: 400px;
    margin: 100px auto;
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
}

input, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
}

button {
    background: #22c55e;
    color: white;
    cursor: pointer;
}

a {
    color: #38bdf8;
}
select{width:100%;padding:10px;margin:5px 0}
.alert {
    padding: 15px;
    background-color: #4CAF50;
    color: white;
    width: 300px;
    margin: 20px auto;
    text-align: center;
    border-radius: 5px;
    display: none;
}
.image-centree {
    display: block;
    margin: 10px auto;
    width: 150px;
}
.admin-box {
    background: #1e293b;
    padding: 10px 15px;
    border-radius: 10px;
    text-align: right;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
    
    /* PLAY BUTTON */
.play {
    background:#22c55e;
    color:white;
}

/* MODAL */
.modal {
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.8);
    justify-content:center;
    align-items:center;
    z-index:999;
}

.modal-content {
    position:relative;
    width:80%;
    max-width:800px;
}

.modal-content iframe {
    width:100%;
    height:450px;
    border-radius:10px;
}

.close {
    position:absolute;
    top:-30px;
    right:0;
    font-size:30px;
    cursor:pointer;
    color:white;
}
body {
    font-family: Arial;
    background: #0f172a;
    color: white;
    margin: 0;
}

.dashboard {
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    padding: 15px;
    border-radius: 10px;
}

.btn-logout {
    background: red;
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
}

.video-list {
    margin-top: 20px;
}

.video-card {
    background: #1e293b;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.btn-play {
    background: #22c55e;
    border: none;
    padding: 10px;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 70%;
    background: black;
    padding: 20px;
    border-radius: 10px;
}

.modal iframe {
    width: 100%;
    height: 400px;
}

.close {
    color: white;
    font-size: 25px;
    cursor: pointer;
}
body {
    margin: 0;
    font-family: Arial;
    background: #0f172a;
    color: white;
}

.dashboard {
    display: flex;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    background: #020617;
    padding: 20px;
    height: 100vh;
}

.sidebar a {
    display: block;
    color: #94a3b8;
    padding: 10px;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
}

.sidebar a:hover,
.sidebar a.active {
    background: #2563eb;
    color: white;
}

/* MAIN */
.main {
    flex: 1;
    padding: 20px;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-logout {
    background: red;
    padding: 8px 12px;
    color: white;
    border-radius: 8px;
    text-decoration: none;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* CARD */
.video-card {
    background: #1e293b;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

.thumb {
    height: 120px;
    background: #334155;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.btn-play {
    margin-top: 10px;
    background: #22c55e;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

/* PAGINATION */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    margin: 5px;
    padding: 8px 12px;
    background: #1e293b;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.pagination a.active {
    background: #2563eb;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 80%;
    height: 70%;
}

iframe {
    width: 100%;
    height: 100%;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
}
.cat-item{
    margin:10px 0;
}

.btn-cat{
    background:#f59e0b;
    margin-left:10px;
}

.btn-cat:hover{
    background:#d97706;
}
.video{
    background:#1e293b;
    padding:15px;
    margin-bottom:15px;
    border-radius:10px;
    transition:0.3s;
}

.video:hover{
    transform:scale(1.02);
}

.seen{
    opacity:0.6;
}

.badge-vu{
    background:#16a34a;
    padding:5px 10px;
    border-radius:20px;
    font-size:12px;
}

.badge-new{
    background:#f59e0b;
    padding:5px 10px;
    border-radius:20px;
    font-size:12px;
}
/* Boutons généraux */
.btn, .btn-danger, .btn-cat{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:10px 18px;
    border-radius:10px;
    font-size:14px;
    font-weight:500;
    text-decoration:none;
    cursor:pointer;
    position:relative;
    overflow:hidden;
    transition:all 0.3s ease;
}

/* Effet glow au hover */
.btn::before,
.btn-danger::before,
.btn-cat::before{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition:0.5s;
}

.btn:hover::before,
.btn-danger:hover::before,
.btn-cat:hover::before{
    left:100%;
}

/* Bouton principal */
.btn{
    background:linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow:0 4px 15px rgba(59,130,246,0.4);
}

.btn:hover{
    transform:translateY(-2px) scale(1.03);
    box-shadow:0 8px 25px rgba(59,130,246,0.6);
}

/* Bouton danger */
.btn-danger{
    background:linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow:0 4px 15px rgba(239,68,68,0.4);
}

.btn-danger:hover{
    transform:translateY(-2px) scale(1.03);
    box-shadow:0 8px 25px rgba(239,68,68,0.6);
}

/* Bouton catégorie */
.btn-cat{
    background:linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow:0 4px 15px rgba(99,102,241,0.4);
}

.btn-cat:hover{
    transform:translateY(-3px) scale(1.05);
    box-shadow:0 10px 30px rgba(99,102,241,0.6);
}

/* Effet clic */
.btn:active,
.btn-danger:active,
.btn-cat:active{
    transform:scale(0.96);
}

/* Style lien (si tu ajoutes d'autres liens) */
a{
    transition:0.3s;
}

a:hover{
    opacity:0.85;
}
.page-btn {
    display:inline-block;
    margin:5px;
    padding:8px 12px;
    background:#1e293b;
    color:white;
    text-decoration:none;
    border-radius:6px;
    transition:0.3s;
}

.page-btn:hover {
    background:#3b82f6;
}

.page-btn.active {
    background:#22c55e;
    font-weight:bold;
}
/* MODAL CONFIRMATION */
.confirm-modal {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999;
}

.confirm-box {
    background:#1e293b;
    padding:25px;
    border-radius:12px;
    text-align:center;
    width:300px;
}

.confirm-box button {
    margin:10px;
    padding:8px 15px;
    border:none;
    border-radius:6px;
    cursor:pointer;
}

.btn-ok { background:#22c55e; }
.btn-cancel { background:#ef4444; }

/* POPUP SUCCESS */
.success {
    position:fixed;
    top:20px;
    right:20px;
    background:#22c55e;
    padding:15px 20px;
    border-radius:8px;
    display:none;
}
