/* Admin Panel Styles */
* {
    box-sizing: border-box;
}

/* ============================================
   SISTEMA DE TEMA - VARIÁVEIS CSS
   ============================================ */

/* Modo Escuro (Padrão) */
:root {
    /* Cores de Texto */
    --admin-text-primary: #ffffff;
    --admin-text-secondary: #d4d4d4;
    --admin-text-muted: #a3a3a3;
    --admin-text-light: #d4d4d4;
    
    /* Cores de Fundo */
    --admin-bg-primary: #141414;
    --admin-bg-secondary: #1a1a1a;
    --admin-bg-tertiary: #222222;
    --admin-card-bg: rgba(26, 26, 26, 0.95);
    --admin-sidebar-bg: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    
    /* Bordas */
    --admin-border-color: rgba(255, 255, 255, 0.2);
    --admin-border-hover: rgba(255, 255, 255, 0.35);
    --admin-border-active: rgba(229, 9, 20, 0.5);
    
    /* Sombras */
    --admin-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --admin-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --admin-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    
    /* Overlay */
    --admin-overlay: rgba(0, 0, 0, 0.7);
    
    /* Cores de Ação */
    --admin-primary: var(--primary-color);
    --admin-hover-bg: rgba(229, 9, 20, 0.15);
    --admin-active-bg: rgba(229, 9, 20, 0.25);
}

/* Modo Claro */
[data-theme="light"] {
    /* Cores de Texto */
    --admin-text-primary: #1a1a1a;
    --admin-text-secondary: #4a4a4a;
    --admin-text-muted: #6b6b6b;
    --admin-text-light: #4a4a4a;
    
    /* Cores de Fundo */
    --admin-bg-primary: #ffffff;
    --admin-bg-secondary: #f5f5f5;
    --admin-bg-tertiary: #fafafa;
    --admin-card-bg: rgba(255, 255, 255, 0.98);
    --admin-sidebar-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 245, 0.95) 100%);
    
    /* Bordas */
    --admin-border-color: rgba(0, 0, 0, 0.15);
    --admin-border-hover: rgba(0, 0, 0, 0.25);
    --admin-border-active: rgba(229, 9, 20, 0.4);
    
    /* Sombras */
    --admin-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --admin-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --admin-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    /* Overlay */
    --admin-overlay: rgba(0, 0, 0, 0.4);
    
    /* Cores de Ação */
    --admin-hover-bg: rgba(229, 9, 20, 0.08);
    --admin-active-bg: rgba(229, 9, 20, 0.15);
}

/* Aplicar transições suaves para mudanças de tema */
* {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Classe para transição de tema */
body.theme-transitioning * {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease !important;
}

/* Body e Wrapper */
body {
    background: var(--admin-bg-primary) !important;
    color: var(--admin-text-primary) !important;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.admin-wrapper {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.04), transparent 55%) no-repeat,
                radial-gradient(circle at bottom right, rgba(255,255,255,0.03), transparent 55%) no-repeat,
                var(--admin-bg-primary);
    min-height: 100vh;
    display: flex;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

/* Ajustes para modo claro no wrapper */
[data-theme="light"] .admin-wrapper {
    background: radial-gradient(circle at top left, rgba(0,0,0,0.02), transparent 55%) no-repeat,
                radial-gradient(circle at bottom right, rgba(0,0,0,0.015), transparent 55%) no-repeat,
                var(--admin-bg-primary);
}

.admin-body,
.admin-container {
    background: transparent;
    color: var(--admin-text-primary);
    min-height: 100vh;
    display: flex;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .admin-body,
    .admin-container {
        display: block !important;
    }
}

/* Sidebar Overlay (mobile) */
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--admin-overlay);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.admin-sidebar-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Sidebar - Sempre fixa no desktop */
.admin-sidebar {
    width: 280px;
    background: var(--admin-sidebar-bg);
    border-right: 2px solid var(--admin-border-color);
    padding: 0;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: var(--admin-shadow-lg);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

/* Garantir que seja fixa em todas as resoluções desktop */
@media (min-width: 769px) {
    .admin-sidebar {
        position: fixed !important;
        transform: none !important;
    }
}

/* Desktop - Garantir que sidebar seja fixa e vá até o final */
@media (min-width: 769px) {
    .admin-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        transform: translateX(0) !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 999 !important;
    }
    
    /* Garantir que o header da sidebar não encolha */
    .admin-sidebar-header {
        flex-shrink: 0 !important;
    }
    
    /* Garantir que a navegação ocupe o resto do espaço e tenha scroll */
    .admin-sidebar-nav {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        min-height: 0 !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Garantir que a sidebar não seja relativa no desktop */
    .admin-wrapper .admin-sidebar,
    .admin-wrapper aside.admin-sidebar {
        position: fixed !important;
    }
}

/* No mobile, garantir que a sidebar não ocupe espaço */
@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed !important;
        transform: translateX(-100%) !important;
    }
    
    .admin-sidebar.active {
        transform: translateX(0) !important;
    }
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-sidebar-header {
    padding: 24px 20px;
    border-bottom: 2px solid var(--admin-border-color);
    background: var(--admin-active-bg);
    flex-shrink: 0; /* Não encolhe */
}

.admin-sidebar-header h2 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar-header h2 i {
    font-size: 22px;
}

.admin-sidebar-nav {
    padding: 20px 0;
}

.admin-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-sidebar-nav li {
    margin: 0;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--admin-text-secondary);
    text-decoration: none;
    position: relative;
    font-size: 15px;
    font-weight: 500;
}

.admin-sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s;
}

.admin-sidebar-nav a:hover {
    background: var(--admin-hover-bg);
    color: var(--admin-text-primary);
    padding-left: 24px;
}

.admin-sidebar-nav a.active {
    background: var(--admin-active-bg);
    color: var(--admin-primary);
    border-left: 4px solid var(--admin-primary);
    font-weight: 600;
}

.admin-sidebar-nav a.active::before {
    opacity: 1;
}

.admin-sidebar-nav a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Divisores de Seção na Sidebar */
.admin-nav-divider {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--admin-border-color);
}

.admin-nav-section-title {
    color: var(--admin-text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    padding: 0 20px;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.admin-sidebar-nav a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px 48px 40px;
    background: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: calc(100% - 260px);
    transition: margin-left 0.3s ease, width 0.3s ease;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .admin-main {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid var(--admin-border-color);
    flex-wrap: wrap;
    gap: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    background: var(--admin-bg-secondary);
    box-shadow: var(--admin-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.admin-header h1 {
    font-size: 22px;
    color: var(--admin-text-primary);
    margin: 0;
    flex: 1;
    font-weight: 700;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.admin-header-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.admin-header-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--admin-text-secondary);
}

.admin-user {
    color: var(--admin-text-secondary);
}

.admin-content {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto 40px;
    padding: 0;
}

/* Espaçamento entre seções */
.admin-card + .admin-card {
    margin-top: 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--admin-card-bg);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--admin-border-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--admin-shadow-sm);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--admin-shadow-lg);
    border-color: var(--admin-border-hover);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card-primary { color: #e50914; }
.stat-card-success { color: #43e97b; }
.stat-card-warning { color: #ffa726; }
.stat-card-info { color: #42a5f5; }
.stat-card-purple { color: #ab47bc; }

.stat-card-icon-wrapper {
    flex-shrink: 0;
}

.stat-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stat-card-icon.primary {
    background: linear-gradient(135deg, #e50914 0%, #b8070f 100%);
}

.stat-card-icon.success {
    background: linear-gradient(135deg, #43e97b 0%, #38d9a9 100%);
}

.stat-card-icon.warning {
    background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
}

.stat-card-icon.info {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
}

.stat-card-icon.purple {
    background: linear-gradient(135deg, #ab47bc 0%, #8e24aa 100%);
}

.stat-card-content {
    flex: 1;
    min-width: 0;
}

.stat-card-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--admin-text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-card-label {
    color: var(--admin-text-secondary);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 12px;
    color: var(--admin-text-secondary);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-badge.active {
    background: rgba(67, 233, 123, 0.15);
    color: #43e97b;
}

.stat-badge i {
    font-size: 10px;
}

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

/* Admin Card */
.admin-card {
    background: linear-gradient(145deg, rgba(17,17,17,0.96), rgba(10,10,10,0.96));
    border-radius: 18px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    box-shadow: var(--admin-shadow-md);
}

.admin-card:hover {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    transform: translateY(-3px);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--admin-border-color);
    background: linear-gradient(120deg, rgba(255,255,255,0.02), transparent);
}

.admin-card-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-card-header-title i {
    font-size: 20px;
    color: var(--primary-color);
}

.admin-card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--admin-text-primary);
    margin: 0;
}

/* Admin Sections */
.admin-section {
    background: var(--admin-card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid var(--admin-border-color);
    box-shadow: var(--admin-shadow-sm);
}

.admin-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--admin-text-primary);
    font-weight: 700;
}

/* Forms */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Forms */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: var(--admin-text-primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea,
.form-control {
    background: var(--admin-bg-secondary) !important;
    border: 2px solid var(--admin-border-color) !important;
    color: var(--admin-text-primary) !important;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--admin-text-muted) !important;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover,
.form-control:hover {
    border-color: var(--admin-border-hover) !important;
    background: var(--admin-bg-tertiary) !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none !important;
    border-color: var(--admin-primary) !important;
    background: var(--admin-bg-tertiary) !important;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.15), var(--admin-shadow-sm) !important;
    transform: translateY(-2px);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 40px !important;
}

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

/* Form Container */
.admin-form-container {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}


.admin-form-container h3 {
    color: var(--admin-text-primary) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid var(--admin-border-color) !important;
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* Garantir que todos os inputs tenham tema correto */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
    background: var(--admin-bg-secondary) !important;
    border: 2px solid var(--admin-border-color) !important;
    color: var(--admin-text-primary) !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    background: var(--admin-bg-tertiary) !important;
    border-color: var(--admin-primary) !important;
    box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.15), var(--admin-shadow-sm) !important;
}

input[type="text"]::placeholder,
input[type="number"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder {
    color: var(--admin-text-muted) !important;
}

/* Garantir que todos os elementos de formulário tenham tema escuro */
.admin-main input,
.admin-main select,
.admin-main textarea,
.admin-main button {
    color: var(--admin-text-primary) !important;
}

/* Estilos para small text */
small {
    color: var(--admin-text-secondary) !important;
}

/* Garantir que h3 e outros títulos tenham cor correta */
.admin-form-container h3,
.admin-section h3,
h3 {
    color: var(--admin-text-primary) !important;
    font-weight: 700;
}

/* Estilos para checkboxes e radios */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Estilos para file input */
input[type="file"] {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: rgba(229, 9, 20, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Estilos para option em select */
select option {
    background: var(--admin-card-bg) !important;
    color: var(--admin-text-primary) !important;
    padding: 10px;
    font-weight: 500;
}

/* Tables */
.admin-table-container {
    overflow-x: auto;
    background: var(--admin-card-bg);
    border-radius: 10px;
    border: 2px solid var(--admin-border-color);
    box-shadow: var(--admin-shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead {
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.18), rgba(229, 9, 20, 0.06));
    transition: background 0.3s ease;
}


.admin-table th {
    padding: 12px 14px;
    text-align: left;
    color: var(--admin-text-primary);
    font-weight: 700;
    border-bottom: 1px solid var(--admin-border-color);
    transition: color 0.3s ease, border-color 0.3s ease;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--admin-text-secondary);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.admin-table tbody tr {
    transition: all 0.2s;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-1px);
}

.table-title {
    font-weight: 600;
    color: var(--admin-text-primary);
}

.table-date {
    color: var(--admin-text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--admin-text-secondary);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
    color: var(--admin-text-secondary);
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

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

.badge-success {
    background: rgba(67, 233, 123, 0.25);
    color: #43e97b;
    border: 1px solid rgba(67, 233, 123, 0.4);
    font-weight: 600;
}

.badge-danger {
    background: rgba(245, 87, 108, 0.25);
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.4);
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover, #f87171) 100%);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--admin-text-primary);
    border: 1px solid var(--admin-border-color);
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--admin-bg-tertiary);
    border-color: var(--admin-primary);
    color: var(--admin-text-primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--admin-border-color);
    color: var(--admin-text-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-icon:hover {
    background: var(--admin-hover-bg);
    color: var(--admin-primary);
    border-color: var(--admin-primary);
    transform: scale(1.1);
}

.btn-icon.btn-danger:hover {
    background: rgba(245, 87, 108, 0.2);
    color: #f5576c;
}

.btn-block {
    width: 100%;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(67, 233, 123, 0.25);
    color: #43e97b;
    border: 2px solid rgba(67, 233, 123, 0.5);
    font-weight: 600;
}

.alert-error {
    background: rgba(245, 87, 108, 0.25);
    color: #f5576c;
    border: 2px solid rgba(245, 87, 108, 0.5);
    font-weight: 600;
}

.alert-info {
    background: rgba(66, 165, 245, 0.25);
    color: #42a5f5;
    border: 2px solid rgba(66, 165, 245, 0.5);
    font-weight: 600;
}

.alert-warning {
    background: rgba(255, 167, 38, 0.25);
    color: #ffa726;
    border: 2px solid rgba(255, 167, 38, 0.5);
    font-weight: 600;
}

/* Login Page */
.admin-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: var(--admin-text-secondary);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: var(--admin-text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.login-footer a:hover {
    color: var(--primary-color);
}

/* Badge Improvements */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge i {
    font-size: 10px;
}

/* Admin Header Improvements */
.admin-header {
    background: var(--admin-bg-secondary);
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid var(--admin-border-color);
    box-shadow: var(--admin-shadow-sm);
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 4px;
}

.admin-header-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    box-shadow: var(--admin-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.admin-header-indicator i {
    font-size: 12px;
}

.admin-header-indicator span {
    line-height: 1;
}

.admin-header-indicator:hover {
    transform: translateY(-1px);
    box-shadow: var(--admin-shadow-md);
    filter: brightness(1.05);
}

.admin-header-indicator-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.admin-header-indicator-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.admin-header-indicator-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.admin-header-center {
    flex: 1;
    min-width: 260px;
    display: flex;
    justify-content: center;
}

.admin-quick-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--admin-bg-tertiary);
    border: 1px solid var(--admin-border-color);
    max-width: 520px;
    width: 100%;
    box-shadow: var(--admin-shadow-sm);
}

.admin-quick-search-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-text-muted);
    font-size: 13px;
}

.admin-quick-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--admin-text-primary);
    font-size: 14px;
    padding: 6px 4px;
    min-width: 0;
}

.admin-quick-search-input::placeholder {
    color: var(--admin-text-muted);
}

.admin-quick-search-input:focus {
    outline: none;
}

.admin-quick-search-btn {
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    background: var(--primary-color);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-quick-search-btn:hover {
    background: var(--primary-hover, var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.admin-view-site-btn i {
    font-size: 13px;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--admin-bg-tertiary);
    border: 1px solid var(--admin-border-color);
    border-radius: 20px;
    color: var(--admin-text-primary);
    font-size: 14px;
    font-weight: 600;
}

.admin-user-info i {
    font-size: 18px;
    color: var(--primary-color);
}

/* Menu Toggle Button */
.admin-menu-toggle {
    display: none;
    background: var(--admin-bg-secondary);
    border: 2px solid var(--admin-border-color);
    color: var(--admin-text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1001;
}

.admin-menu-toggle:hover {
    background: var(--admin-hover-bg);
    border-color: var(--admin-primary);
    color: var(--admin-primary);
}

.admin-menu-toggle:active {
    transform: scale(0.95);
}

.admin-menu-toggle i {
    display: block;
}

/* Responsive - Tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .admin-header-center {
        min-width: 200px;
    }
    
    .admin-quick-search {
        max-width: 400px;
    }
    
    .admin-header-actions {
        gap: 12px;
    }
    
    .admin-user-info {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .admin-username-text .admin-user-role {
        display: none;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    .admin-wrapper {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        display: block !important;
        position: relative;
    }
    
    /* Forçar que todos os elementos filhos ocupem 100% da largura */
    .admin-wrapper > * {
        max-width: 100% !important;
    }
    
    .admin-menu-toggle {
        display: flex !important;
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
        z-index: 1001;
    }
    
    .admin-sidebar {
        width: 280px;
        max-width: 85vw;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.7);
    }
    
    .admin-sidebar-overlay.active {
        display: block;
    }
    
    .admin-main {
        margin-left: 0 !important;
        padding: 12px 16px;
        max-width: 100%;
        width: 100% !important;
        overflow-x: hidden;
        flex: 1 1 100%;
    }
    
    /* Garantir que a sidebar não empurre o conteúdo */
    .admin-sidebar {
        position: fixed !important;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        z-index: 999;
        width: 280px;
        max-width: 85vw;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    /* Garantir que o wrapper não tenha overflow e não seja flex no mobile */
    .admin-wrapper {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        display: block !important;
    }
    
    /* Garantir que admin-body também não seja flex no mobile */
    .admin-body,
    .admin-container {
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 16px;
        margin-bottom: 16px;
        border-radius: 12px;
        position: sticky;
        top: 0;
        z-index: 100;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .admin-header-left {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
        min-width: 0;
        order: 1;
        width: 100%;
    }
    
    .admin-header-title-group {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .admin-header h1 {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        line-height: 1.3;
        max-width: 100%;
    }
    
    .admin-header-subtitle {
        display: none;
    }
    
    .admin-header-center {
        order: 3;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
    }
    
    .admin-quick-search {
        max-width: 100%;
        width: 100%;
        padding: 8px 12px;
    }
    
    .admin-quick-search-input {
        font-size: 14px;
    }
    
    .admin-quick-search-btn {
        padding: 6px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .admin-header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
        order: 2;
        justify-content: flex-end;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .admin-header-actions::-webkit-scrollbar {
        display: none;
    }
    
    .admin-header-indicators {
        gap: 6px;
        margin-right: 0;
    }
    
    .admin-header-indicator {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
    
    .admin-header-indicator span {
        font-size: 11px;
        font-weight: 700;
    }
    
    .admin-user-info {
        display: none;
    }
    
    .admin-view-site-btn,
    #admin-shortcuts-btn,
    #admin-theme-toggle {
        padding: 8px 10px;
        min-width: 40px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .admin-view-site-btn .btn-text,
    #admin-shortcuts-btn .btn-text,
    #admin-theme-toggle .btn-text {
        display: none;
    }
    
    .admin-view-site-btn i,
    #admin-shortcuts-btn i,
    #admin-theme-toggle i {
        margin: 0;
        font-size: 16px;
    }
    
    .admin-header-actions .btn {
        padding: 8px 10px;
        min-width: 40px;
        min-height: 40px;
        font-size: 13px;
    }
    
    .admin-header-actions .btn i {
        margin: 0;
        font-size: 16px;
    }
    
    .admin-header-actions a[href="/admin/logout.php"] {
        padding: 8px 10px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .admin-header-actions a[href="/admin/logout.php"] .btn-text {
        display: none;
    }
    
    .admin-header-actions a[href="/admin/logout.php"] i {
        margin: 0;
        font-size: 16px;
    }
    
    /* Melhorias de acessibilidade e toque */
    .admin-header-actions button,
    .admin-header-actions a,
    .admin-menu-toggle,
    .admin-sidebar-nav a {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .admin-header-actions button:active,
    .admin-header-actions a:active,
    .admin-menu-toggle:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Melhorias na sidebar mobile */
    .admin-sidebar-nav a {
        min-height: 48px; /* Touch target mínimo */
        padding: 14px 20px;
    }
    
    .admin-sidebar-nav a i {
        min-width: 24px;
    }
    
    /* Melhorias em links e botões gerais mobile */
    a, button {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Prevenir zoom em inputs no iOS */
    @supports (-webkit-touch-callout: none) {
        .form-group input[type="text"],
        .form-group input[type="search"],
        .form-group input[type="email"],
        .form-group input[type="number"],
        .form-group textarea,
        .admin-quick-search-input {
            font-size: 16px !important;
        }
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card-value {
        font-size: 24px;
    }
    
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    .admin-table-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .admin-table-container::-webkit-scrollbar-track {
        background: var(--admin-bg-secondary);
        border-radius: 3px;
    }
    
    .admin-table-container::-webkit-scrollbar-thumb {
        background: var(--admin-border-color);
        border-radius: 3px;
    }
    
    .admin-table {
        min-width: 600px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .admin-table th {
        font-size: 12px;
        white-space: nowrap;
    }
    
    .action-buttons {
        flex-wrap: nowrap;
        gap: 6px;
    }
    
    .action-buttons .btn,
    .action-buttons .btn-icon {
        min-width: 36px;
        min-height: 36px;
        padding: 8px;
    }
    
    /* Melhorias em cards mobile */
    .admin-card {
        border-radius: 12px;
        overflow: hidden;
    }
    
    .admin-card-header {
        padding: 16px;
        flex-wrap: wrap;
    }
    
    .admin-card-body {
        padding: 16px;
    }
    
    /* Melhorias em stat cards mobile */
    .stat-card {
        padding: 16px;
        gap: 16px;
    }
    
    .stat-card-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .stat-card-value {
        font-size: 22px;
    }
    
    .stat-card-label {
        font-size: 11px;
    }
    
    /* Melhorias em formulários mobile */
    .admin-form {
        gap: 16px;
    }
    
    .form-group {
        gap: 8px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    /* Melhorias em botões mobile */
    .btn {
        min-height: 44px; /* Touch target mínimo */
        padding: 12px 20px;
        font-size: 15px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    .btn:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }
    
    .btn-sm {
        min-height: 40px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Melhorias em cards de conteúdo mobile */
    .new-content-card {
        transition: transform 0.2s ease;
    }
    
    .new-content-card:active {
        transform: scale(0.98);
    }
    
    /* Melhorias em tabelas mobile - scroll horizontal melhorado */
    .admin-table-container {
        position: relative;
    }
    
    .admin-table-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to left, var(--admin-bg-secondary), transparent);
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
        z-index: 1;
    }
    
    .admin-table-container.scrollable::after {
        opacity: 1;
    }
    
    /* Melhorias em modais mobile */
    .modal {
        padding: 10px;
    }
    
    .modal-dialog {
        max-width: 100%;
        margin: 20px auto;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    /* Melhorias em toasts mobile */
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .toast {
        width: 100%;
        min-width: auto;
    }
    
    /* Melhorias em empty states mobile */
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-state i {
        font-size: 48px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
    
    /* Melhorias em paginação mobile */
    .pagination-wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .pagination-info {
        text-align: center;
        width: 100%;
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Melhorias em filtros mobile */
    .admin-filters {
        padding: 16px;
    }
    
    .admin-filters-content {
        gap: 12px;
    }
    
    .admin-filters-actions {
        flex-direction: column;
    }
    
    .admin-filters-actions .btn {
        width: 100%;
    }
    
    /* Melhorias em grids mobile */
    .stats-grid {
        gap: 12px;
    }
    
    .dashboard-grid {
        gap: 12px;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .new-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    /* Melhorias em alertas mobile */
    .alert-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
    
    .alert-item-content {
        width: 100%;
    }
    
    .alert-item a {
        width: 100%;
        justify-content: center;
    }
    
    /* Melhorias em badges mobile */
    .badge {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    /* Melhorias em paginação mobile */
    .pagination {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
    
    /* CORREÇÃO CRÍTICA: Garantir que o conteúdo ocupe toda a largura */
    .admin-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .admin-wrapper > * {
        box-sizing: border-box;
    }
    
    /* Garantir que a sidebar não ocupe espaço no fluxo */
    .admin-wrapper > aside,
    .admin-wrapper > .admin-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        transform: translateX(-100%) !important;
        z-index: 999;
    }
    
    .admin-wrapper > aside.active,
    .admin-wrapper > .admin-sidebar.active {
        transform: translateX(0) !important;
    }
    
    /* Garantir que o main ocupe 100% da largura */
    .admin-wrapper > main,
    .admin-wrapper > .admin-main {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Garantir que todos os elementos internos também ocupem 100% */
    .admin-content,
    .admin-header,
    .admin-card,
    .admin-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 8px 10px;
    }
    
    .admin-header {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 10px;
        position: sticky;
        top: 0;
        z-index: 100;
        margin-bottom: 12px;
    }
    
    .admin-header-left {
        gap: 8px;
    }
    
    .admin-header h1 {
        font-size: 16px;
    }
    
    .admin-menu-toggle {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .admin-header-actions {
        gap: 4px;
    }
    
    .admin-header-indicator {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 11px;
    }
    
    .admin-header-indicator i {
        font-size: 12px;
    }
    
    .admin-header-indicator span {
        font-size: 10px;
    }
    
    .admin-view-site-btn,
    #admin-shortcuts-btn,
    #admin-theme-toggle,
    .admin-header-actions .btn,
    .admin-header-actions a[href="/admin/logout.php"] {
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .admin-view-site-btn i,
    #admin-shortcuts-btn i,
    #admin-theme-toggle i,
    .admin-header-actions .btn i,
    .admin-header-actions a[href="/admin/logout.php"] i {
        font-size: 16px;
    }
    
    .admin-quick-search {
        padding: 6px 10px;
    }
    
    .admin-quick-search-input {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 6px 4px;
    }
    
    .admin-quick-search-btn {
        padding: 6px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .admin-content {
        padding: 0;
    }
    
    .admin-card {
        border-radius: 10px;
        margin-bottom: 12px;
    }
    
    .admin-card-header {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .admin-card-body {
        padding: 12px;
    }
    
    .stat-card {
        padding: 14px;
        gap: 12px;
    }
    
    .stat-card-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .stat-card-value {
        font-size: 20px;
    }
    
    .stat-card-label {
        font-size: 10px;
    }
    
    /* Tabelas em telas muito pequenas */
    .admin-table {
        min-width: 500px;
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    /* Formulários em telas muito pequenas */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    /* Botões em telas muito pequenas */
    .btn {
        min-height: 44px;
        padding: 12px 18px;
    }
    
    .btn-sm {
        min-height: 40px;
        padding: 10px 14px;
    }
    
    /* Grids em telas muito pequenas */
    .new-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .new-content-poster {
        height: 150px;
    }
    
    .new-content-info {
        padding: 12px;
    }
    
    .new-content-title {
        font-size: 13px;
    }
    
    /* Quick actions em telas muito pequenas */
    .quick-action-btn {
        padding: 16px;
        gap: 12px;
    }
    
    .quick-action-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .quick-action-title {
        font-size: 15px;
    }
    
    .quick-action-subtitle {
        font-size: 12px;
    }
}

/* Filtros Avançados */
.admin-filters {
    padding: 24px;
    border-bottom: 2px solid var(--admin-border-color);
    background: var(--admin-bg-secondary);
    border-radius: 0;
}

.admin-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--admin-border-color);
}

.admin-filters-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--admin-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-filters-header h3 i {
    color: var(--admin-primary);
}

.admin-filters-toggle {
    background: transparent;
    border: 1px solid var(--admin-border);
    color: var(--admin-text-light);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-filters-toggle:hover {
    background: var(--admin-bg);
    border-color: var(--admin-primary);
    color: var(--admin-primary);
}

.admin-filters-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.admin-filters-content.collapsed {
    display: none;
}

.admin-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-filter-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--admin-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-filter-group .form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--admin-border-color);
    border-radius: 8px;
    color: var(--admin-text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.admin-filter-group .form-control:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.admin-filter-group .form-control::placeholder {
    color: var(--admin-text-secondary);
    opacity: 0.7;
}

.admin-filters-actions {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
}

.admin-filters-actions .btn {
    white-space: nowrap;
    padding: 10px 20px;
    height: fit-content;
}

/* Filtros Compactos (Inline) */
.search-form-inline {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.search-form-inline .form-control {
    flex: 1;
    min-width: 180px;
}

.search-form-inline.compact {
    gap: 8px;
}

.search-form-inline.compact .form-control {
    min-width: 150px;
    padding: 8px 12px;
    font-size: 13px;
}

/* Filtros em Grid */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    background: var(--admin-bg-secondary);
    border-bottom: 1px solid var(--admin-border);
}

.filters-grid .filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filters-grid .filter-item label {
    font-size: 12px;
    font-weight: 700;
    color: var(--admin-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filters-grid .filter-item .form-control {
    width: 100%;
}

.filters-grid .filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
    grid-column: 1 / -1;
}

/* Badge de Filtro Ativo */
.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--admin-primary);
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
}

.filter-badge .remove {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.filter-badge .remove:hover {
    opacity: 1;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(229, 9, 20, 0.1);
    border-bottom: 2px solid var(--admin-border-color);
}

.active-filters-label {
    font-size: 13px;
    color: var(--admin-text-secondary);
    font-weight: 600;
    margin-right: 8px;
}

/* Responsive para Filtros */
@media (max-width: 768px) {
    .admin-filters-content {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .filters-grid .filter-actions {
        grid-column: 1;
    }
    
    .search-form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form-inline .form-control {
        min-width: 100%;
    }
    
    .admin-filters-actions {
        width: 100%;
    }
    
    .admin-filters-actions .btn {
        flex: 1;
    }
    
    .quick-action-btn {
        padding: 15px;
    }
    
    .quick-action-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .quick-action-title {
        font-size: 14px;
    }
    
    .quick-action-subtitle {
        font-size: 12px;
    }
}

/* Quick Action Buttons */
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
}

.quick-action-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;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.quick-action-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.quick-action-content {
    flex: 1;
    min-width: 0;
}

.quick-action-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.quick-action-subtitle {
    font-size: 13px;
    opacity: 0.9;
    color: white;
}

.quick-action-arrow {
    font-size: 18px;
    opacity: 0.7;
    transition: all 0.3s;
    flex-shrink: 0;
}

.quick-action-btn:hover .quick-action-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* ============================================
   DASHBOARD - COMPONENTES ESPECÍFICOS
   ============================================ */

/* Card Body */
.admin-card-body {
    padding: 24px;
}

/* Alertas e Notificações */
.admin-card-alerts {
    border-left: 4px solid #f59e0b;
    margin-top: 30px;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid;
    transition: all var(--transition-base);
    gap: 20px;
}

.alert-item:hover {
    transform: translateX(4px);
    box-shadow: var(--admin-shadow-md);
}

.alert-item-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
}

.alert-item-info {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
}

.alert-item-purple {
    background: rgba(139, 92, 246, 0.1);
    border-left-color: #8b5cf6;
}

.alert-item-success {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
}

.alert-item-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.alert-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.alert-icon-warning {
    background: #f59e0b;
}

.alert-icon-info {
    background: #3b82f6;
}

.alert-icon-purple {
    background: #8b5cf6;
}

.alert-icon-success {
    background: #22c55e;
}

.alert-item-info {
    flex: 1;
    min-width: 0;
}

.alert-item-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--admin-text-primary);
    margin-bottom: 4px;
}

.alert-item-subtitle {
    font-size: 14px;
    color: var(--admin-text-secondary);
}

/* Ações Rápidas */
.admin-card-quick-actions {
    margin-top: 30px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: white;
    transition: all var(--transition-base);
    box-shadow: var(--admin-shadow-sm);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.quick-action-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;
}

.quick-action-btn:hover::before {
    left: 100%;
}

.quick-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--admin-shadow-lg);
    border-color: rgba(255, 255, 255, 0.3);
}

.quick-action-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring), var(--admin-shadow-lg);
}

.quick-action-movies {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quick-action-series {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.quick-action-import {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.quick-action-episodes {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.quick-action-stats {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.quick-action-channels {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quick-action-content {
    flex: 1;
    min-width: 0;
}

.quick-action-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
}

.quick-action-subtitle {
    font-size: 14px;
    opacity: 0.9;
    color: white;
}

.quick-action-arrow {
    font-size: 20px;
    opacity: 0.7;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.quick-action-btn:hover .quick-action-arrow {
    opacity: 1;
    transform: translateX(6px);
}

/* Conteúdo Novo */
.admin-card-new-content {
    margin-top: 30px;
    border-left: 4px solid #22c55e;
}

.admin-card-new-content .admin-card-header-title i {
    color: #22c55e;
}

.new-content-section {
    margin-bottom: 40px;
}

.new-content-section:last-child {
    margin-bottom: 0;
}

.new-content-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--admin-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--admin-border-color);
}

.new-content-section-title i {
    color: var(--admin-primary);
    font-size: 18px;
}

.new-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 18px;
}

.new-content-card {
    background: var(--admin-card-bg);
    border: 2px solid var(--admin-border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--admin-shadow-sm);
}

.new-content-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--admin-shadow-lg);
    border-color: var(--admin-primary);
}

.new-content-poster {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--admin-bg-secondary);
    position: relative;
}

.new-content-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.new-content-card:hover .new-content-poster img {
    transform: scale(1.1);
}

.new-content-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-text-muted);
}

.new-content-placeholder i {
    font-size: 48px;
    opacity: 0.4;
}

.new-content-info {
    padding: 16px;
}

.new-content-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--admin-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.new-content-year {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: var(--admin-text-secondary);
    font-weight: 500;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Gráfico */
.admin-card-chart {
    margin-top: 30px;
}

.activity-chart-container {
    position: relative;
    height: 300px;
    margin-top: 20px;
    width: 100%;
}

.activity-chart-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-legend-color {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
}

.chart-legend-movies {
    background: var(--admin-primary);
}

.chart-legend-series {
    background: #22c55e;
}

.chart-legend-users {
    background: #8b5cf6;
}

.chart-legend-item span {
    font-size: 14px;
    color: var(--admin-text-secondary);
    font-weight: 500;
}

/* Stat Card Alert */
.stat-card-alert {
    border-left: 4px solid #f59e0b;
}

.stat-badge-link {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

.stat-badge-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Botões de Ação */
.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-info:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-success {
    background: #22c55e;
    color: white;
}

.btn-success:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

/* ============================================
   PÁGINA DE IMPORTAÇÃO DA API
   ============================================ */

/* Alertas */
.api-import-alert {
    margin-bottom: 24px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.api-import-alert i {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid #22c55e;
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #ef4444;
    color: #ef4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid #f59e0b;
    color: #f59e0b;
}

/* Formulário de Busca */
.api-search-form {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--admin-border-color);
}

.form-group-type {
    min-width: 150px;
}

.form-group-search {
    flex: 1;
}

.form-group-submit {
    display: flex;
    align-items: flex-end;
}

.form-help-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--admin-text-muted);
    font-style: italic;
}

.btn-search {
    min-width: 120px;
}

/* Seção de Resultados */
.search-results-section {
    margin-top: 40px;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--admin-border-color);
}

.search-results-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--admin-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.search-results-controls {
    display: flex;
    gap: 10px;
}

/* Grid de Resultados */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* Cards de Resultado */
.result-card {
    background: var(--admin-card-bg);
    border: 2px solid var(--admin-border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--admin-shadow-sm);
    display: flex;
    flex-direction: column;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--admin-shadow-lg);
    border-color: var(--admin-primary);
}

.result-card-imported {
    opacity: 0.7;
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.result-card-poster {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--admin-bg-secondary);
}

.result-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.result-card:hover .result-card-poster img {
    transform: scale(1.1);
}

.result-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-text-muted);
    font-size: 48px;
    opacity: 0.3;
}

.result-card-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: #ffd700;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.result-card-rating i {
    font-size: 12px;
}

.result-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--admin-text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-card-year {
    margin: 0;
    font-size: 13px;
    color: var(--admin-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-card-badge {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border-left: 3px solid;
}

.result-badge-duplicate {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: #f59e0b;
    color: #f59e0b;
}

.result-badge-available {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
    color: #22c55e;
}

.result-badge-unavailable {
    background: rgba(255, 152, 0, 0.1);
    border-left-color: #ff9800;
    color: #ff9800;
}

.result-badge-success {
    background: rgba(34, 197, 94, 0.1);
    border-left-color: #22c55e;
    color: #22c55e;
}

.result-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.result-card-actions .btn {
    width: 100%;
    justify-content: center;
}

.result-card-actions .btn span {
    margin-left: 6px;
}

/* Status de Importação */
.import-status {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-align: center;
}

.import-status-success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid #22c55e;
    color: #22c55e;
}

/* Seção de Importação Direta */
.direct-import-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--admin-border-color);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--admin-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
}

.direct-import-form {
    margin-top: 20px;
}

.form-group-id {
    flex: 1;
}

/* Preview Modal */
.preview-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
}

.preview-poster {
    width: 200px;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--admin-bg-secondary);
    flex-shrink: 0;
}

.preview-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-text-muted);
    font-size: 64px;
    opacity: 0.3;
}

.preview-info h3 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--admin-text-primary);
}

.preview-overview {
    margin: 0 0 20px 0;
    color: var(--admin-text-secondary);
    line-height: 1.6;
    font-size: 15px;
}

.preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.preview-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--admin-text-secondary);
    font-size: 14px;
}

.preview-meta i {
    color: var(--admin-primary);
}

.preview-loading {
    text-align: center;
    padding: 40px;
    color: var(--admin-text-secondary);
}

.preview-loading i {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--admin-primary);
}

/* Responsividade Importação */
@media (max-width: 1024px) {
    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .preview-content {
        grid-template-columns: 1fr;
    }
    
    .preview-poster {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

/* Assistente de Importação TMDB */
.import-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.import-step {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.15), transparent 55%),
                rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.import-step-active {
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.9), 0 10px 30px rgba(15, 23, 42, 0.9);
    background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.28), transparent 60%),
                rgba(15, 23, 42, 0.95);
}

.import-step-index {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #e5e7eb;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.95);
}

.import-step-text strong {
    display: block;
    font-size: 13px;
    color: #e5e7eb;
    margin-bottom: 2px;
}

.import-step-text span {
    display: block;
    font-size: 12px;
    color: #9ca3af;
}

.stats-month-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
}

.stats-month-card {
    text-align: center;
    padding: 10px 8px;
    border-radius: 10px;
    background: radial-gradient(circle at top, rgba(148, 163, 184, 0.12), transparent 60%),
                rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.stats-month-label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.stats-month-total {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color, #6366f1);
    margin-bottom: 2px;
}

.stats-month-total-users {
    color: #10b981;
}

.stats-month-detail {
    font-size: 10px;
    line-height: 1.3;
    color: #9ca3af;
}

@media (max-width: 900px) {
    .import-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .result-card-poster {
        height: 240px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group-submit {
        align-items: stretch;
    }
    
    .btn-search,
    #directImportBtn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-card-actions .btn span {
        display: none;
    }
}

/* Responsividade Dashboard */
@media (max-width: 1024px) {
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }

    .new-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .alerts-list {
        gap: 12px;
    }

    .alert-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .alert-item a {
        width: 100%;
        justify-content: center;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .new-content-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .chart-legend {
        gap: 20px;
    }
}

/* Content Popover */
.content-hover-trigger {
    cursor: help;
    position: relative;
    transition: color 0.2s;
}

.content-hover-trigger:hover {
    color: var(--admin-primary);
}

.content-popover {
    display: none;
    position: absolute;
    width: 400px;
    max-width: 90vw;
    background: var(--card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow: hidden;
    animation: popoverFadeIn 0.2s ease;
}

@keyframes popoverFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.content-popover-arrow {
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--card-bg);
    z-index: 1;
}

.content-popover-arrow::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--admin-border);
    z-index: -1;
}

.content-popover-header {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(20, 20, 20, 0.9) 100%);
    border-bottom: 1px solid var(--admin-border);
}

.content-popover-poster {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.content-popover-header-info {
    flex: 1;
    min-width: 0;
}

.content-popover-header-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--admin-text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-popover-subtitle {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: var(--admin-text-light);
    font-style: italic;
}

.content-popover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.content-popover-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--admin-text-primary);
}

.content-popover-rating {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.content-popover-body {
    padding: 20px;
}

.content-popover-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.genre-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--admin-primary);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.content-popover-overview {
    margin: 0 0 15px 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--admin-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-popover-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--admin-border);
}

.content-popover-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.content-popover-status.status-active {
    color: #22c55e;
}

.content-popover-status.status-active i {
    color: #22c55e;
    font-size: 8px;
}

.content-popover-status.status-inactive {
    color: #ef4444;
}

.content-popover-status.status-inactive i {
    color: #ef4444;
    font-size: 8px;
}

.content-popover-votes {
    font-size: 12px;
    color: var(--admin-text-light);
}

@media (max-width: 768px) {
    .content-popover {
        width: 320px;
        max-width: 85vw;
    }
    
    .content-popover-header {
        padding: 15px;
    }
    
    .content-popover-poster {
        width: 60px;
        height: 90px;
    }
    
    .content-popover-header-info h3 {
        font-size: 16px;
    }
}

/* Image Preview */
.image-preview-container {
    position: relative;
    display: inline-block;
    border: 2px solid var(--admin-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--admin-bg-secondary);
}

.image-preview {
    display: block;
    max-width: 300px;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.image-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.image-preview-remove:hover {
    background: rgba(220, 38, 38, 0.9);
    transform: scale(1.1);
}

/* Paginação Melhorada */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid var(--admin-border);
    background: var(--admin-bg-secondary);
}

.pagination-info {
    color: var(--admin-text-light);
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: var(--admin-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.pagination-btn:hover {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
    color: white;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--admin-primary);
    border-color: var(--admin-primary);
    color: white;
    font-weight: 600;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: var(--admin-text-light);
    user-select: none;
}

@media (max-width: 768px) {
    .pagination-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-info {
        text-align: center;
        width: 100%;
    }
    
    .pagination {
        justify-content: center;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 14px;
    }
}

/* ============================================
   SISTEMA DE TOASTS (Notificações) - Admin
   ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
    width: 100%;
}

.toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border-color);
    border-radius: 12px;
    box-shadow: var(--admin-shadow-lg);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    min-width: 300px;
    max-width: 100%;
    overflow: hidden;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 50%;
}

.toast-success .toast-icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.toast-error .toast-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.toast-warning .toast-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.toast-info .toast-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}

.toast-loading .toast-icon {
    color: var(--admin-primary);
    background: rgba(229, 9, 20, 0.15);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--admin-text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.toast-message {
    font-size: 14px;
    color: var(--admin-text-secondary);
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--admin-text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    padding: 0;
    margin-left: auto;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--admin-text-primary);
}

.toast-close:focus-visible {
    outline: 2px solid var(--admin-primary);
    outline-offset: 2px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.toast-success .toast-progress {
    background: rgba(34, 197, 94, 0.3);
}

.toast-error .toast-progress {
    background: rgba(239, 68, 68, 0.3);
}

.toast-warning .toast-progress {
    background: rgba(245, 158, 11, 0.3);
}

.toast-info .toast-progress {
    background: rgba(59, 130, 246, 0.3);
}

.toast-loading .toast-progress {
    background: rgba(229, 9, 20, 0.3);
}

@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* ============================================
   SISTEMA DE MODAIS - Admin
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-show {
    opacity: 1;
    pointer-events: all;
}

.modal-hide {
    opacity: 0;
    pointer-events: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--admin-overlay);
    backdrop-filter: blur(4px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-show .modal-dialog {
    transform: scale(1);
}

.modal-content {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border-color);
    border-radius: 16px;
    box-shadow: var(--admin-shadow-lg);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--admin-border-color);
    flex-shrink: 0;
}

.modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--admin-text-primary);
    line-height: 1.3;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--admin-text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    padding: 0;
    margin-left: 16px;
}

.modal-close:hover {
    background: var(--admin-hover-bg);
    color: var(--admin-text-primary);
}

.modal-close:focus-visible {
    outline: 2px solid var(--admin-primary);
    outline-offset: 2px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    color: var(--admin-text-secondary);
    line-height: 1.6;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--admin-border-color);
    flex-shrink: 0;
}

.modal-footer .btn {
    min-width: 100px;
}

.modal-small .modal-dialog {
    max-width: 400px;
}

.modal-medium .modal-dialog {
    max-width: 500px;
}

.modal-large .modal-dialog {
    max-width: 800px;
}

.modal-fullscreen .modal-dialog {
    max-width: 95vw;
    max-height: 95vh;
}

.modal-fullscreen .modal-content {
    max-height: 95vh;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-dialog {
        max-width: 100%;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 20px;
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .modal-large .modal-dialog,
    .modal-fullscreen .modal-dialog {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 16px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-body {
        padding: 16px;
        font-size: 14px;
    }

    .modal-footer {
        padding: 16px;
    }
}

/* Modal genérico para o Dashboard (SuperFlixAPI Import) */
.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--admin-overlay, rgba(0,0,0,0.7));
    backdrop-filter: blur(4px);
}

.admin-modal-dialog {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    background: var(--admin-card-bg);
    border-radius: 16px;
    box-shadow: var(--admin-shadow-lg);
    border: 1px solid var(--admin-border-color);
    overflow: hidden;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--admin-border-color);
}

.admin-modal-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--admin-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-modal-header h2 i {
    color: var(--primary-color);
}

.admin-modal-close {
    background: transparent;
    border: none;
    color: var(--admin-text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
}

.admin-modal-close:hover {
    color: var(--admin-text-primary);
}

.admin-modal-body {
    padding: 0;
    background: var(--admin-bg-secondary);
}

/* Badges de disponibilidade (SuperFlixAPI) */
.availability-badge {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.availability-badge-success {
    color: var(--primary-color);
}

.availability-badge-warning {
    color: #ffb020;
}

/* Links inline usados em mensagens/toasts */
.link-inline {
    color: #ffffff;
    text-decoration: underline;
    margin-left: 10px;
}

[data-theme="light"] .link-inline {
    color: var(--admin-text-primary);
}

.link-inline:hover {
    color: var(--primary-hover, var(--primary-color));
}

/* =========================================================
   ADMIN V2 - LAYOUT RADICALMENTE MODERNO (OVERRIDES)
   ========================================================= */

body.admin-body,
.admin-wrapper {
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.20), transparent 55%),
        radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.20), transparent 55%),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 45%),
        #020617;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

/* Admin V2 - Override do wrapper (já definido acima, apenas ajuste de display) */
@media (min-width: 769px) {
    .admin-wrapper {
        display: flex;
    }
}

@media (max-width: 768px) {
    .admin-wrapper {
        display: block !important;
    }
}

/* Admin V2 - Sidebar fixa no desktop */
.admin-sidebar {
    width: 260px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.96) 45%, rgba(2, 6, 23, 0.98) 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(18px);
    box-shadow: 0 0 35px rgba(15, 23, 42, 0.95);
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
}

/* Sidebar no modo claro */
[data-theme="light"] .admin-sidebar {
    background: var(--admin-sidebar-bg);
    border-right: 1px solid var(--admin-border-color);
    box-shadow: var(--admin-shadow-md);
}

.admin-sidebar-header {
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.04), transparent);
    flex-shrink: 0; /* Não encolhe */
}

.admin-sidebar-header h2 {
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--admin-text-primary);
}

[data-theme="light"] .admin-sidebar-header {
    border-bottom: 1px solid var(--admin-border-color);
    background: var(--admin-bg-secondary);
}

.admin-sidebar-nav {
    padding: 18px 0 22px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* Permite que o flex funcione corretamente */
}

.admin-sidebar-nav a {
    padding: 9px 20px;
    border-radius: 999px;
    margin: 2px 12px;
}

.admin-sidebar-nav a::before {
    display: none;
}

.admin-sidebar-nav a:hover {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.55);
}

[data-theme="light"] .admin-sidebar-nav a:hover {
    background: var(--admin-hover-bg);
    box-shadow: 0 0 0 1px var(--admin-border-hover);
}

.admin-sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.22), rgba(147, 51, 234, 0.22));
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.65), 0 12px 35px rgba(15, 23, 42, 0.95);
    transform: translateY(-1px);
}

[data-theme="light"] .admin-sidebar-nav a.active {
    background: var(--admin-active-bg);
    box-shadow: 0 0 0 1px var(--admin-border-active), var(--admin-shadow-sm);
}

.admin-main {
    margin-left: 260px;
    padding: 28px 40px 40px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .admin-main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 12px 16px !important;
    }
}

.admin-content {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto 40px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .admin-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }
}

.admin-header {
    background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.06), transparent 55%);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.9);
}

[data-theme="light"] .admin-header {
    background: var(--admin-bg-secondary);
    border: 1px solid var(--admin-border-color);
    box-shadow: var(--admin-shadow-md);
}

.admin-card {
    background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.04), transparent 55%),
                rgba(15, 23, 42, 0.96);
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.95);
}

[data-theme="light"] .admin-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border-color);
    box-shadow: var(--admin-shadow-md);
}

.admin-card-header {
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

[data-theme="light"] .admin-card-header {
    background: var(--admin-bg-secondary);
    border-bottom: 1px solid var(--admin-border-color);
}

.admin-card-body {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.98));
}

[data-theme="light"] .admin-card-body {
    background: var(--admin-bg-primary);
}

.stat-card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.06), transparent 55%),
                rgba(15, 23, 42, 0.96);
}

[data-theme="light"] .stat-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border-color);
}

.admin-table-container {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 16px 55px rgba(15, 23, 42, 0.96);
}

[data-theme="light"] .admin-table-container {
    background: var(--admin-bg-primary);
    border: 1px solid var(--admin-border-color);
    box-shadow: var(--admin-shadow-sm);
}

.admin-table thead {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.3), rgba(236, 72, 153, 0.3), rgba(59, 130, 246, 0.28));
}

.admin-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.96);
}

.admin-table tbody tr:nth-child(odd) {
    background: rgba(15, 23, 42, 0.9);
}

[data-theme="light"] .admin-table tbody tr:nth-child(even) {
    background: var(--admin-bg-primary);
}

[data-theme="light"] .admin-table tbody tr:nth-child(odd) {
    background: var(--admin-bg-secondary);
}

.btn {
    border-radius: 999px;
}

.btn-primary {
    box-shadow: 0 10px 35px rgba(248, 113, 113, 0.45);
}

.btn-secondary {
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.75);
}

.btn-icon {
    border-radius: 999px;
}

.badge {
    border-radius: 999px;
}

/* Tabs / Subheaders / Bulk actions – padrão admin v2 */
.admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--admin-border);
    margin-top: 16px;
}

.admin-tab {
    padding: 12px 18px;
    text-decoration: none;
    color: var(--admin-text-light);
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.admin-tab i {
    font-size: 13px;
}

.admin-tab:hover {
    color: var(--admin-text-primary);
    background: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .admin-tab:hover {
    background: var(--admin-hover-bg);
}

.admin-tab.active {
    color: var(--admin-primary);
    border-bottom-color: var(--admin-primary);
}

.admin-subheader-card {
    padding: 18px 20px;
    background: var(--admin-bg-secondary);
    border-radius: 14px;
    border: 1px solid var(--admin-border-color);
    margin-top: 20px;
}

.admin-subheader-card h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--admin-text-primary);
}

.admin-subheader-card p {
    margin: 0;
    font-size: 13px;
    color: var(--admin-text-light);
}

.admin-bulk-actions {
    margin: 20px 0;
    padding: 15px;
    background: var(--admin-bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--admin-border-color);
}

.admin-bulk-actions-inner {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================
   MELHORIAS DE CONTRASTE - PÁGINA UPDATES
   ============================================ */

/* Melhorar contraste de textos com opacidade no modo escuro */
.admin-content p,
.admin-content small,
.admin-card-body p,
.admin-card-body small {
    color: var(--admin-text-primary) !important;
}

.admin-content p[style*="opacity"],
.admin-card-body p[style*="opacity"] {
    opacity: 0.95 !important;
    color: var(--admin-text-secondary) !important;
}

.admin-content small[style*="opacity"],
.admin-card-body small[style*="opacity"] {
    opacity: 0.85 !important;
    color: var(--admin-text-secondary) !important;
}

/* Melhorar contraste de backgrounds com gradientes no modo escuro */
.admin-card-body [style*="background: linear-gradient"],
.admin-card-body [style*="background:rgba"] {
    background: rgba(26, 26, 26, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Melhorar contraste de elementos de informação (dicas, avisos) */
.admin-card-body [style*="background: rgba(163, 230, 53"],
.admin-card-body [style*="background:rgba(163, 230, 53"] {
    background: rgba(163, 230, 53, 0.2) !important;
    border: 1px solid rgba(163, 230, 53, 0.5) !important;
}

.admin-card-body [style*="background: rgba(225, 29, 255"],
.admin-card-body [style*="background:rgba(225, 29, 255"] {
    background: rgba(225, 29, 255, 0.15) !important;
    border-left: 4px solid rgba(225, 29, 255, 0.8) !important;
}

/* Melhorar contraste de textos dentro de elementos de informação */
.admin-card-body [style*="color: var(--text-color"],
.admin-card-body [style*="color:var(--text-color"] {
    color: var(--admin-text-primary) !important;
}

.admin-card-body [style*="color: var(--primary-color"],
.admin-card-body [style*="color:var(--primary-color"] {
    color: var(--primary-color) !important;
}

.admin-card-body [style*="color: #a3e635"],
.admin-card-body [style*="color:#a3e635"] {
    color: #a3e635 !important;
    font-weight: 600 !important;
}

/* Melhorar contraste de labels e textos de formulário */
.admin-card-body label strong {
    color: var(--admin-text-primary) !important;
    font-weight: 700 !important;
}

.admin-card-body label small {
    color: var(--admin-text-secondary) !important;
    opacity: 0.9 !important;
}

/* Melhorar contraste de textos em elementos de dica */
.admin-card-body h3[style*="color"],
.admin-card-body h4[style*="color"] {
    color: var(--admin-text-primary) !important;
    font-weight: 700 !important;
}

.admin-card-body h3[style*="color: var(--primary-color"],
.admin-card-body h3[style*="color:var(--primary-color"] {
    color: var(--primary-color) !important;
}

.admin-card-body h4[style*="color: #a3e635"],
.admin-card-body h4[style*="color:#a3e635"] {
    color: #a3e635 !important;
    font-weight: 700 !important;
}

/* Melhorar contraste de textos em listas */
.admin-card-body ul,
.admin-card-body ol {
    color: var(--admin-text-primary) !important;
}

.admin-card-body li {
    color: var(--admin-text-primary) !important;
    opacity: 0.95 !important;
}

/* Melhorar contraste de spans com cores específicas */
.admin-card-body span[style*="color: var(--primary-color"],
.admin-card-body span[style*="color:var(--primary-color"] {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

/* Melhorar contraste de elementos com bordas coloridas */
.admin-card-body [style*="border: 1px solid rgba(163, 230, 53"],
.admin-card-body [style*="border:1px solid rgba(163, 230, 53"] {
    border: 1px solid rgba(163, 230, 53, 0.6) !important;
    background: rgba(163, 230, 53, 0.18) !important;
}

/* Garantir que todos os textos dentro de cards sejam legíveis */
.admin-card-body * {
    color: inherit;
}

/* Melhorar contraste específico para página de updates */
.admin-content .admin-card-body p {
    color: var(--admin-text-primary) !important;
    line-height: 1.6;
}

.admin-content .admin-card-body p strong {
    color: var(--admin-text-primary) !important;
    font-weight: 700;
}

/* Melhorar contraste de elementos inline com estilos */
.admin-card-body [style*="opacity: 0.7"],
.admin-card-body [style*="opacity:0.7"] {
    opacity: 0.9 !important;
    color: var(--admin-text-secondary) !important;
}

.admin-card-body [style*="opacity: 0.9"],
.admin-card-body [style*="opacity:0.9"] {
    opacity: 1 !important;
    color: var(--admin-text-primary) !important;
}

/* Melhorar contraste de elementos com background transparente ou muito claro */
.admin-card-body [style*="background: rgba(255, 255, 255, 0.1"],
.admin-card-body [style*="background:rgba(255, 255, 255, 0.1"] {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Ajustes específicos para modo claro (manter compatibilidade) */
[data-theme="light"] .admin-card-body [style*="opacity"] {
    opacity: 0.8 !important;
}

[data-theme="light"] .admin-card-body p[style*="opacity"] {
    opacity: 0.9 !important;
    color: var(--admin-text-secondary) !important;
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA HERO SLIDER PAGE
   ============================================ */

/* Melhorar seção header */
.admin-section-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--admin-border-color);
}

.admin-section-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--admin-text-primary);
}

.admin-section-header h2 i {
    color: var(--admin-primary);
    font-size: 22px;
}

.admin-section-header p {
    color: var(--admin-text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Melhorar formulários */
.admin-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--admin-text-primary);
    font-size: 14px;
}

.admin-form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--admin-bg-secondary);
    border: 2px solid var(--admin-border-color);
    border-radius: 8px;
    color: var(--admin-text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-form-control:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 255, 0.1);
}

.admin-form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--admin-text-muted);
    line-height: 1.4;
}

.admin-form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--admin-primary);
}

.admin-form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    background: var(--admin-bg-secondary);
    border: 2px solid var(--admin-border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-form-group label:has(input[type="checkbox"]):hover {
    background: var(--admin-hover-bg);
    border-color: var(--admin-primary);
}

/* Botões de ação */
.admin-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--admin-border-color);
}

.admin-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.admin-btn-primary {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-hover, #f472ff));
    color: #000;
    box-shadow: 0 4px 12px rgba(225, 29, 255, 0.3);
}

.admin-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(225, 29, 255, 0.4);
}

.admin-btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.admin-btn-success {
    background: #10b981;
    color: #fff;
}

.admin-btn-secondary {
    background: var(--admin-bg-tertiary);
    color: var(--admin-text-primary);
    border: 2px solid var(--admin-border-color);
}

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

.admin-btn-danger:hover {
    background: #dc2626;
}

/* Busca de conteúdo */
#add_content_results {
    background: var(--admin-bg-secondary);
    border: 2px solid var(--admin-border-color);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

#add_content_results > div {
    display: grid;
    gap: 10px;
}

#add_content_results > div > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--admin-card-bg);
    border: 2px solid var(--admin-border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#add_content_results > div > div:hover {
    background: var(--admin-hover-bg);
    border-color: var(--admin-primary);
    transform: translateX(4px);
}

#add_content_results img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

#add_content_results > div > div > div {
    flex: 1;
    min-width: 0;
}

#add_content_results strong {
    display: block;
    color: var(--admin-text-primary);
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#add_content_results .fa-plus {
    color: var(--admin-primary);
    font-size: 18px;
    flex-shrink: 0;
}

/* Tabela de itens */
.admin-table-container {
    overflow-x: auto;
    margin-top: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--admin-card-bg);
    border-radius: 8px;
    overflow: hidden;
}

.admin-table thead {
    background: var(--admin-bg-tertiary);
}

.admin-table th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--admin-text-primary);
    border-bottom: 2px solid var(--admin-border-color);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--admin-border-color);
    color: var(--admin-text-secondary);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: all 0.3s ease;
}

.admin-table tbody tr:hover {
    background: var(--admin-hover-bg);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table .item-position {
    width: 70px;
    padding: 8px 12px;
    background: var(--admin-bg-secondary);
    border: 2px solid var(--admin-border-color);
    border-radius: 6px;
    color: var(--admin-text-primary);
    font-size: 14px;
    text-align: center;
}

.admin-table img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: var(--admin-shadow-sm);
}

/* Badges */
.admin-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-badge-primary {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-primary-hover, #f472ff));
    color: #000;
}

.admin-badge-info {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
}

/* Estado vazio */
.admin-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--admin-text-muted);
}

.admin-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.admin-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Cards de itens (alternativa visual) */
.hero-slider-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.hero-slider-item-card {
    background: var(--admin-card-bg);
    border: 2px solid var(--admin-border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.hero-slider-item-card:hover {
    border-color: var(--admin-primary);
    box-shadow: 0 8px 24px rgba(225, 29, 255, 0.2);
    transform: translateY(-4px);
}

.hero-slider-item-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.hero-slider-item-card-content {
    padding: 16px;
}

.hero-slider-item-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--admin-text-primary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-slider-item-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--admin-text-secondary);
    margin-bottom: 12px;
}

.hero-slider-item-card-actions {
    display: flex;
    gap: 8px;
}

/* Responsividade */
@media (max-width: 768px) {
    .admin-form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table {
        min-width: 800px;
    }
    
    .hero-slider-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .admin-form-actions {
        flex-direction: column;
    }
    
    .admin-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-section {
    animation: fadeIn 0.4s ease-out;
}

/* Melhorar visualização de mensagens */
.admin-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}

.admin-message-success {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
    color: #10b981;
}

.admin-message-error {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid #ef4444;
    color: #ef4444;
}

.admin-message i {
    font-size: 18px;
}

/* Melhorias extras para Hero Slider */
.admin-form-group label i {
    margin-right: 6px;
    color: var(--admin-primary);
    font-size: 13px;
}

/* Melhorar visualização dos selects */
.admin-form-control select {
    cursor: pointer;
}

/* Loading state para busca */
#add_content_results.loading {
    text-align: center;
    padding: 40px;
    color: var(--admin-text-muted);
}

#add_content_results.loading::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--admin-border-color);
    border-top-color: var(--admin-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Melhorar visualização de inputs numéricos */
.admin-form-control[type="number"] {
    -moz-appearance: textfield;
}

.admin-form-control[type="number"]::-webkit-inner-spin-button,
.admin-form-control[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Tooltips */
.admin-btn {
    position: relative;
}

.admin-table td {
    position: relative;
}

/* Melhorar badges na tabela */
.admin-table .admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Indicador visual de posição */
.admin-table .item-position:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 255, 0.1);
}

/* Melhorar visualização de status */
.admin-table tbody tr[data-active="0"] {
    opacity: 0.6;
}

.admin-table tbody tr[data-active="0"]:hover {
    opacity: 1;
}

/* Animações suaves */
.admin-table tbody tr {
    animation: fadeInRow 0.3s ease-out backwards;
}

.admin-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.admin-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.admin-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.admin-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.admin-table tbody tr:nth-child(5) { animation-delay: 0.25s; }

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Melhorar scrollbar da área de resultados */
#add_content_results::-webkit-scrollbar {
    width: 8px;
}

#add_content_results::-webkit-scrollbar-track {
    background: var(--admin-bg-secondary);
    border-radius: 4px;
}

#add_content_results::-webkit-scrollbar-thumb {
    background: var(--admin-primary);
    border-radius: 4px;
}

#add_content_results::-webkit-scrollbar-thumb:hover {
    background: var(--admin-primary-hover, #f472ff);
}

/* Estados de hover melhorados */
.admin-table tbody tr:hover .item-position {
    border-color: var(--admin-primary);
}

/* Melhorar visualização de checkboxes */
.admin-form-group input[type="checkbox"]:checked {
    background-color: var(--admin-primary);
    border-color: var(--admin-primary);
}

/* Indicador de modo ativo */
.admin-section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--admin-primary), var(--admin-primary-hover, #f472ff));
    border-radius: 2px;
}

.admin-section {
    position: relative;
}

/* Melhorar espaçamento entre seções */
.admin-section + .admin-section {
    margin-top: 40px;
}

/* Melhorar responsividade da busca */
@media (max-width: 768px) {
    #add_content_results > div > div {
        flex-direction: column;
        text-align: center;
    }
    
    #add_content_results img {
        width: 80px;
        height: 120px;
    }
    
    .admin-section-header h2 {
        font-size: 20px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
        font-size: 12px;
    }
}

/* Estilos para badges na página de analytics */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.badge-primary {
    background: rgba(225, 29, 255, 0.2);
    color: var(--admin-primary);
    border: 1px solid rgba(225, 29, 255, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-secondary {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Melhorar visualização de páginas de conteúdo no analytics */
.admin-table td code {
    font-family: 'Courier New', monospace;
    background: var(--admin-bg-tertiary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    border: 1px solid var(--admin-border-color);
}

.admin-table td strong {
    font-weight: 700;
    color: var(--admin-text-primary);
}

/* Melhorias para analytics-list compacto */
.analytics-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.analytics-page-item {
    min-height: auto;
    padding: 10px 12px;
}

.analytics-page-item .analytics-item-label {
    flex: 1;
    min-width: 0;
}

.analytics-page-item .analytics-item-label code {
    font-family: 'Courier New', monospace;
    background: var(--admin-bg-tertiary);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    border: 1px solid var(--admin-border-color);
    word-break: break-all;
}

.analytics-page-item .analytics-item-value {
    min-width: 80px;
    text-align: right;
}

/* Scrollbar personalizada para analytics-list */
.analytics-list::-webkit-scrollbar {
    width: 6px;
}

.analytics-list::-webkit-scrollbar-track {
    background: var(--admin-bg-tertiary);
    border-radius: 3px;
}

.analytics-list::-webkit-scrollbar-thumb {
    background: var(--admin-border-color);
    border-radius: 3px;
}

.analytics-list::-webkit-scrollbar-thumb:hover {
    background: var(--admin-primary);
}

/* Responsivo */
@media (max-width: 768px) {
    .analytics-page-item {
        padding: 8px 10px;
    }
    
    .analytics-page-item .analytics-item-label strong {
        font-size: 13px;
    }
    
    .analytics-page-item .analytics-item-value {
        min-width: 70px;
    }
}
