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

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

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;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Layout principal com sidebar */
body {
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #0d1117 100%);
    border-right: 1px solid rgba(0, 255, 136, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

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

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

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

.sidebar-logo i {
    font-size: 24px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

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

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    margin-bottom: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #cccccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-link:hover {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border-left-color: #00ff88;
    transform: translateX(5px);
}

.sidebar-link.active {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border-left-color: #00ff88;
    font-weight: 600;
}

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

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cccccc;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 14px;
}

.sidebar-footer .user-info i {
    color: #00ff88;
}

.sidebar-footer .logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff4444, #cc3333);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    justify-content: center;
}

.sidebar-footer .logout-btn:hover {
    background: linear-gradient(135deg, #cc3333, #aa2222);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    height: 70px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    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: all 0.3s 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: all 0.3s 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;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Ajuste do conteúdo principal */
.container {
    position: fixed;
    left: 280px;
    right: 0;
    top: 70px;
    bottom: 0;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

/* 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: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .top-header {
        left: 0;
    }
    
    .container {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
}

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

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

.login-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 20px auto;
    position: relative;
    z-index: 1000;
}

.login-title {
    font-size: 32px;
    color: #00ff88;
    margin-bottom: 10px;
    font-weight: bold;
}

.login-subtitle {
    color: #cccccc;
    margin-bottom: 30px;
    font-size: 14px;
}

.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: all 0.3s 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: all 0.3s 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 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s 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;
    animation: pulse 2s infinite;
}

.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: all 0.3s ease;
    position: relative;
}

.profile-card-modern:hover {
    transform: translateY(-2px);
    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 {
    padding: 16px 24px 20px;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
    display: flex;
    gap: 12px;
}

.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);
}

/* Responsive design for profile cards */
@media (max-width: 768px) {
    .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 para interface de ativação */
.activation-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 30px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.activation-card .card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.activation-card .card-title {
    color: white;
    font-weight: bold;
}

.activation-content {
    text-align: center;
    padding: 20px;
}

.activation-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.activation-content h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.activation-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.activation-actions {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.activation-actions .btn-success {
    background: #28a745;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activation-actions .btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.activation-actions .btn-outline-primary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activation-actions .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.activation-benefits {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.activation-benefits h4 {
    color: white;
    margin-bottom: 15px;
    text-align: center;
}

.activation-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activation-benefits li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-size: 1rem;
}

.activation-card .alert-info {
    background: rgba(23, 162, 184, 0.2);
    border: 1px solid rgba(23, 162, 184, 0.5);
    color: white;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsividade para ativação */
@media (max-width: 768px) {
    .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: 768px) {
    .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: all 0.3s 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;
    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: 15px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.detail-icon {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

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

.detail-label {
    color: #888;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-connected {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.last-update {
    color: #888;
    font-size: 12px;
}

.profile-actions-modern {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
}

.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);
}

/* Responsive adjustments for profile cards */
@media (max-width: 768px) {
    .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 {
        flex-direction: column;
    }
}

/* 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(10px);
}

.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: all 0.3s 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: all 0.3s 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(10px);
    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: 768px) {
    .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;
    }
}