@import url(https://fonts.bunny.net/css?family=inter:400,500,600,700);

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #f4f6f9;
    color: #000;
    overflow-x: hidden;
}

h2 {
    font-weight: 500;
}

a {
    text-decoration: none !important;
}

hr {
    margin: 25px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

textarea {
    border: 1px solid #ddd;
    width: 99%;
    font-size: 13px;
    cursor: pointer;
    padding: 10px;
    color: #333;
    height: 40px;
    border-radius: 5px;
}

textarea:focus {
    border: 1px solid #17a2b8;
    outline: none;
}

#codigo_botao {
    min-height: 60px;
}

fieldset {
    background: #f3f3fa;
    border: 1px solid #ccc;
    border-radius: 14px;
    padding: 18px 20px 20px;
    margin: 20px 0;
}

legend {
    font-size: 14px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #4364f5;
    padding: 0 8px;
    font-weight: 600;
}

.opcao-radio {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.opcao-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #404cf7;
}

/* ==========================================================
   ESTILOS DO PLAYER NATIVO CENTRALIZADO
   ========================================================== */
.native-player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 1rem 1rem 1rem;
    position: relative;
    z-index: 10;
}

.radio-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.albumart-box {
    width: 220px;
    height: 220px;
    overflow: hidden;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.albumart-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.track-info {
    margin-bottom: 20px;
    width: 100%;
    padding: 0 15px;
}

.track-artist {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.track-title {
    font-size: 1.1rem;
    font-weight: 600;
    word-break: break-word;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-pause-btn {
    background: transparent;
    border: 2px solid currentColor;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.7s ease;
}

/* Layout Login */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1a1a2e;
}

.login-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.login-card h2 {
    margin-bottom: 20px;
    text-align: center;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Header Mobile */
.mobile-header {
    display: none;
    background-color: #1a1a2e;
    color: #fff;
    padding: 15px;
    width: 100%;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 27px;
    cursor: pointer;
    margin-right: 15px;
}

/* Sidebar Lateral Esquerda */
.sidebar {
    width: 260px;
    background-color: #1a202c;
    color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #2a2a4a;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-nav a {
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: #3758af;
    color: #fff;
}

.sidebar-nav .logout {
    margin-top: 20px;
    color: #ff6b6b;
}

.sidebar-footer {
    position: fixed;
    bottom: 0px;
    display: flex;
    justify-content: center;
    width: 260px;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    align-items: center;
    color: #ddd;
}

/* Botão Salvar no Menu Lateral com o mesmo estilo dos links */
.btn-sidebar-save {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    color: #fff;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.btn-sidebar-save:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Widget Flutuante de Redes Sociais no Canto Inferior Direito */
.social-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99999;
}

.social-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-toggle-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

/* Menu Pop-up */
.social-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: #273c75;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px 0;
    width: 180px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.social-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-menu a {
    color: #fff;
    padding: 1rem;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.social-menu a:hover {
    background: #2c2c2c;
    color: #ffffff;
}

.social-menu a i {
    width: 18px;
    text-align: center;
    font-size: 16px;
}

/* Estilos da Janela Popup Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #1e1e1e;
    border: 1px solid #333;
    width: 100%;
    height: 95vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.modal-header {
    background-color: #273c75;
    padding: 7px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.modal-header h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-body {
    flex: 1;
    background: #fff;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    padding: 10px 0;
}

/* Conteúdo */
.main-content {
    flex: 1;
    margin-left: 260px;
    /* Deve ser exatamente a largura da .sidebar */
    padding: 30px;
    background-color: #fff;
}

/*.config-form {
    background: #f3f3fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 3px 3px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
    border: 1px solid #ddd;
}*/

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

input:focus {
    border: 1px solid #17a2b8;
    outline: none;
}

select:focus {
    border: 1px solid #17a2b8;
    outline: none;
}

.form-group [type=color] {
    cursor: pointer;
    padding: 0;
    width: 80px;
    height: 35px;
    padding: 2px 5px;
}

.btn-submit {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    font-size: 0.9rem;
}

.btn-submit:hover {
    background-color: #0056b3;
}

.alert {
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    margin-top: 15px;
}

.error-msg {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

/* Cards e Seções do Admin */
.card-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card-box h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

/* Tabela Responsiva */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

td {
    white-space: nowrap;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Status Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Botões de Ação */
.btn-action {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 4px;
    font-weight: 500;
}

.btn-info {
    background-color: #17a2b8;
    color: #fff;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-warning {
    background-color: #06b300;
    color: #fff;
}

.btn-warning:hover {
    background-color: #218d00;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #bb1829;
}

.btn-preview {
    background-color: #574a4a;
    color: #fff;
}

.btn-preview:hover {
    background-color: #493739;
}

/* Estilo base para os botões de ícone */
.btn-acao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
    margin-right: 4px;
    text-decoration: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Botões das Redes Sociais */
.btn-social {
    width: 100%;
    position: fixed;
    bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-social a {
    text-decoration: none;
}

/* Aviso de Gerenciamento ativo no topo do dashboard */
.admin-notice {
    background-color: #e2e3e5;
    border: 1px solid #d6d8db;
    color: #383d41;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Camada de Filtro/Sobreposição (Overlay) para a imagem de fundo */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Pré-visualização da Logo */
.logo-preview-box {
    margin-bottom: 10px;
    padding: 10px 0;
    background: #eee;
    display: inline-block;
}

.logo-preview-box img {
    border-radius: 8px;
}

.logo-preview {
    width: 170px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ==========================================================
   MODAL EXCLUSIVA DE PRÉ-VISUALIZAÇÃO DO PLAYER
   ========================================================== */
.player-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.player-modal-overlay.active {
    display: flex;
}

.player-modal-container {
    background-color: #1a202c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    overflow: hidden;
    animation: playerModalAnimation 0.25s ease-out;
}

.player-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 20px;
    background-color: #2d3748;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.player-modal-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.player-modal-close {
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.player-modal-close:hover {
    color: #ffffff;
}

.player-modal-body {
    width: 100%;
    height: 100vh;
    background-color: #000000;
}

.player-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes playerModalAnimation {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsividade Celular */
@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .dashboard-container {
        flex-direction: column;
        padding-top: 60px;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        /* Mantém oculto fora da tela */
        width: 260px;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
        /* Exibe ao clicar no botão hambúrguer */
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        /* No mobile o conteúdo ocupa 100% da largura */
        padding: 20px 15px;
    }

    .player-modal-container {
        max-width: 100%;
    }
}