/* Estilos gerais do site Airot */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

/* Header e Navegação */
header {
    background-color: #1a1a1a;
    padding: 15px 0;
    border-bottom: 2px solid #ff1493;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ff1493;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff1493;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Página inicial */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b2e 100%);
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff1493;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #cccccc;
}

.hero-logo {
    margin: 20px 0;
}

.hero-logo img {
    max-width: 200px;
    height: auto;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff1493;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
    margin: 10px;
}

.btn:hover {
    background-color: #ff69b4;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #333333;
    border: 2px solid #ff1493;
}

.btn-secondary:hover {
    background-color: #ff1493;
}

.btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Avisos */
.alert {
    background-color: #2d1b2e;
    border-left: 4px solid #ff1493;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.alert h3 {
    color: #ff1493;
    margin-bottom: 10px;
}

.alert p {
    color: #cccccc;
    font-size: 14px;
}

.alert-warning {
    border-left-color: #ff9800;
}

.alert-warning h3 {
    color: #ff9800;
}

/* Painel administrativo */
.admin-container {
    display: flex;
    gap: 20px;
    min-height: calc(100vh - 100px);
}

.sidebar {
    width: 250px;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 5px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar h3 {
    color: #ff1493;
    margin-bottom: 15px;
    font-size: 18px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: #cccccc;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: #ff1493;
    color: #ffffff;
}

.main-content {
    flex: 1;
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 5px;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: #2d1b2e;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #ff1493;
    text-align: center;
}

.dashboard-card h4 {
    color: #ff1493;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.dashboard-card .number {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ff1493;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background-color: #2d1b2e;
    border: 1px solid #ff1493;
    border-radius: 5px;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 5px rgba(255, 20, 147, 0.5);
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background-color: #2d1b2e;
    color: #ff1493;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #ff1493;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #333333;
}

table tr:hover {
    background-color: #2d1b2e;
}

/* Player de reels */
.reel-container {
    width: 100%;
    height: 100vh;
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

.reel-item {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
}

.reel-item.active {
    display: flex;
}

.reel-item img,
.reel-item video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===== CONTROLES COM IMAGENS E LABELS ===== */
.reel-controls {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

/* Cada item de controle (botão + label) */
.control-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Estilo base para todos os botões de controle */
.control-item button,
.sound-toggle {
    width: 60px;
    height: 60px;
    border: none;
    background: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: filter 0.2s;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    color: transparent;
    font-size: 0;
    flex-shrink: 0;
}

/* Botão próximo */
#btn-next {
    background-image: url('https://airot.com.br/public/botao-proximo.png');
}

/* Botão voltar */
#btn-previous {
    background-image: url('https://airot.com.br/public/botao-voltar.png');
}

/* Botão repetir */
#btn-repeat {
    background-image: url('https://airot.com.br/public/botao-repetir.png');
}

/* Botão compartilhar */
#btn-share {
    background-image: url('https://airot.com.br/public/botao-compartilhar.png');
}

/* Botão volume */
.sound-toggle {
    background-image: url('https://airot.com.br/public/botao-volume.png');
    filter: brightness(1); /* claro (mudo) */
}

/* Quando o som estiver ativo (não mudo), escurece */
.sound-toggle.sound-on {
    filter: brightness(0.6); /* escuro */
}

/* Labels dos botões */
.control-label {
    font-family: Arial, sans-serif;
    font-size: 10px;
    color: #ffffff;
    text-shadow: 1px 1px 2px black;
    white-space: nowrap;
}

/* Status do repeat (modo repetição ativado) */
.repeat-status {
    font-weight: bold;
    color: #ff1493;
    margin-left: 5px;
}

/* Efeito hover suave */
.control-item button:hover,
.sound-toggle:hover {
    background-color: transparent;
    filter: brightness(0.9);
}

.countdown-timer {
    position: absolute;
    top: 20px;
    right: 50px;
    font-size: 24px;
    color: #ff1493;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 5px;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background-color: #2d1b2e;
    color: #ff1493;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid #ff1493;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #ff1493;
    color: #ffffff;
}

.pagination .active {
    background-color: #ff1493;
    color: #ffffff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 30px;
    border: 2px solid #ff1493;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
}

.modal-header {
    color: #ff1493;
    font-size: 24px;
    margin-bottom: 20px;
}

.close {
    color: #ff1493;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ff69b4;
}

/* Responsivo */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}



/* Feedback visual para o texto do volume */
.volume-label {
    transition: color 0.3s;
}
.volume-label.sound-active {
    color: #ff1493 !important;
    font-weight: bold;
}

/* Estilo provisório para o botão volume (caso a imagem não carregue) */
.sound-toggle {
    background-color: rgba(255, 20, 147, 0.3); /* Rosa claro transparente */
    border: 1px solid #ff1493;
    border-radius: 50%;
    /* Mantém a tentativa da imagem */
    background-image: url('https://airot.com.br/public/botao-volume.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Quando o som estiver ativo, escurece o fundo ou a imagem */
.sound-toggle.sound-on {
    filter: brightness(0.6);
    background-color: rgba(255, 20, 147, 0.6);
}


