/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    background: #181c24;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.dashboard-header, nav.top-menu {
    background: #1e2230;
    color: #fff;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav.top-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 60px;
}
nav.top-menu ul {
    display: flex;
    gap: 32px;
    list-style: none;
}
nav.top-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}
nav.top-menu ul li a:hover, nav.top-menu ul li a.active {
    color: #a259ff;
}

.top-menu .user-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 0 20px;
}

.cards-categorias {
    display: flex;
    gap: 40px;
    margin: 40px 0 60px 0;
    justify-content: center;
}
.card-categoria {
    background: #23273a;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    width: 320px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.card-categoria:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(162,89,255,0.18);
}
.card-categoria i {
    font-size: 3.5rem;
    margin-bottom: 18px;
    color: #a259ff;
}
.card-categoria span {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

/* Carrossel de destaques */
.destaques-carousel {
    width: 100%;
    margin: 0 auto 40px auto;
    position: relative;
}
.destaque-slide {
    background: #23273a;
    border-radius: 18px;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
}
.destaque-info {
    flex: 1;
    padding: 40px 40px 40px 60px;
}
.destaque-info h2 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
}
.destaque-info p {
    font-size: 1.1rem;
    color: #bdbdbd;
    margin-bottom: 24px;
}
.destaque-info .btn-destaque {
    background: linear-gradient(90deg, #a259ff 0%, #667eea 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.destaque-info .btn-destaque:hover {
    background: linear-gradient(90deg, #667eea 0%, #a259ff 100%);
}
.destaque-img {
    flex: 1;
    min-width: 320px;
    height: 320px;
    background: #181c24;
    display: flex;
    align-items: center;
    justify-content: center;
}
.destaque-img img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 18px;
    object-fit: cover;
}
.carousel-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #444;
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-dot.active {
    background: #a259ff;
}

/* Grid de cards de conteúdo */
.section-titulo {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 40px 0 18px 0;
    color: #fff;
}
.grid-conteudo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
}
.card-conteudo {
    background: #23273a;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.card-conteudo:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px rgba(162,89,255,0.18);
}
.card-conteudo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
}
.card-conteudo .titulo {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 14px 0 8px 0;
}
.card-conteudo .categoria {
    font-size: 0.95rem;
    color: #a259ff;
    margin-bottom: 10px;
}

/* ====== LAYOUT PRINCIPAL ====== */
body.dashboard-page.dark-theme {
    background: #18181c;
    color: #fff;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.main-layout {
    display: flex;
    min-height: 100vh;
}

/* ====== SIDEBAR ====== */
.sidebar {
    width: 90px;
    background: #111116;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    box-shadow: 2px 0 8px #0002;
}
.sidebar-logo {
    margin-bottom: 30px;
    color: #fff;
    font-size: 1.6em;
}
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav li {
    margin-bottom: 22px;
    text-align: center;
}
.sidebar-nav a {
    color: #bbb;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.1em;
    transition: color 0.2s;
}
.sidebar-nav a.active, .sidebar-nav a:hover {
    color: #fff;
}
.sidebar-nav i {
    font-size: 1.6em;
    margin-bottom: 5px;
}
.sidebar-nav span {
    font-size: 0.85em;
    margin-top: 2px;
}

/* ====== ÁREA DE CONTEÚDO ====== */
.content-area {
    margin-left: 90px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #18181c;
}
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px 10px 32px;
    background: #18181c;
    border-bottom: 1px solid #23232a;
}
.top-header input[type="text"] {
    background: #23232a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 1em;
    width: 260px;
    outline: none;
}
.user-welcome {
    font-size: 1em;
    color: #bbb;
}

.canais-layout {
    display: flex;
    flex: 1;
    height: calc(100vh - 60px);
    overflow: hidden;
}

/* ====== CATEGORIAS ====== */
.canais-categorias {
    width: 220px;
    background: #1e1e23;
    padding: 18px 0 0 0;
    border-right: 1px solid #23232a;
    overflow-y: auto;
    height: 100%;
}
.canais-categorias ul {
    list-style: none;
    padding: 0 0 0 10px;
    margin: 0;
}
.canais-categorias li {
    padding: 10px 18px;
    color: #bbb;
    cursor: pointer;
    border-radius: 6px 0 0 6px;
    margin-bottom: 2px;
    transition: background 0.2s, color 0.2s;
}
.canais-categorias li.active, .canais-categorias li:hover {
    background: #292933;
    color: #fff;
}

/* ====== LISTA DE CANAIS ====== */
.canais-lista {
    width: 270px;
    background: #23232a;
    padding: 18px 0 0 0;
    border-right: 1px solid #23232a;
    overflow-y: auto;
    height: 100%;
}
.canais-lista ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.canais-lista li {
    background: #23273a;
    border-radius: 10px;
    margin: 0;
    padding: 8px 4px;
    display: flex;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 0;
}
.canais-lista li img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff1;
    margin-bottom: 6px;
}

/* ====== PLAYER E EPG ====== */
.canais-player-epg {
    flex: 1;
    background: #18181c;
    padding: 24px 32px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    overflow-y: auto;
}
#clappr-player {
    width: 100%;
    max-width: 600px;
    height: 340px;
    background: #111;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px #0004;
}
.player-info {
    color: #bbb;
    margin-bottom: 18px;
    font-size: 1.1em;
}
.epg_ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 600px;
}
.epg_ul li {
    color: #b6b6d6;
    padding: 7px 0;
    border-bottom: 1px solid #23232a;
    font-size: 1em;
}
.epg_ul li strong {
    color: #fff;
}

/* ====== SCROLLBAR ====== */
.canais-categorias, .canais-lista, .canais-player-epg {
    scrollbar-width: thin;
    scrollbar-color: #444 #23232a;
}
.canais-categorias::-webkit-scrollbar, .canais-lista::-webkit-scrollbar, .canais-player-epg::-webkit-scrollbar {
    width: 8px;
    background: #23232a;
}
.canais-categorias::-webkit-scrollbar-thumb, .canais-lista::-webkit-scrollbar-thumb, .canais-player-epg::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

/* Responsivo */
@media (max-width: 900px) {
    .dashboard-container {
        padding: 10px;
    }
    .cards-categorias {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    .destaque-info {
        padding: 24px;
    }
}
@media (max-width: 600px) {
    nav.top-menu {
        flex-direction: column;
        height: auto;
        padding: 0 10px;
    }
    .dashboard-container {
        padding: 0 2px;
    }
    .destaque-slide {
        flex-direction: column;
        min-height: 200px;
    }
    .destaque-img {
        min-width: 100px;
        height: 180px;
    }
    .card-categoria {
        width: 95vw;
        height: 120px;
    }
}

/* ====== RESPONSIVO ====== */
@media (max-width: 1100px) {
    .canais-player-epg {
        padding: 18px 10px;
    }
    #clappr-player, .epg_ul {
        max-width: 100%;
    }
}
@media (max-width: 900px) {
    .canais-categorias {
        width: 120px;
    }
    .canais-lista {
        width: 150px;
    }
    .content-area {
        margin-left: 70px;
    }
    .sidebar {
        width: 70px;
    }
}
@media (max-width: 700px) {
    .main-layout {
        flex-direction: column;
    }
    .sidebar {
        flex-direction: row;
        width: 100vw;
        height: 60px;
        min-height: 0;
        position: static;
        box-shadow: none;
        padding: 0;
    }
    .sidebar-nav ul {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        width: 100vw;
    }
    .sidebar-nav li {
        margin-bottom: 0;
    }
    .content-area {
        margin-left: 0;
    }
    .canais-layout {
        flex-direction: column;
        height: auto;
    }
    .canais-categorias, .canais-lista, .canais-player-epg {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #23232a;
        height: auto;
        min-height: 0;
    }
    .canais-player-epg {
        padding: 10px 4px;
    }
}

/* Centralização da tela inicial SPA */
.landing-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: #232736;
}

/* Grid de cards para filmes e séries */
.grid-cards {
    flex: 1;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.filmes-layout {
    display: flex;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.filmes-categorias {
    width: 220px;
    background: #1e1e23;
    padding: 18px 0 0 0;
    border-right: 1px solid #23232a;
    overflow-y: auto;
    height: 100%;
}

.filmes-categorias ul, .series-categorias ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filmes-categorias li, .series-categorias li {
    padding: 12px 18px;
    cursor: pointer;
    color: #bbb;
    transition: background 0.2s;
    border-bottom: 1px solid #23232a;
}

.filmes-categorias li.active, .series-categorias li.active,
.filmes-categorias li:hover, .series-categorias li:hover {
    background: #23232a;
    color: #fff;
}
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}
.card-filme {
    flex: 0 1 160px;
    min-width: 140px;
    max-width: 200px;
    width: 100%;
    background: #23273a;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 220px;
    margin-bottom: 0;
}
.card-filme:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 8px 32px rgba(162,89,255,0.18);
}
.card-capa {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    background: #181c24;
    margin-bottom: 8px;
}
.card-titulo {
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
    padding: 8px 6px 12px 6px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 700px) {
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 16px;
        padding: 10px;
    }
    .card-filme {
        width: 100%;
        min-height: 180px;
    }
    .card-capa {
        height: 120px;
    }
    .card-titulo {
        font-size: 0.95rem;
        min-height: 32px;
    }
    
    .filmes-layout, .series-layout {
        flex-direction: column;
        height: auto;
    }
    
    .filmes-categorias, .series-categorias {
        width: 100%;
        height: auto;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid #23232a;
    }
}

/* Modal do player para filmes e séries */
.modal-player {
  position: fixed !important;
  top: 0 !important; 
  left: 0 !important; 
  right: 0 !important; 
  bottom: 0 !important;
  background: rgba(0,0,0,0.7) !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.modal-player-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
}
.modal-player-content {
  position: relative !important;
  background: #23232a !important;
  border-radius: 12px !important;
  padding: 16px !important;
  z-index: 10001 !important;
  min-width: 320px !important;
  min-height: 200px !important;
  max-width: 90vw !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.modal-close {
  position: absolute !important;
  top: 8px !important;
  right: 16px !important;
  font-size: 2rem !important;
  color: #fff !important;
  cursor: pointer !important;
  z-index: 10002 !important;
}
#modalPlayerContainer {
  width: 60vw !important;
  height: 340px !important;
  max-width: 900px !important;
  max-height: 70vh !important;
  background: #000 !important;
  border-radius: 8px !important;
}
@media (max-width: 700px) {
  #modalPlayerContainer {
    width: 95vw !important;
    height: 220px !important;
  }
}

#player_container_filme {
    display: none !important;
}

#filmeInfo {
    display: none !important;
}

/* Estilos para os filtros de busca */
.search-filter-btn {
    background: #23232a !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.search-filter-btn:hover {
    background: #2a2a32 !important;
    transform: translateY(-1px);
}

.search-filter-btn.active {
    background: #6c63ff !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.3);
}

.search-filter-btn.active:hover {
    background: #7c73ff !important;
    transform: translateY(-1px);
}

/* Footer da sidebar */
.sidebar-footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid #23232a;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #bfc6d1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-footer a:hover {
    background: #23232a;
    color: #6c63ff;
}

.sidebar-footer a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Ajuste para o layout da sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.sidebar-nav {
    flex: 1;
}

/* Modal de confirmação de logout */
.modal-logout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-logout-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-logout-content {
    background: #23232a;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-logout-icon {
    margin-bottom: 20px;
}

.modal-logout-icon i {
    font-size: 3rem;
    color: #6c63ff;
    background: rgba(108, 99, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.modal-logout-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-logout-message {
    color: #bfc6d1;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-logout-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-logout-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.modal-logout-btn-cancel {
    background: #2a2a32;
    color: #bfc6d1;
}

.modal-logout-btn-cancel:hover {
    background: #3a3a42;
    color: #fff;
}

.modal-logout-btn-confirm {
    background: #dc3545;
    color: #fff;
}

.modal-logout-btn-confirm:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ===== TELA DE LOGIN MODERNA ===== */

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background animado */
.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Partículas flutuantes */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.particle:nth-child(3) { top: 80%; left: 20%; animation-delay: 2s; }
.particle:nth-child(4) { top: 30%; left: 70%; animation-delay: 3s; }
.particle:nth-child(5) { top: 70%; left: 40%; animation-delay: 4s; }
.particle:nth-child(6) { top: 40%; left: 90%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.6; }
}

/* Container principal */
.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* Card de login */
.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: cardSlideIn 0.6s ease-out;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header do login */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.login-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

/* Formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.input-container input,
.input-container select {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Dropdown específico */
.input-container select {
    padding-right: 40px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='rgba(255,255,255,0.7)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.input-container select option {
    background: #23232a;
    color: white;
    padding: 12px;
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-container input:focus,
.input-container select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.3);
}

.input-container input:focus + .input-icon,
.input-container select:focus + .input-icon {
    color: #6c63ff;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6c63ff, #8b7fff);
    transition: width 0.3s ease;
}

.input-container input:focus ~ .input-line,
.input-container select:focus ~ .input-line {
    width: 100%;
}

/* Botão de mostrar/ocultar senha */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 3;
}

.password-toggle:hover {
    color: #6c63ff;
    background: rgba(108, 99, 255, 0.1);
}

.password-toggle:focus {
    outline: none;
    color: #6c63ff;
    background: rgba(108, 99, 255, 0.2);
}

.password-toggle i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Servidor customizado */
.custom-server-input {
    display: flex;
    align-items: center;
    width: 100%;
}

.url-prefix {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-right: 8px;
    padding-left: 48px;
}

.custom-server-input input {
    flex: 1;
    padding-left: 16px;
}

/* Botão de login */
.login-btn {
    background: linear-gradient(135deg, #6c63ff, #8b7fff);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(108, 99, 255, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.btn-text {
    z-index: 1;
    position: relative;
}

.btn-icon {
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease;
}

.login-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Mensagens */
.error-message {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    text-align: center;
    border: 1px solid rgba(220, 53, 69, 0.3);
    backdrop-filter: blur(10px);
}

.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    margin-top: 16px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }
    
    .login-card {
        padding: 32px 24px;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
    
    .logo-container {
        width: 100px;
        height: 70px;
    }
    
    .logo-image {
        max-width: 100%;
        max-height: 100%;
    }
}

/* Botão de logout do header */
#headerLogoutBtn {
    background: #dc3545 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    font-size: 0.9rem !important;
}

#headerLogoutBtn:hover {
    background: #c82333 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

#headerLogoutBtn:active {
    transform: translateY(0);
}

#headerLogoutBtn i {
    font-size: 0.9rem !important;
}

/* Logo do header */
.header-logo {
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.header-logo img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.header-logo:hover img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Responsividade para o header */
@media (max-width: 768px) {
    .header-logo img {
        height: 32px;
    }
    
    #headerUser {
        font-size: 1rem !important;
    }
    
    #headerServer {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .header-logo img {
        height: 28px;
    }
    
    #globalHeader {
        padding: 0 16px !important;
    }
}