/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(120deg, #1f2937, #4b5563);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Container de login */
.login-container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Caixa de login */
.login-box {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Logo */
.logo {
    width: 200px;
    max-width: 100%;
    margin-bottom: 20px;
}

/* Título */
h2 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Inputs */
input[type="tel"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
}

/* Botão */
button {
    width: 100%;
    padding: 14px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #1d4ed8;
}

/* Responsividade extra para telas pequenas */
@media (max-width: 480px) {
    .login-box {
        padding: 1.5rem;
    }

    .logo {
        width: 100px;
    }

    h2 {
        font-size: 1.3rem;
    }

    input[type="text"],
    input[type="password"],
    button {
        font-size: 15px;
    }
}
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.modal-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}
main.dashboard {
    text-align: center;
    margin-top: 120px;
    color: #1f2937;
}

main.dashboard h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #111827;
}

main.dashboard p {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #374151;
}

main.dashboard .descricao {
    font-size: 0.95rem;
    color: #6b7280;
}
.footer {
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    color: #fff;
    background: #1f2937;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}
/* ===== TOPO E MENU ===== */
.topo {
    background-color: #1f2937;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu ul li {
    position: relative;
}

.menu ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    display: block;
    transition: background 0.3s;
}

.menu ul li a:hover {
    background-color: #374151;
    border-radius: 6px;
}

/* Submenu */
.menu ul .submenu {
    display: none;
    position: absolute;
    background-color: #1f2937;
    top: 100%;
    left: 0;
    min-width: 160px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.menu ul .submenu li a {
    padding: 10px;
}

.menu ul li:hover .submenu {
    display: block;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
}
main.formulario {
    max-width: 600px;
    margin: 120px auto 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

main.formulario h2 {
    margin-bottom: 20px;
    color: #1f2937;
    text-align: center;
}

main.formulario form label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
    color: #374151;
}

main.formulario form input[type="text"],
main.formulario form input[type="date"],
main.formulario form input[type="url"],
main.formulario form input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

main.formulario form button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

main.formulario form button:hover {
    background-color: #1e40af;
}

.mensagem {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.mensagem.sucesso {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.mensagem.erro {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #dc2626;
}

main.formulario form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}
main.tabela-videos {
    max-width: 1000px;
    margin: 120px auto 40px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

main.tabela-videos h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #1f2937;
}

main.tabela-videos table {
    width: 100%;
    border-collapse: collapse;
}

main.tabela-videos table thead {
    background-color: #f3f4f6;
}

main.tabela-videos table th, 
main.tabela-videos table td {
    padding: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

main.tabela-videos table a {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}
main.tabela-videos img {
    border-radius: 6px;
    transition: transform 0.2s ease;
}
main.tabela-videos img:hover {
    transform: scale(1.05);
}
.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-end;
}

.filtros label {
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
}

.filtros select, .filtros input[type="date"] {
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    min-width: 150px;
}

.filtros button {
    padding: 8px 14px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.filtros button:hover {
    background-color: #1d4ed8;
}

.status.ativo {
    color: #065f46;
    font-weight: bold;
    background-color: #d1fae5;
    padding: 4px 8px;
    border-radius: 6px;
}

.status.inativo {
    color: #991b1b;
    font-weight: bold;
    background-color: #fee2e2;
    padding: 4px 8px;
    border-radius: 6px;
}
.toggle-status {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-status[data-status="1"] {
    background-color: #dc2626; /* Vermelho para "Desativar" */
}

.toggle-status[data-status="1"]:hover {
    background-color: #b91c1c;
}

.toggle-status[data-status="0"] {
    background-color: #16a34a; /* Verde para "Ativar" */
}

.toggle-status[data-status="0"]:hover {
    background-color: #15803d;
}
.paginacao {
    margin-top: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.paginacao a {
    background-color: #2563eb;
    color: white;
    padding: 6px 10px;
    margin: 0 5px;
    text-decoration: none;
    border-radius: 5px;
}

.paginacao span {
    margin: 0 10px;
}
.excluir-video {
    background-color: #9f1239;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    margin-left: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.excluir-video:hover {
    background-color: #881337;
}


