/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* Estilos específicos para páginas de login/registro */
body.login-page, body.register-page {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
    width: 100%;
    min-height: 100vh;
}

/* Container principal - definido abaixo com layout completo */

/* Layout principal com sidebar */
body:not(.login-page):not(.register-page) {
    margin: 0;
    padding: 0;
    padding-left: 280px;
    min-height: 100vh;
}

body.login-page,
body.register-page {
    display: block !important;
}

/* Sidebar - Desktop por padrão */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98), rgba(13, 17, 23, 0.98));
    backdrop-filter: blur(5px);
    border-right: 1px solid rgba(0, 255, 136, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: width 0.3s ease, transform 0.3s ease, display 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    transform: translateX(0);
    will-change: width, transform;
}

/* Desktop - garantir que sidebar está sempre visível */
@media (min-width: 1025px) {
    .sidebar {
        display: flex !important;
        transform: translateX(0) !important;
    }
}

/* No mobile e tablet, o sidebar deve começar fechado e ser escondido */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%) !important;
        display: none !important; /* Esconder completamente o sidebar no mobile */
    }
    
    .sidebar.active {
        transform: translateX(0) !important;
        display: flex !important; /* Mostrar apenas quando ativo (aberto) */
    }

    /* Centralizar títulos principais no mobile */
    .page-title {
        text-align: center !important;
        width: 100%;
    }
    
    .header-content {
        justify-content: center;
    }

    .dashboard-header-modern {
        text-align: center !important;
    }

    .dashboard-subtitle-modern {
        text-align: center !important;
    }

    .dashboard-title-modern {
        text-align: center !important;
    }

    .page-header {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .card-title {
        text-align: center !important;
    }

    .card-header {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .stat-label {
        text-align: center !important;
    }
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00d4ff, #00ff88);
    background-size: 200% 100%;
    animation: shimmer 4s infinite;
    z-index: 1;
    will-change: background-position;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Esconder completamente qualquer scrollbar no sidebar */
.sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 255, 136, 0.03);
    position: relative;
    z-index: 2;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #00ff88;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.2s ease;
    position: relative;
}

.sidebar-logo i {
    font-size: 24px;
    transition: transform 0.2s ease;
    will-change: transform;
}

.sidebar-logo:hover {
    color: #00cc6a;
}

.sidebar-logo:hover i {
    transform: rotate(10deg) scale(1.05);
}

.sidebar-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.sidebar-toggle:hover {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
    transform: rotate(90deg);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Esconder completamente a scrollbar no sidebar */
.sidebar-nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.sidebar-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0 12px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Esconder scrollbar no menu também */
.sidebar-menu::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.sidebar-menu {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar-item {
    margin-bottom: 6px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Desabilitar submenus no sidebar - apenas submenus aninhados */
.sidebar-item .sidebar-item .sidebar-menu,
.sidebar-item ul ul,
.sidebar-item .submenu,
.sidebar-item .sub-menu,
.sidebar-item .dropdown,
.sidebar-item .sidebar-link + ul,
.sidebar-item .sidebar-link + .submenu,
.sidebar-item .sidebar-link + .sub-menu {
    display: none !important;
}

.sidebar-item:hover .sidebar-item .sidebar-menu,
.sidebar-item:hover ul ul,
.sidebar-item:hover .submenu,
.sidebar-item:hover .sub-menu,
.sidebar-item:hover .dropdown,
.sidebar-item:hover .sidebar-link + ul,
.sidebar-item:hover .sidebar-link + .submenu,
.sidebar-item:hover .sidebar-link + .sub-menu {
    display: none !important;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    color: #cccccc;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-left-color 0.15s ease;
    border-left: 3px solid transparent;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    font-weight: 400;
}

.sidebar-link::before {
    display: none;
}

/* Hover apenas para itens não ativos - garantindo mesmo tamanho */
.sidebar-link:not(.active):hover {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border-left-color: #00ff88;
    padding: 14px 18px;
    width: 100%;
    font-weight: 400;
}

/* Estado ativo com maior especificidade - garantindo mesmo tamanho */
.sidebar-link.active {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.1)) !important;
    color: #00ff88 !important;
    border-left-color: #00ff88 !important;
    font-weight: 400 !important;
    position: relative;
    padding: 14px 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Hover em item ativo - manter estilo ativo */
.sidebar-link.active:hover {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.15)) !important;
    color: #00ff88 !important;
    border-left-color: #00ff88 !important;
    padding: 14px 18px !important;
    width: 100% !important;
}

.sidebar-link.active::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    animation: pulseDot 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateY(-50%) scale(1.2);
    }
}

.sidebar-link i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: color 0.15s ease;
}

.sidebar-link:not(.active):hover i {
    color: #00ff88;
}

.sidebar-link.active i {
    color: #00ff88;
}

.sidebar-link span {
    position: relative;
    z-index: 1;
    transition: color 0.15s ease;
    font-weight: inherit;
    flex-shrink: 0;
    min-width: 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.sidebar-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
}

.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cccccc;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 14px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    justify-content: space-between; /* Espaçar elementos */
}

.sidebar-footer .user-info span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: auto; /* Empurrar o botão para a direita */
}

.sidebar-footer .edit-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 6px;
    color: #00ff88;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
    margin-left: auto; /* Garantir que fica no canto direito */
}

.sidebar-footer .edit-profile-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
    color: #00ff88;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.sidebar-footer .edit-profile-btn i {
    font-size: 14px;
}

/* Esconder botão de editar quando o sidebar estiver colapsado */
.sidebar.collapsed .sidebar-footer .edit-profile-btn {
    display: none !important;
}

/* Centralizar ícone de perfil quando o sidebar estiver colapsado */
.sidebar.collapsed .sidebar-footer .user-info {
    justify-content: center !important;
    padding: 12px !important;
    gap: 0 !important;
}

.sidebar.collapsed .sidebar-footer .user-info i {
    margin: 0 !important;
    font-size: 20px !important;
}

.sidebar.collapsed .sidebar-footer .user-info span {
    display: none !important;
    width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
}

.sidebar-footer .user-info:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.sidebar-footer .user-info i {
    color: #00ff88;
    font-size: 16px;
}

.sidebar-footer .logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2), rgba(204, 51, 51, 0.2));
    color: #ff6b6b;
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-weight: 500;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.sidebar-footer .logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.sidebar-footer .logout-btn:hover::before {
    left: 100%;
}

.sidebar-footer .logout-btn:hover {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.3), rgba(204, 51, 51, 0.3));
    border-color: rgba(255, 68, 68, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.3);
    color: #fff;
}

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    height: 70px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: left 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 30px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #00ff88;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 255, 136, 0.1);
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

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

.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: #cccccc;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.notification-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00ff88;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* Overlay para mobile */
.sidebar-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
}

/* Ajuste do conteúdo principal */
.container {
    position: relative;
    margin-top: 70px;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

/* Estilização elegante da scrollbar para Webkit (Chrome, Safari, Edge) - na página toda */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.6);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.8);
    border-color: rgba(0, 255, 136, 0.3);
}

body::-webkit-scrollbar-thumb:active {
    background: rgba(0, 255, 136, 1);
}

/* Scrollbar para Firefox */
body {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 136, 0.5) rgba(255, 255, 255, 0.05);
}

/* Wrapper interno para centralizar o conteúdo no espaço disponível */
.container > * {
    width: 100%;
    max-width: calc(100% - 40px);
    margin: 0 auto;
}

/* Para telas pequenas, usar largura máxima menor */
@media (max-width: 1200px) {
    .container > * {
        max-width: calc(100% - 20px);
    }
}

/* Para telas médias, ajustar a largura */
@media (min-width: 1200px) and (max-width: 1599px) {
    .container > * {
        max-width: 1100px;
    }
}

/* Para telas muito grandes, ajustar a largura máxima */
@media (min-width: 1600px) {
    .container > * {
        max-width: 1400px;
    }
}

/* Responsividade */
@media (max-width: 1024px) {
    body:not(.login-page):not(.register-page) {
        padding-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%) !important;
        width: 280px;
        box-shadow: 2px 0 30px rgba(0, 0, 0, 0.7);
        transition: transform 0.3s ease;
        will-change: transform;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1000;
        display: none !important; /* Esconder completamente no mobile/tablet */
    }
    
    /* Garantir que o menu está completamente fechado quando não está ativo */
    .sidebar:not(.active) {
        transform: translateX(-100%) !important;
        left: 0 !important;
        display: none !important;
    }
    
    /* Garantir que o sidebar não fica visível por padrão no mobile/tablet */
    body:not(.sidebar-open) .sidebar {
        transform: translateX(-100%) !important;
        display: none !important;
    }
    
    /* Prioridade máxima para abrir o menu quando está ativo */
    .sidebar.active,
    body.sidebar-open .sidebar.active {
        transform: translateX(0) !important;
        display: flex !important; /* Mostrar apenas quando ativo (aberto) */
    }
    
    .top-header {
        display: none !important;
    }
    
    .container {
        margin-top: 0 !important;
        width: 100%;
        padding: 20px;
        max-width: 100%;
        padding-top: 20px !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    /* Garantir que o overlay está completamente escondido quando não está ativo */
    .sidebar-overlay:not(.active) {
        display: none !important;
        opacity: 0;
    }
    
    /* Esconder notificações no mobile */
    .header-actions,
    .notification-btn,
    .notification-badge {
        display: none !important;
    }
    
    /* Ajustar padding do container para o menu fixo */
    .container {
        padding-bottom: 80px !important;
    }
}

/* Menu Fixo Mobile na Parte Inferior */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    padding: 6px 2px;
    z-index: 1001;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.7);
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
    min-height: 55px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-bottom-nav::-webkit-scrollbar {
    display: none;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    min-width: 40px;
    max-width: 55px;
    position: relative;
    flex: 1;
    background: transparent;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 0;
}

.mobile-nav-item span {
    display: none !important;
}

.mobile-nav-item:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-item:hover i {
    color: rgba(255, 255, 255, 0.8) !important;
}

.mobile-nav-item.active {
    color: #00ff88 !important;
    background: rgba(0, 255, 136, 0.15);
}

.mobile-nav-item.active i {
    color: #00ff88 !important;
    transform: scale(1.15);
}


.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    border-radius: 0 0 3px 3px;
}

/* Mostrar menu fixo apenas no mobile */
@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ajustar padding do body para o menu fixo */
    body:not(.login-page):not(.register-page) {
        padding-bottom: 70px !important;
    }
    
    /* Ajustar padding do container para o menu fixo */
    .container {
        padding-bottom: 80px !important;
    }
}

/* Esconder menu fixo em desktop (notebook/computador) */
/* Desktop - mostrar sidebar e esconder menu mobile */
@media (min-width: 1025px) {
    .sidebar {
        display: flex !important; /* Mostrar sidebar no desktop */
        transform: translateX(0) !important;
    }
    
    .mobile-bottom-nav {
        display: none !important; /* Esconder menu mobile no desktop */
    }
    
    .mobile-menu-toggle {
        display: none !important; /* Esconder botão toggle no desktop */
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .page-title {
        font-size: 18px;
        text-align: center !important;
        width: 100%;
    }
    
    .header-content {
        padding: 0 15px;
        justify-content: center;
    }

    .dashboard-header-modern {
        text-align: center !important;
    }

    .dashboard-subtitle-modern {
        text-align: center !important;
    }

    .dashboard-title-modern {
        text-align: center !important;
    }

    .page-header {
        text-align: center !important;
    }

    .card-title {
        text-align: center !important;
    }

    .card-header {
        text-align: center !important;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .stat-label {
        text-align: center !important;
    }
}

/* Login page - Modern & Compact */
.login-page {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d1117 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.05) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
}

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

.login-box-modern {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.login-box-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00d4ff, #00ff88);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    border-radius: 20px 20px 0 0;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

.login-logo-wrapper {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 255, 136, 0);
    }
}

.login-title-modern {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 4px 0;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.login-subtitle-modern {
    color: #888;
    font-size: 12px;
    margin: 0;
    font-weight: 400;
}

.login-alert-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    color: #ff6b6b;
    font-size: 12px;
    margin-bottom: 16px;
    animation: slideDown 0.3s ease-out;
}

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

.login-alert-modern svg {
    flex-shrink: 0;
}

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

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

.login-label-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
}

.login-label-modern svg {
    color: #00ff88;
    flex-shrink: 0;
}

.login-input-wrapper {
    position: relative;
}

.login-input-modern {
    width: 100%;
    padding: 12px 14px;
    padding-right: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.login-input-modern:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
}

.login-input-modern::placeholder {
    color: #666;
    opacity: 1;
}

.login-input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    transition: width 0.3s ease;
    border-radius: 0 0 10px 10px;
}

.login-input-modern:focus ~ .login-input-border {
    width: 100%;
}

.login-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-radius: 6px;
}

.login-toggle-btn:hover {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.login-toggle-btn svg {
    display: block;
}

.login-btn-modern {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 212, 255, 0.25));
    border: 2px solid rgba(0, 255, 136, 0.5);
    border-radius: 10px;
    color: #00ff88;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
    position: relative;
    overflow: hidden;
}

.login-btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn-modern:hover::before {
    left: 100%;
}

.login-btn-modern:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.35), rgba(0, 212, 255, 0.35));
    border-color: rgba(0, 255, 136, 0.7);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3);
}

.login-btn-modern:active {
    transform: translateY(0);
}

.login-btn-modern svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.login-btn-modern:hover svg {
    transform: translateX(4px);
}

.login-footer-modern {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.login-footer-text {
    color: #888;
    font-size: 12px;
    margin: 0 0 10px 0;
}

.login-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00ff88;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 6px 12px;
    border-radius: 8px;
}

.login-link-modern:hover {
    color: #00d4ff;
    background: rgba(0, 255, 136, 0.1);
    gap: 8px;
}

.login-link-modern svg {
    transition: transform 0.3s ease;
}

.login-link-modern:hover svg {
    transform: translateX(2px);
}

/* Responsividade */
@media (max-width: 480px) {
    .login-box-modern {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .login-title-modern {
        font-size: 22px;
    }
    
    .login-logo-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #00ff88;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #00ff88;
    font-size: 14px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.form-control::placeholder {
    color: #888888;
}

.password-toggle {
    position: relative;
}

.password-toggle .toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    font-size: 16px;
}

.btn {
    width: 100%;
    padding: 12px;
    background: #00ff88;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-top: 10px;
}

.btn:hover {
    background: #00cc6a;
    transform: translateY(-1px);
}

.btn:disabled {
    background: #666666;
    cursor: not-allowed;
    transform: none;
}

.security-note {
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 5px;
    font-size: 12px;
    color: #ffc107;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dashboard Moderno */
.dashboard-header-modern {
    margin-bottom: 32px;
}

.dashboard-title-modern {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.dashboard-subtitle-modern {
    color: #888;
    font-size: 14px;
    margin: 0;
}

.dashboard-alert-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    color: #ff6b6b;
    font-size: 13px;
    margin-bottom: 24px;
    animation: slideDown 0.3s ease-out;
}

.dashboard-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.dashboard-card-modern {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dashboard-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00d4ff, #00ff88);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card-modern:hover::before {
    opacity: 1;
}

.dashboard-card-modern:hover {
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 255, 136, 0.15);
}

.dashboard-card-header-modern {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.dashboard-card-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dashboard-card-modern:hover .dashboard-card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.3);
}

.dashboard-card-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.dashboard-card-info {
    flex: 1;
}

.dashboard-card-title-modern {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.dashboard-card-label-modern {
    font-size: 12px;
    color: #888;
}

.dashboard-card-value-modern {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.dashboard-value-primary {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.dashboard-value-separator {
    font-size: 24px;
    color: #666;
    font-weight: 400;
}

.dashboard-value-secondary {
    font-size: 24px;
    color: #888;
    font-weight: 500;
}

.dashboard-recent-modern {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dashboard-recent-modern:hover {
    border-color: rgba(0, 255, 136, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dashboard-recent-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-recent-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-recent-header-left svg {
    color: #00ff88;
    flex-shrink: 0;
}

.dashboard-recent-title-modern {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.dashboard-recent-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00ff88;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(0, 255, 136, 0.2);
    background: rgba(0, 255, 136, 0.05);
}

.dashboard-recent-link-modern:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateX(4px);
    gap: 8px;
}

.dashboard-recent-link-modern svg {
    transition: transform 0.3s ease;
}

.dashboard-recent-link-modern:hover svg {
    transform: translateX(2px);
}

.dashboard-empty-modern {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.dashboard-empty-modern svg {
    color: #666;
    margin-bottom: 16px;
    opacity: 0.5;
}

.dashboard-empty-modern p {
    font-size: 16px;
    margin: 0 0 20px 0;
    color: #aaa;
}

.dashboard-empty-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00ff88;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dashboard-empty-link-modern:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
    gap: 10px;
}

.dashboard-empty-link-modern svg {
    transition: transform 0.3s ease;
}

.dashboard-empty-link-modern:hover svg {
    transform: translateX(2px);
}

.dashboard-table-modern {
    overflow-x: auto;
    border-radius: 12px;
}

.dashboard-table-inner-modern {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table-inner-modern thead {
    background: rgba(0, 255, 136, 0.05);
}

.dashboard-table-inner-modern th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.2);
}

.dashboard-table-inner-modern td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ddd;
    font-size: 14px;
}

.dashboard-table-inner-modern tbody tr {
    transition: all 0.2s ease;
}

.dashboard-table-inner-modern tbody tr:hover {
    background: rgba(0, 255, 136, 0.05);
}

.dashboard-table-name-modern {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-table-name-modern svg {
    color: #00ff88;
    flex-shrink: 0;
    opacity: 0.7;
}

.dashboard-status-badge-modern {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-status-badge-modern.status-running,
.dashboard-status-badge-modern.status-validating,
.dashboard-status-badge-modern.status-ready {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.dashboard-status-badge-modern.status-paused,
.dashboard-status-badge-modern.status-stopped {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.dashboard-status-badge-modern.status-completed,
.dashboard-status-badge-modern.status-finished {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 204, 106, 0.3));
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.4);
}

.dashboard-status-badge-modern.status-error,
.dashboard-status-badge-modern.status-failed {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.3));
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.dashboard-progress-modern {
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-progress-bar-modern {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Estado: Em execução (running/validating) */
.dashboard-progress-bar-modern.progress-running {
    background: linear-gradient(90deg, #00ff88, #00d4ff, #00ff88);
    background-size: 200% 100%;
    animation: progressShimmer 2s infinite;
}

/* Estado: Pausado */
.dashboard-progress-bar-modern.progress-paused {
    background: linear-gradient(90deg, #fd7e14, #ff9800);
    animation: none;
}

/* Estado: Completado */
.dashboard-progress-bar-modern.progress-completed {
    background: linear-gradient(90deg, #6f42c1, #9c27b0);
    animation: none;
}

/* Estado: Pronto para iniciar */
.dashboard-progress-bar-modern.progress-ready {
    background: linear-gradient(90deg, #17a2b8, #00bcd4);
    animation: progressPulse 2s ease-in-out infinite;
}

.dashboard-progress-bar-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.dashboard-progress-bar-modern.progress-paused::before,
.dashboard-progress-bar-modern.progress-completed::before {
    animation: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

@keyframes progressShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.dashboard-progress-bar-modern span {
    font-size: 11px;
    font-weight: 600;
    color: #000;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.dashboard-progress-empty-modern {
    color: #888;
    font-size: 13px;
}

/* Responsividade */
@media (max-width: 1024px) {
    .dashboard-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .dashboard-title-modern {
        font-size: 26px;
    }
    
    .dashboard-card-modern {
        padding: 20px;
    }
    
    .dashboard-value-primary {
        font-size: 28px;
    }
    
    .dashboard-recent-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .dashboard-table-modern {
        overflow-x: scroll;
    }
    
    .dashboard-table-inner-modern {
        min-width: 600px;
    }
}

/* Dashboard */

.card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    border-color: #00ff88;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
}

.card-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #00ff88;
}

.card-icon {
    font-size: 24px;
    color: #00ff88;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.stat-label {
    color: #cccccc;
    font-size: 14px;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-connected {
    background: #00ff88;
}

.status-disconnected {
    background: #ff4444;
}

.status-unknown {
    background: #ffaa00;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-connected {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.status-disconnected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.status-badge.status-checking {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-badge.status-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Profile Cards Modern Design */
.profiles-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.profile-card-modern {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    position: relative;
    will-change: box-shadow;
}

.profile-card-modern:hover {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    position: relative;
}

.profile-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.profile-title-section {
    flex: 1;
    min-width: 0;
}

.profile-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-subtitle {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.profile-menu {
    position: relative;
}

.profile-menu-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(107, 114, 128, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-menu-btn:hover {
    background: rgba(107, 114, 128, 0.2);
    color: #374151;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    min-width: 160px;
    margin-top: 4px;
}

.profile-dropdown button {
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    transition: background-color 0.2s ease;
}

.profile-dropdown button:hover {
    background: #f3f4f6;
}

.profile-dropdown button:first-child {
    border-radius: 8px 8px 0 0;
}

.profile-dropdown button:last-child {
    border-radius: 0 0 8px 8px;
}

.profile-content {
    padding: 20px 24px;
}

.profile-photo-section {
    margin-bottom: 20px;
}

.profile-photo-container {
    display: flex;
    justify-content: center;
}

.profile-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e5e7eb;
    overflow: hidden;
}

.profile-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.detail-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.detail-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    display: block;
    font-size: 14px;
    color: #111827;
    font-weight: 500;
}

.last-update {
    color: #000000 !important;
    font-weight: 400 !important;
    font-size: 13px !important;
}

.profile-actions-modern {
    display: none;
}

.action-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.action-btn.secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.action-btn.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.action-btn.danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
}

.action-btn.info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.action-btn.info:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    transform: translateY(-1px);
}

/* Responsive design for profile cards */
@media (max-width: 1024px) {
    .profiles-grid-modern {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 0;
    }
    
    .profile-card-header {
        padding: 16px 20px 12px;
    }
    
    .profile-content {
        padding: 16px 20px;
    }
    
    .profile-actions-modern {
        padding: 12px 20px 16px;
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

/* Tabelas */
.table-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

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

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    font-weight: bold;
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Botões */
.btn-primary {
    background: #00ff88;
    color: #000000;
}

.btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

.btn-danger {
    background: #ff4444;
    color: #ffffff;
}

.btn-warning {
    background: #ffaa00;
    color: #000000;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-group {
    display: flex;
    gap: 5px;
}

/* Formulários */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-col {
    flex: 1;
}

.form-col-auto {
    flex: 0 0 auto;
}

/* Estilos modernos para interface de ativação */
.activation-card-modern {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    margin-bottom: 25px !important;
    padding: 0 !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 8px 32px rgba(102, 126, 234, 0.2) !important;
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

.activation-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ff88, #00d4ff, #00ff88);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.activation-header-modern {
    text-align: center !important;
    padding: 16px 20px 14px !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative;
    margin-bottom: 0 !important;
    display: block !important;
}

.activation-header-icon {
    font-size: 32px;
    margin-bottom: 6px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.activation-title-modern {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 4px 0 !important;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.activation-subtitle-modern {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400;
}

.activation-body-modern {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.activation-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.25), rgba(255, 152, 0, 0.25));
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 50px;
    padding: 6px 14px;
    margin: 0 auto 14px;
    font-size: 11px;
    font-weight: 600;
    color: #ffc107;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: auto;
    line-height: 1;
}

.status-icon {
    font-size: 16px;
    animation: rotate 3s linear infinite;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
}

.activation-status-badge .status-text {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

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

.activation-description {
    text-align: center;
    margin-bottom: 14px;
    display: block;
    width: 100%;
}

.description-main {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 6px 0;
    line-height: 1.4;
    font-weight: 500;
}

.description-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.4;
}

.activation-success-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 204, 106, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 14px;
    padding: 14px;
    margin: 14px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.15);
    animation: slideIn 0.5s ease-out;
}

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

.success-icon-wrapper {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 204, 106, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 255, 136, 0.4);
}

.success-icon {
    width: 20px;
    height: 20px;
    color: #00ff88;
    animation: checkmark 0.6s ease-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-content {
    flex: 1;
}

.success-title {
    font-size: 15px;
    font-weight: 700;
    color: #00ff88;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

.success-message {
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 6px 0;
    line-height: 1.4;
    font-size: 12px;
}

.success-message strong {
    color: #00ff88;
    font-weight: 600;
}

.success-submessage {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
    font-size: 11px;
}

.activation-actions-modern {
    margin: 16px 0;
    display: flex;
    justify-content: center;
}

.activation-form {
    display: inline-block;
}

.btn-activation-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.4),
                0 0 0 0 rgba(0, 255, 136, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-activation-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-activation-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-activation-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 255, 136, 0.5),
                0 0 0 4px rgba(0, 255, 136, 0.2);
}

.btn-activation-primary:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    font-size: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-activation-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.activation-pending-card {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.pending-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

.pending-text {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.4;
    font-size: 12px;
}

.pending-text strong {
    color: #00ff88;
    font-weight: 600;
}

.activation-benefits-modern {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.benefits-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.benefits-icon {
    font-size: 20px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.8;
    }
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.benefit-item:hover::before {
    left: 100%;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.15);
}

.benefit-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: transform 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 3px 0;
}

.benefit-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.3;
}

/* Responsividade para ativação */
@media (max-width: 1024px) {
    .activation-card-modern {
        border-radius: 20px;
        margin-bottom: 30px;
    }
    
    .activation-header-modern {
        padding: 30px 20px 25px;
    }
    
    .activation-header-icon {
        font-size: 40px;
    }
    
    .activation-title-modern {
        font-size: 26px;
    }
    
    .activation-subtitle-modern {
        font-size: 14px;
    }
    
    .activation-body-modern {
        padding: 30px 20px;
    }
    
    .activation-status-badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .description-main {
        font-size: 16px;
    }
    
    .description-sub {
        font-size: 14px;
    }
    
    .activation-success-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .success-icon-wrapper {
        margin: 0 auto;
    }
    
    .btn-activation-primary {
        padding: 16px 32px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .benefit-item {
        padding: 20px;
    }
    
    .activation-actions-modern {
        margin: 30px 0;
    }
    
    .activation-actions {
        flex-direction: column;
    }
    
    .activation-actions .btn {
        width: 100%;
        margin: 5px 0;
    }
}

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

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #2d2d2d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    color: #00ff88;
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* Alertas */
.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    color: #00ff88;
}

.alert-danger {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
    color: #ff4444;
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border-color: #ffaa00;
    color: #ffaa00;
}

.alert-info {
    background: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
    color: #007bff;
}

/* Progress bar */
.progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    background: #00ff88;
    height: 100%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 12px;
    font-weight: bold;
}

/* Responsivo */
@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .btn-group {
        flex-direction: column;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #00ff88;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

    100% {
        transform: rotate(360deg);
    }
}



/* Profile Cards Styles */
.profiles-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.profile-card-modern {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 136, 0.4);
}

.profile-card-header {
    background: rgba(0, 255, 136, 0.1);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-icon {
    color: #00ff88;
    margin-right: 15px;
}

.profile-title-section {
    flex: 1;
}

.profile-title {
    margin: 0;
    color: #00ff88;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.profile-subtitle {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.profile-menu {
    position: relative;
}

.profile-menu-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.profile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00ff88;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.profile-dropdown button {
    width: 100%;
    background: none;
    border: none;
    color: #cccccc;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.profile-dropdown button:hover {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

.profile-content {
    padding: 25px 25px 30px 25px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.profile-photo-section {
    flex-shrink: 0;
}

.profile-photo-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0, 255, 136, 0.3);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    font-size: 12px;
    text-align: center;
}

.profile-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #888;
    font-size: 12px;
}

.profile-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-detail-card-modern {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.profile-detail-card-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00ff88, #00d4ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-detail-card-modern:hover::before {
    opacity: 1;
}

.profile-detail-card-modern:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.15);
}

.profile-detail-icon-wrapper {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.15));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.2);
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-detail-card-modern:hover .profile-detail-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 212, 255, 0.25));
    border-color: rgba(0, 255, 136, 0.4);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.profile-detail-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.profile-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.profile-detail-label-modern {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
}

.profile-detail-value-modern {
    display: block;
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
    margin: 0;
    word-wrap: break-word;
}

.profile-detail-value-modern.last-update {
    color: #aaa;
    font-size: 13px;
    font-weight: 400;
}

.profile-status-badge-modern {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-status-badge-modern.status-connected {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.2);
}

.profile-status-badge-modern.status-disconnected {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.3));
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.profile-status-badge-modern.status-connected::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    animation: pulseDot 2s ease-in-out infinite;
}

.profile-status-badge-modern.status-disconnected::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ff6b6b;
    border-radius: 50%;
    margin-right: 6px;
}

.loading-text {
    color: #888;
    font-size: 13px;
    font-style: italic;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Modal de Perfil Moderno */
.profile-modal-modern {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 0;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.4s ease-out;
}

.profile-modal-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00d4ff, #00ff88);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    border-radius: 20px 20px 0 0;
}

.profile-modal-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 255, 136, 0.05);
    position: relative;
}

.profile-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-modal-icon-wrapper {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
    animation: pulseGlow 2s ease-in-out infinite;
}

.profile-modal-title-modern {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.profile-modal-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.profile-modal-form-modern {
    padding: 28px;
}

.profile-form-group-modern {
    margin-bottom: 24px;
}

.profile-form-label-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 14px;
}

.profile-form-label-modern svg {
    color: #00ff88;
    flex-shrink: 0;
}

.profile-radio-group-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-radio-label-modern {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.profile-radio-label-modern:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateX(4px);
}

.profile-radio-input-modern {
    display: none;
}

.profile-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
}

.profile-radio-label-modern:hover .profile-radio-custom {
    border-color: rgba(0, 255, 136, 0.5);
}

.profile-radio-input-modern:checked + .profile-radio-custom {
    border-color: #00ff88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
}

.profile-radio-input-modern:checked + .profile-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

.profile-radio-input-modern:checked ~ .profile-radio-content .profile-radio-title {
    color: #00ff88;
}

.profile-radio-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-radio-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.profile-radio-description {
    color: #888;
    font-size: 12px;
    line-height: 1.4;
}

.profile-form-actions-modern {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-btn-primary-modern,
.profile-btn-secondary-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.profile-btn-primary-modern {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 212, 255, 0.25));
    border-color: rgba(0, 255, 136, 0.5);
    color: #00ff88;
}

.profile-btn-primary-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.profile-btn-primary-modern:hover::before {
    left: 100%;
}

.profile-btn-primary-modern:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.35), rgba(0, 212, 255, 0.35));
    border-color: rgba(0, 255, 136, 0.7);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3);
}

.profile-btn-secondary-modern {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ccc;
}

.profile-btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.profile-btn-primary-modern svg,
.profile-btn-secondary-modern svg {
    flex-shrink: 0;
}

.profile-btn-primary-modern:hover svg {
    transform: scale(1.1);
}

/* Inputs e Textareas Modernos */
.profile-input-wrapper-modern,
.profile-textarea-wrapper-modern {
    position: relative;
    margin-bottom: 8px;
}

.profile-input-modern,
.profile-textarea-modern {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: opacity 0.2s ease, transform 0.2s ease;
    outline: none;
}

.profile-input-modern::placeholder,
.profile-textarea-modern::placeholder {
    color: #666;
}

.profile-input-modern:focus,
.profile-textarea-modern:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
}

.profile-input-border,
.profile-textarea-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    transition: width 0.3s ease;
    border-radius: 0 0 10px 10px;
}

.profile-input-modern:focus ~ .profile-input-border,
.profile-textarea-modern:focus ~ .profile-textarea-border {
    width: 100%;
}

.profile-textarea-modern {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.profile-input-hint {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 12px;
    line-height: 1.4;
}

/* Preview de Foto Moderno */
.profile-photo-preview-modern {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.4s ease-out;
}

.profile-photo-preview-container {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease, opacity 0.4s ease;
    opacity: 1;
}

.profile-photo-preview-container:hover {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 12px 32px rgba(0, 255, 136, 0.3);
    transform: scale(1.05);
}

.profile-photo-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-photo-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    color: #fff;
}

.profile-photo-preview-container:hover .profile-photo-preview-overlay {
    opacity: 1;
}

/* Botão de Preview */
.profile-btn-preview-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-family: inherit;
}

.profile-btn-preview-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 136, 0.5);
    color: #00ff88;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.profile-btn-preview-modern svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.profile-btn-preview-modern:hover svg {
    transform: scale(1.1);
}

/* Contador de Caracteres */
.profile-char-counter-modern {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 8px;
    font-size: 12px;
    color: #888;
    font-weight: 600;
}

.profile-char-counter-modern span:first-child {
    color: #00ff88;
    min-width: 20px;
    text-align: right;
}

.profile-char-counter-separator {
    color: #555;
    margin: 0 2px;
}

.profile-char-counter-modern span:last-child {
    color: #aaa;
}

/* Animação de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade para Modais de Perfil */
@media (max-width: 1024px) {
    .profile-modal-modern {
        width: 95%;
        max-width: none;
    }
    
    .profile-modal-header-modern {
        padding: 20px;
    }
    
    .profile-modal-form-modern {
        padding: 20px;
    }
    
    .profile-form-actions-modern {
        flex-direction: column;
    }
    
    .profile-btn-primary-modern,
    .profile-btn-secondary-modern {
        width: 100%;
        justify-content: center;
    }
    
    .profile-photo-preview-container {
        width: 150px;
        height: 150px;
    }
}

.profile-actions-modern {
    display: none;
}

.action-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn.primary {
    background: #00ff88;
    color: #000000;
}

.action-btn.primary:hover {
    background: #00cc6a;
    transform: translateY(-1px);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.action-btn.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.action-btn.danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
}

.action-btn.info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.action-btn.info:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    transform: translateY(-1px);
}

/* Responsive adjustments for profile cards */
@media (max-width: 1024px) {
    .profiles-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    
    .profile-photo-container {
        width: 100px;
        height: 100px;
    }
    
    .profile-actions-modern {
        display: none;
    }
}

/* Login and Register Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px;
}

.login-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.login-title {
    color: #00ff88;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.login-subtitle {
    color: #cccccc;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-control::placeholder {
    color: #888888;
}

.password-toggle {
    position: relative;
}

.toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: color 0.3s ease;
}

.toggle-btn:hover {
    color: #00ff88;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    width: 100%;
    margin-bottom: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000000;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00cc6a, #00aa55);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.register-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.register-section p {
    color: #cccccc;
    margin-bottom: 15px;
}

.security-note {
    text-align: center;
    color: #888888;
    font-size: 14px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-text {
    color: #888888;
    font-size: 12px;
    margin-top: 5px;
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para botões pequenos */
.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}

/* Estilos para grupos de botões */
.btn-group {
    display: inline-flex;
    gap: 5px;
}

.btn-group .btn {
    margin-bottom: 0;
    width: auto;
}

/* Estilos para botão de aviso */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

/* Estilos para modais */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 15px;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease;
}

.modal-header {
    background: rgba(0, 255, 136, 0.1);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #00ff88;
    font-size: 18px;
    font-weight: 600;
}

.close {
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #00ff88;
}

.modal form {
    padding: 20px;
}

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

/* Responsive adjustments for login */
@media (max-width: 1024px) {
    .login-container {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .login-box {
        padding: 30px 20px;
        margin: 10px auto;
        max-width: 90%;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .login-subtitle {
        font-size: 14px;
    }
}

/* Estilos para Painel Administrativo */
.admin-card-modern {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: visible;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: block;
}

.admin-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00d4ff, #00ff88);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

.admin-card-modern:hover {
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.2),
                0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    transform: translateY(-2px);
}

.admin-card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 255, 136, 0.05);
    position: relative;
    z-index: 1;
}

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

.admin-card-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-card-modern:hover .admin-card-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 212, 255, 0.3));
    border-color: rgba(0, 255, 136, 0.5);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.admin-card-title-modern {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.admin-card-subtitle-modern {
    color: #888;
    font-size: 13px;
    margin-top: 4px;
}

.admin-table-container-modern {
    overflow-x: hidden;
    overflow-y: visible;
    padding: 0;
    width: 100%;
    display: block;
    position: relative;
    max-width: 100%;
}

.admin-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    display: table;
    table-layout: auto;
    max-width: 100%;
}

.admin-table-modern thead {
    background: rgba(0, 255, 136, 0.05);
    display: table-header-group;
}

.admin-table-modern th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #00ff88;
    border-bottom: 2px solid rgba(0, 255, 136, 0.2);
    display: table-cell;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.admin-table-modern td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ccc;
    font-size: 14px;
    display: table-cell;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.admin-table-modern tbody {
    display: table-row-group;
}

.admin-table-modern tr {
    display: table-row;
}

.admin-table-row-modern {
    transition: all 0.2s ease;
    display: table-row;
}

.admin-table-row-modern:hover {
    background: rgba(0, 255, 136, 0.05);
    transform: scale(1.01);
}

.admin-text-muted {
    color: #888;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.admin-badge-modern {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-badge-success {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.admin-badge-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.admin-badge-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.2), rgba(0, 188, 212, 0.2));
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.admin-badge-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-badge-primary {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 212, 255, 0.25));
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.4);
}

.admin-badge-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(255, 69, 58, 0.2));
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.admin-btn-group-modern {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 2px solid transparent;
    font-family: inherit;
}

.admin-btn-primary-modern {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 212, 255, 0.25));
    border-color: rgba(0, 255, 136, 0.5);
    color: #00ff88;
}

.admin-btn-primary-modern:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.35), rgba(0, 212, 255, 0.35));
    border-color: rgba(0, 255, 136, 0.7);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.admin-btn-warning-modern {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    border-color: rgba(255, 193, 7, 0.4);
    color: #ffc107;
}

.admin-btn-warning-modern:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 152, 0, 0.3));
    border-color: rgba(255, 193, 7, 0.6);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.admin-btn-success-modern {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 212, 255, 0.25));
    border-color: rgba(0, 255, 136, 0.5);
    color: #00ff88;
}

.admin-btn-success-modern:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.35), rgba(0, 212, 255, 0.35));
    border-color: rgba(0, 255, 136, 0.7);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.admin-btn-danger-modern {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
    color: #ff6b6b;
}

.admin-btn-danger-modern:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.6);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.admin-empty-modern {
    padding: 48px 24px;
    text-align: center;
    color: #888;
}

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

.admin-btn-secondary-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-btn-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.admin-pagination-wrapper {
    padding: 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 255, 136, 0.02);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Formulários Admin */
.admin-form-modern {
    padding: 28px;
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

.admin-form-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
}

.admin-form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.admin-form-label-modern {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    display: block;
}

.admin-form-input-modern {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    outline: none;
    width: 100%;
    display: block;
    box-sizing: border-box;
}

.admin-form-input-modern:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
}

.admin-form-input-modern option {
    background: #141414;
    color: #fff;
    padding: 8px;
}

select.admin-form-input-modern {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2300ff88' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 40px !important;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.admin-info-card-modern {
    padding: 16px;
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-radius: 12px;
    margin-top: 20px;
}

.admin-info-card-modern strong {
    color: #17a2b8;
    display: block;
    margin-bottom: 8px;
}

.admin-info-card-modern {
    color: #aaa;
    font-size: 13px;
    line-height: 1.6;
}

/* Modal Admin Moderno */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.admin-modal-modern {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 0;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    margin: auto;
}

.admin-modal-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00d4ff, #00ff88);
    background-size: 200% 100%;
    animation: shimmer 4s infinite;
    will-change: background-position;
}

.admin-modal-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 255, 136, 0.05);
}

.admin-modal-title-modern {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-modal-close-modern {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    font-size: 24px;
    line-height: 1;
    will-change: transform;
}

.admin-modal-close-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    will-change: transform;
}

.admin-modal-body-modern {
    padding: 28px;
}

/* Modal de Confirmação Elegante */
.status-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.status-modal-content {
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 0;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.status-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00d4ff, #00ff88);
    background-size: 200% 100%;
    animation: shimmer 4s infinite;
    will-change: background-position;
}

.status-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 32px auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.status-icon {
    width: 48px;
    height: 48px;
    color: #ffc107;
}

.warning-icon {
    color: #ffc107;
}

.status-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 0 32px 16px;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-message {
    color: #ccc;
    font-size: 15px;
    text-align: center;
    margin: 0 32px 32px;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    padding: 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 255, 136, 0.02);
}

.confirm-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.confirm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

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

.confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ccc;
}

.confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.confirm-btn-confirm {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.25), rgba(255, 69, 58, 0.25));
    border-color: rgba(220, 53, 69, 0.5);
    color: #ff6b6b;
}

.confirm-btn-confirm:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.35), rgba(255, 69, 58, 0.35));
    border-color: rgba(220, 53, 69, 0.7);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.confirm-modal-content {
    animation: slideUpModal 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUpModal {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

@media (max-width: 1024px) {
    .status-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .status-title {
        font-size: 20px;
    }
    
    .status-message {
        font-size: 14px;
    }
    
    .confirm-actions {
        flex-direction: column;
    }
    
    .confirm-btn {
        width: 100%;
    }
}