/* =============================================================================
   TRADUTOR MIRANDÊS - ESTILOS DO PAINEL ADMIN v2.0
   Sistema de Login Username/Password + JWT
   ============================================================================= */

/* Variáveis específicas do admin */
:root {
    --admin-sidebar-width: 280px;
    --admin-header-height: 64px;
    --admin-primary: #0ea5e9;
    --admin-secondary: #64748b;
    --admin-success: #10b981;
    --admin-warning: #f59e0b;
    --admin-danger: #ef4444;
    --admin-info: #06b6d4;
    --admin-dark: #1e293b;
    --admin-light: #f8fafc;
    --admin-border: #e2e8f0;
    --admin-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --admin-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Tema escuro para admin */
[data-theme="dark"] {
    --admin-light: #0f172a;
    --admin-border: #334155;
    --admin-dark: #f1f5f9;
}

/* Reset específico do admin */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--admin-light);
    color: var(--admin-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =============================================================================
   LAYOUT PRINCIPAL
   ============================================================================= */

.admin-app {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.sidebar {
    width: var(--admin-sidebar-width);
    background: white;
    border-right: 1px solid var(--admin-border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s ease;
    box-shadow: var(--admin-shadow-lg);
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.main-content {
    flex: 1;
    margin-left: var(--admin-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .main-content {
    margin-left: 0;
}

/* =============================================================================
   SIDEBAR
   ============================================================================= */

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--admin-primary);
}

.logo i {
    font-size: 1.5rem;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--admin-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background: var(--admin-light);
    color: var(--admin-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--admin-secondary);
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.nav-section ul {
    list-style: none;
}

.nav-section li {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--admin-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover {
    background: var(--admin-light);
    color: var(--admin-dark);
}

.nav-link.active {
    background: rgba(14, 165, 233, 0.1);
    color: var(--admin-primary);
    border-right: 3px solid var(--admin-primary);
}

.nav-link i {
    width: 1.25rem;
    text-align: center;
    font-size: 1rem;
}

.badge {
    background: var(--admin-danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    min-width: 1.25rem;
    text-align: center;
    margin-left: auto;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--admin-border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--admin-secondary);
    font-size: 0.875rem;
    padding: 0.75rem;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 0.375rem;
    border: 1px solid rgba(14, 165, 233, 0.1);
}

.user-info i {
    color: var(--admin-primary);
}

.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--admin-danger);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #dc2626;
}

/* =============================================================================
   HEADER PRINCIPAL
   ============================================================================= */

.top-header {
    height: var(--admin-header-height);
    background: white;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--admin-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.mobile-sidebar-toggle:hover {
    background: var(--admin-light);
    color: var(--admin-primary);
}

#pageTitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--admin-dark);
}

.header-right {
    display: flex;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: 1px solid var(--admin-border);
    border-radius: 0.375rem;
    color: var(--admin-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.header-btn:hover {
    background: var(--admin-light);
    color: var(--admin-primary);
    border-color: var(--admin-primary);
}

/* =============================================================================
   ÁREA DE CONTEÚDO
   ============================================================================= */

.content-area {
    flex: 1;
    padding: 2rem;
    background: var(--admin-light);
}

.view-content {
    display: block;
}

.view-content.hidden {
    display: none;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--admin-dark);
}

.section-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* =============================================================================
   BOTÕES
   ============================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    outline: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--admin-primary);
    color: white;
    border-color: var(--admin-primary);
}

.btn-primary:hover:not(:disabled) {
    background: #0284c7;
    border-color: #0284c7;
}

.btn-secondary {
    background: var(--admin-secondary);
    color: white;
    border-color: var(--admin-secondary);
}

.btn-secondary:hover:not(:disabled) {
    background: #475569;
    border-color: #475569;
}

.btn-success {
    background: var(--admin-success);
    color: white;
    border-color: var(--admin-success);
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    border-color: #059669;
}

.btn-warning {
    background: var(--admin-warning);
    color: white;
    border-color: var(--admin-warning);
}

.btn-warning:hover:not(:disabled) {
    background: #d97706;
    border-color: #d97706;
}

.btn-danger {
    background: var(--admin-danger);
    color: white;
    border-color: var(--admin-danger);
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626;
}

.btn-outline {
    background: transparent;
    color: var(--admin-secondary);
    border-color: var(--admin-border);
}

.btn-outline:hover:not(:disabled) {
    background: var(--admin-light);
    border-color: var(--admin-primary);
    color: var(--admin-primary);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* =============================================================================
   DASHBOARD
   ============================================================================= */

.dashboard-grid {
    display: grid;
    gap: 2rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kpi-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
}

.kpi-icon i {
    font-size: 1.5rem;
}

.kpi-content {
    flex: 1;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--admin-dark);
    line-height: 1;
}

.kpi-label {
    font-size: 0.875rem;
    color: var(--admin-secondary);
    margin-top: 0.25rem;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.chart-section,
.recent-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
}

.chart-container {
    height: 300px;
    position: relative;
}

/* =============================================================================
   LISTAS E TABELAS
   ============================================================================= */

.pending-list,
.dictionary-list,
.tokens-list {
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
    overflow: hidden;
}

.pending-item,
.dictionary-item,
.token-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pending-item:last-child,
.dictionary-item:last-child,
.token-item:last-child {
    border-bottom: none;
}

.item-content {
    flex: 1;
}

.item-title {
    font-weight: 600;
    color: var(--admin-dark);
    margin-bottom: 0.25rem;
}

.item-subtitle {
    font-size: 0.875rem;
    color: var(--admin-secondary);
}

.item-meta {
    font-size: 0.75rem;
    color: var(--admin-secondary);
    margin-top: 0.5rem;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    padding: 1rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.1);
    color: var(--admin-primary);
    font-size: 0.875rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--admin-dark);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--admin-secondary);
}

/* =============================================================================
   FERRAMENTAS DE PESQUISA E FILTROS
   ============================================================================= */

.dictionary-tools {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-bar {
    flex: 1;
    min-width: 250px;
    display: flex;
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--admin-border);
    border-radius: 0.375rem 0 0 0.375rem;
    outline: none;
    font-size: 0.875rem;
}

.search-bar input:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.search-btn {
    padding: 0.5rem 1rem;
    background: var(--admin-primary);
    color: white;
    border: 1px solid var(--admin-primary);
    border-radius: 0 0.375rem 0.375rem 0;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
}

.filter-options select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--admin-border);
    border-radius: 0.375rem;
    background: white;
    color: var(--admin-dark);
    outline: none;
    cursor: pointer;
}

.filter-options select:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* =============================================================================
   ESTATÍSTICAS
   ============================================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.stats-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
}

.stats-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--admin-dark);
    margin-bottom: 1rem;
}

.stats-content {
    max-height: 300px;
    overflow-y: auto;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--admin-border);
}

.stats-item:last-child {
    border-bottom: none;
}

.stats-label {
    font-size: 0.875rem;
    color: var(--admin-secondary);
}

.stats-value {
    font-weight: 600;
    color: var(--admin-dark);
}

/* =============================================================================
   MODAIS
   ============================================================================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
}

/* IMPORTANTES: Regras específicas para modais persistentes */
.modal-persistent {
    /* Modal persistente não pode ser fechado */
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(8px) !important;
}

.modal-persistent .modal-content {
    /* Conteúdo do modal persistente tem estilo especial */
    border: 2px solid var(--admin-primary) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.modal-force-open {
    /* Força o modal a estar sempre visível quando necessário */
    display: flex !important;
}

/* Prevenir cliques no backdrop para modais persistentes */
.modal-persistent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--admin-shadow-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
}

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

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--admin-dark);
}

.modal-close {
    background: none;
    border: none;
    color: var(--admin-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--admin-light);
    color: var(--admin-danger);
}

/* Esconder botão de fechar em modais persistentes */
.modal-persistent .modal-close {
    display: none !important;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--admin-border);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* =============================================================================
   FORMULÁRIOS
   ============================================================================= */

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--admin-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--admin-border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    color: var(--admin-dark);
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* =============================================================================
   ALERTAS E MENSAGENS DE ERRO
   ============================================================================= */

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #059669;
}

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

.alert-info {
    background-color: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    color: #0284c7;
}

/* =============================================================================
   MELHORIAS NO FORMULÁRIO DE LOGIN
   ============================================================================= */

.modal-persistent .form-group {
    position: relative;
}

.modal-persistent .form-group input {
    transition: all 0.2s ease;
}

.modal-persistent .form-group input:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    transform: scale(1.01);
}

#loginError {
    animation: slideDown 0.3s ease-out;
}

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

/* Estilo especial para o modal de login */
.modal-persistent {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(14, 165, 233, 0.2) 100%) !important;
}

.modal-persistent .modal-content {
    animation: modalAppear 0.4s ease-out;
}

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

/* =============================================================================
   PLACEHOLDERS E LOADING
   ============================================================================= */

.loading-placeholder {
    padding: 3rem;
    text-align: center;
    color: var(--admin-secondary);
}

.placeholder-content {
    background: white;
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
    text-align: center;
    color: var(--admin-secondary);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--admin-border);
    border-top: 2px solid var(--admin-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================================================
   TOASTS
   ============================================================================= */

.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    box-shadow: var(--admin-shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99999 !important;
    max-width: 400px;
}

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

.toast-success {
    background: var(--admin-success);
}

.toast-error {
    background: var(--admin-danger);
}

.toast-warning {
    background: var(--admin-warning);
}

.toast-info {
    background: var(--admin-info);
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-sidebar-toggle {
        display: block;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dictionary-tools {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        min-width: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: none;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 0 1rem;
    }
    
    .item-actions {
        flex-direction: column;
    }
    
    .btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

/* =============================================================================
   ESTADOS ESPECIAIS
   ============================================================================= */

.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--admin-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--admin-dark);
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* Estados de hover para interatividade */
.pending-item:hover,
.dictionary-item:hover,
.token-item:hover {
    background: rgba(14, 165, 233, 0.02);
}

/* Focus states para acessibilidade */
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--admin-primary);
    outline-offset: 2px;
}

/* Animações suaves */
.kpi-card {
    transition: transform 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
}

/* Indicadores de status */
.status-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-online {
    background: var(--admin-success);
}

.status-offline {
    background: var(--admin-danger);
}

.status-pending {
    background: var(--admin-warning);
}

/* Melhorias de usabilidade */
.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable:hover {
    transform: translateY(-1px);
    box-shadow: var(--admin-shadow-lg);
}

/* Print styles */
@media print {
    .sidebar,
    .top-header,
    .modal,
    .toast,
    .loading-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .content-area {
        padding: 0 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}