* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Bordas */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    
    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tema Padrão: Preto e Vermelho */
:root,
body.theme-red-black {
    /* Cores Principais - Vermelho */
    --primary: #ef4444;
    --primary-dark: #dc2626;
    --primary-light: #f87171;
    --secondary: #b91c1c;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Backgrounds - Preto */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --bg-card: #0a0a0a;
    
    /* Textos */
    --text-primary: #ffffff;
    --text-secondary: #fca5a5;
    --text-tertiary: #f87171;
    
    /* Bordas e Sombras */
    --border: #1a1a1a;
    --shadow: rgba(239, 68, 68, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Layout */
.app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 320px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-close-mobile {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: var(--transition);
}

.sidebar-close-mobile:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile Menu Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-right: 12px;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    color: var(--primary);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: #ef4444;
    text-align: center;
    line-height: 1.2;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

#client-ip-display {
    color: #ef4444;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.server-status span:not(#client-ip-display) {
    color: var(--text-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-indicator.offline {
    background: var(--error);
    animation: none;
}

/* Navigation */
.nav-menu {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-bottom: 4px;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 12px var(--shadow);
}

.nav-item svg {
    flex-shrink: 0;
}

.nav-item .badge {
    margin-left: auto;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.nav-item.active .badge {
    background: rgba(255, 255, 255, 0.2);
}

/* Sidebar User */
.sidebar-user {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-logout:hover {
    background: var(--bg-tertiary);
    border-color: var(--error);
    color: var(--error);
}

.btn-logout svg {
    width: 18px;
    height: 18px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: calc(100vw - 320px);
}

/* Top Bar */
.top-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar svg {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
}

.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--shadow);
}

.top-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Theme Selector */
.theme-selector {
    position: relative;
}

.theme-btn {
    position: relative;
}

.theme-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1000;
    animation: slideDown 0.2s ease-out;
}

.theme-menu.show {
    display: block;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.theme-option:hover {
    background: var(--bg-tertiary);
}

.theme-option.active {
    background: var(--bg-tertiary);
    border: 1px solid var(--primary);
}

.theme-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-button {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.icon-button:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--error);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.view {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-header {
    margin-bottom: 32px;
}

.view-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.view-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: var(--transition);
    animation: slideUp 0.5s ease-out;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--primary);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-title {
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-change {
    font-size: 12px;
    color: var(--text-tertiary);
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--error);
}

/* Grid Layout */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.detail-item {
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item strong {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-size: 14px;
    color: var(--text-primary);
}

/* Client Manager */
.client-manager {
    padding: 0;
}

.manager-header {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-bottom: 1px solid var(--border);
}

.client-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    flex-shrink: 0;
}

.client-main-info {
    flex: 1;
}

.client-main-info h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.client-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 14px;
    color: var(--text-secondary);
}

.quick-stats {
    display: flex;
    gap: 32px;
}

.quick-stat {
    text-align: center;
}

.quick-stat .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.quick-stat .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tabs */
.manager-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 32px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    padding: 32px;
    max-height: 70vh;
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

/* Overview Tab */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.overview-section {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--radius);
}

.overview-section.full-width {
    grid-column: 1 / -1;
}

.overview-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.stat-row:last-child {
    border-bottom: none;
}

.top-sites {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.site-icon {
    font-size: 20px;
}

.site-name {
    flex: 1;
}

.site-count {
    font-weight: 600;
    color: var(--primary);
}

.recent-activity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-log-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.activity-log-item:hover {
    background: var(--bg-primary);
}

.log-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.log-content {
    flex: 1;
}

.log-title {
    font-size: 14px;
    margin-bottom: 2px;
}

.log-time {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Logs Manager */
.logs-manager {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    height: 550px;
}

.categories-sidebar {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--radius);
    overflow-y: auto;
}

.categories-sidebar h3 {
    margin-bottom: 16px;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-item:hover {
    background: var(--bg-primary);
}

.category-item.selected {
    border-color: var(--primary);
    background: var(--bg-tertiary);
}

.category-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.category-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.download-category-btn {
    padding: 4px 8px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.download-category-btn:hover {
    transform: scale(1.1);
}

.logs-detail-container {
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    overflow: hidden;
}

.category-logs {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-header h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.category-header p {
    font-size: 12px;
    color: var(--text-secondary);
}

.logs-table-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.logs-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.logs-detail-table thead {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 1;
}

.logs-detail-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-bottom: 2px solid var(--border);
}

.logs-detail-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.log-row:hover {
    background: var(--bg-secondary);
}

.log-timestamp {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.time-small {
    font-size: 11px;
    color: var(--text-secondary);
}

.log-type-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.log-type-badge.connect {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.log-type-badge.data {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.log-type-badge.activity {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.log-url {
    color: var(--primary);
    text-decoration: none;
    font-size: 12px;
}

.log-url:hover {
    text-decoration: underline;
}

.text-muted {
    color: var(--text-tertiary);
}

/* Cookies Manager */
.cookies-manager {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cookies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.cookies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    padding-right: 8px;
    min-height: 0;
}

.cookies-list::-webkit-scrollbar {
    width: 6px;
}

.cookies-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.cookies-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.cookies-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.cookie-group {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-all;
    min-width: 0;
}

.cookie-group-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    min-width: 0;
}

.cookie-group-header > div {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.cookie-group-header strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
}

.cookie-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cookie-count-badge {
    margin-top: 8px;
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    color: var(--primary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Cookie Group Reorganized Structure */
.cookie-group-content {
    flex: 1;
}

.cookie-group-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.cookie-group-actions .btn-secondary {
    width: 100%;
}

.cookies-footer-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.cookies-footer-actions .btn-primary {
    width: 100%;
}

/* Category Footer Actions */
.category-footer-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    background: var(--bg-secondary);
}

.category-footer-actions .btn-primary {
    width: 100%;
}

/* Mobile Tabs Select - Hidden by default on desktop */
.manager-tabs-mobile {
    display: none;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

/* Desktop tabs visible by default */
.desktop-tabs {
    display: flex;
}

.tab-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ef4444' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    transition: var(--transition);
}

.tab-select:hover {
    border-color: var(--primary);
}

.tab-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ==================== Mobile Responsive - Client Details Modal ==================== */
@media (max-width: 768px) {
    /* Manager Header - Mobile */
    .manager-header {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    
    .client-avatar-large {
        width: 60px;
        height: 60px;
        font-size: 24px;
        align-self: center;
    }
    
    .client-main-info {
        text-align: center;
        width: 100%;
    }
    
    .client-main-info h2 {
        font-size: 20px;
        justify-content: center;
    }
    
    .client-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
    }
    
    .meta-item {
        font-size: 12px;
    }
    
    .quick-stats {
        width: 100%;
        justify-content: space-around;
        gap: 16px;
    }
    
    .quick-stat .stat-value {
        font-size: 24px;
    }
    
    .quick-stat .stat-label {
        font-size: 11px;
    }
    
    /* Tabs - Mobile: Hide desktop, show mobile select */
    .desktop-tabs {
        display: none !important;
    }
    
    .mobile-tabs {
        display: block !important;
    }
    
    /* Tab Content - Mobile */
    .tab-content {
        padding: 16px;
        max-height: calc(100vh - 300px);
    }
    
    /* Overview Tab - Mobile */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .overview-section {
        padding: 16px;
    }
    
    .overview-section h3 {
        font-size: 14px;
    }
    
    /* Logs Manager - Mobile */
    .logs-manager {
        grid-template-columns: 1fr;
        height: auto;
        gap: 16px;
    }
    
    .categories-sidebar {
        max-height: 200px;
        order: 2;
    }
    
    .logs-detail-container {
        order: 1;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    
    .category-header h3 {
        font-size: 16px;
    }
    
    .logs-table-container {
        padding: 12px;
        overflow-x: auto;
    }
    
    .logs-detail-table {
        min-width: 600px;
        font-size: 12px;
    }
    
    .logs-detail-table th,
    .logs-detail-table td {
        padding: 8px;
        font-size: 11px;
    }
    
    /* Cookies Manager - Mobile */
    .cookies-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .cookies-header h3 {
        font-size: 16px;
        margin: 0;
    }
    
    .cookie-group {
        padding: 12px;
    }
    
    .cookie-group-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-group-header > div {
        width: 100%;
    }
    
    .cookie-group-header strong {
        font-size: 13px;
        word-break: break-word;
        white-space: normal;
    }
    
    .cookie-meta {
        font-size: 11px;
        white-space: normal;
    }
    
    .cookie-group-actions {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .cookies-footer-actions {
        margin-top: 16px;
        padding-top: 16px;
    }
    
    /* Info Tab - Mobile */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .info-section {
        padding: 16px;
    }
    
    .info-section h3 {
        font-size: 14px;
    }
    
    /* Open Tabs Grid - Mobile */
    .open-tabs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tab-card {
        padding: 12px;
    }
    
    .tab-header {
        gap: 10px;
    }
    
    .tab-title {
        font-size: 13px;
    }
    
    .tab-url {
        font-size: 11px;
    }
    
    .tab-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .tab-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Manager Header - Small Mobile */
    .manager-header {
        padding: 16px;
    }
    
    .client-avatar-large {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .client-main-info h2 {
        font-size: 18px;
    }
    
    .quick-stats {
        gap: 12px;
    }
    
    .quick-stat .stat-value {
        font-size: 20px;
    }
    
    .quick-stat .stat-label {
        font-size: 10px;
    }
    
    /* Tab Content - Small Mobile */
    .tab-content {
        padding: 12px;
    }
    
    /* Logs Table - Small Mobile */
    .logs-detail-table {
        min-width: 700px;
        font-size: 11px;
    }
    
    .logs-detail-table th,
    .logs-detail-table td {
        padding: 6px;
        font-size: 10px;
    }
    
    /* Cookies - Small Mobile */
    .cookie-group {
        padding: 10px;
    }
    
    .cookie-group-header strong {
        font-size: 12px;
    }
    
    .cookie-meta {
        font-size: 10px;
    }
    
    /* Category Footer - Small Mobile */
    .category-footer-actions {
        padding: 12px 16px;
    }
    
    .category-footer-actions .btn-primary {
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* Info Tab */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.info-section {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--radius);
}

.info-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
}

.info-value.small {
    font-size: 12px;
}

/* Log Details */
.log-details {
    padding: 24px;
}

.log-data-viewer {
    background: var(--bg-primary);
    padding: 16px;
    border-radius: var(--radius-sm);
    max-height: 500px;
    overflow: auto;
    margin: 16px 0;
}

.log-data-viewer pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Realtime Activity Table */
.full-width-card {
    grid-column: 1 / -1;
}

.live-indicator {
    color: var(--error);
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.realtime-table-container,
#monitor-logs-table-container,
#monitor-domain-table-container,
#monitor-sites-table-container {
    max-height: 400px;
    overflow-y: auto;
}

.realtime-table,
.monitor-table {
    width: 100%;
    border-collapse: collapse;
}

.realtime-table thead,
.monitor-table thead {
    position: sticky;
    top: 0;
    background: var(--bg-tertiary);
    z-index: 1;
}

.realtime-table th,
.monitor-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-bottom: 2px solid var(--border);
}

.realtime-table td,
.monitor-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.realtime-row {
    transition: var(--transition);
    animation: slideIn 0.3s ease-out;
}

.realtime-row:hover {
    background: var(--bg-tertiary);
}

.time-cell {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.client-id {
    font-size: 11px;
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.title-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-cell {
    font-size: 12px;
}

.domain-badge {
    padding: 4px 8px;
    background: var(--bg-tertiary);
    color: var(--primary);
    border-radius: 4px;
    font-size: 11px;
}

.activity-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.activity-badge.activity {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.activity-badge.data {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

/* Open Tabs */
.open-tabs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.tab-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.tab-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tab-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.tab-favicon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 4px;
}

.tab-info {
    flex: 1;
    min-width: 0;
}

.tab-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-url {
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.tab-time {
    font-size: 11px;
    color: var(--text-tertiary);
}

.tab-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.tab-link:hover {
    background: var(--bg-tertiary);
}

/* Manager Modal */
.manager-container {
    padding: 0;
}

.manager-client-info {
    padding: 20px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 16px;
    align-items: center;
}

.manager-client-info strong {
    font-size: 16px;
}

.manager-tools-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.manager-card {
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
}

.manager-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.manager-card-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.manager-card-content {
    flex: 1;
}

.manager-card-content h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.manager-card-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

.manager-card-arrow {
    font-size: 24px;
    color: var(--text-tertiary);
}

.tool-section {
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border);
}

.tool-header h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.tool-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.tool-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.code-editor {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    resize: vertical;
}

.code-editor:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--shadow);
}

.keylogger-controls {
    display: flex;
    gap: 12px;
}

.keylogger-info {
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-commands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.cmd-btn {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}

.cmd-btn:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.preset-scripts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.preset-btn {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 600;
}

.preset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

/* Inject Modal */
.inject-container {
    padding: 0;
}

.inject-header {
    padding: 20px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.inject-header h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.inject-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.inject-content {
    padding: 24px;
}

.inject-presets {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.inject-presets h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preset-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preset-mini-btn {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.preset-mini-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.code-section {
    margin-bottom: 20px;
}

.code-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.inject-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Stream Modal */
.stream-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.stream-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Stream Sidebar */
.stream-sidebar {
    width: 300px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Botões de toggle - escondidos por padrão (desktop) */
.stream-sidebar-toggle,
.stream-sidebar-close {
    display: none;
}

.stream-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-tertiary);
}

.stream-sidebar-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.stream-sidebar-control {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
    flex-shrink: 0;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-secondary);
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: white;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.toggle-label svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.toggle-description {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-tertiary);
    line-height: 1.4;
    padding-left: 56px;
}

.btn-icon {
    padding: 6px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.stream-tabs-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.empty-tabs {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-tertiary);
}

.empty-tabs p {
    margin-bottom: 8px;
    font-size: 14px;
}

.empty-tabs small {
    font-size: 12px;
    color: var(--text-tertiary);
}

.stream-tab-item {
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.stream-tab-item:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    transform: translateX(4px);
}

.stream-tab-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.stream-tab-item.active .tab-item-title,
.stream-tab-item.active .tab-item-url {
    color: white;
}

.stream-tab-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-secondary);
}

.stream-tab-item.disabled:hover {
    background: var(--bg-secondary);
    border-color: var(--border);
    transform: none;
}

.tab-locked-icon {
    font-size: 12px;
    opacity: 0.5;
    flex-shrink: 0;
    margin-left: auto;
}

.tab-favicon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 4px;
}

.tab-item-info {
    flex: 1;
    min-width: 0;
}

.tab-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-item-url {
    font-size: 11px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-active-indicator {
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

/* Stream Content */
.stream-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.stream-header {
    padding: 20px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stream-header h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.stream-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.stream-status {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.stream-status.active {
    background: var(--error);
    color: white;
    animation: pulse 2s infinite;
}

.stream-controls {
    padding: 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.fps-control {
    margin-bottom: 20px;
}

.fps-control label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.fps-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.fps-btn {
    padding: 8px 20px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.fps-btn:hover {
    border-color: var(--primary);
    background: var(--bg-primary);
}

.fps-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.fps-control small {
    font-size: 12px;
    color: var(--text-tertiary);
}

.stream-actions {
    display: flex;
    justify-content: center;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.stream-viewer {
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

/* Stream Bottom Controls */
.stream-bottom-controls {
    padding: 16px 24px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.stream-control-btn {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.stream-control-btn:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.stream-control-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.stream-control-btn.danger {
    background: var(--bg-secondary);
    border-color: var(--error);
    color: var(--error);
}

.stream-control-btn.danger:hover {
    background: var(--error);
    color: white;
}

.stream-control-btn svg {
    flex-shrink: 0;
}

.stream-control-btn {
    position: relative;
}

/* Apenas botões com token indicator precisam de padding extra */
.stream-control-btn:has(.token-status-indicator) {
    padding-left: 24px !important;
}

.token-status-indicator {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
}

.token-status-indicator.green {
    background-color: var(--success);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.token-status-indicator.red {
    background-color: var(--error);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.stream-placeholder {
    text-align: center;
    color: var(--text-tertiary);
    padding: 60px 20px;
}

.stream-placeholder svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.stream-placeholder p {
    font-size: 14px;
}

.stream-info {
    background: var(--bg-tertiary);
    padding: 12px 20px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.stream-tab-info {
    flex: 1;
    min-width: 0;
}

.stream-tab-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stream-tab-url {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-fullscreen-btn {
    padding: 8px 16px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 16px;
}

.stream-fullscreen-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.stream-image-container {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    max-height: 60vh;
    overflow: auto;
}

.stream-image {
    max-width: 100%;
    max-height: 55vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px var(--shadow);
    object-fit: contain;
}

/* Fullscreen Mode */
.stream-viewer.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    z-index: 9999;
    background: #000;
}

.stream-viewer.fullscreen .stream-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
}

.stream-viewer.fullscreen .stream-tab-title {
    color: white;
}

.stream-viewer.fullscreen .stream-tab-url {
    color: rgba(255, 255, 255, 0.7);
}

.stream-viewer.fullscreen .stream-image-container {
    max-height: calc(100vh - 60px);
    padding: 60px 0 0 0;
}

.stream-viewer.fullscreen .stream-image {
    max-width: 100vw;
    max-height: calc(100vh - 60px);
    border-radius: 0;
}

/* Fullscreen Toolbar */
.fullscreen-toolbar {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    gap: 12px;
    z-index: 10001;
    transition: bottom 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
}

.fullscreen-toolbar.visible {
    bottom: 0;
}

.fullscreen-toolbar-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fullscreen-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.fullscreen-toolbar-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Floating Panels */
.floating-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 500px;
    max-height: 75vh;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    z-index: 10002;
    transition: opacity 0.3s ease, background 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.floating-panel.transparent {
    opacity: 0.5;
    background: rgba(30, 41, 59, 0.3);
}

.floating-panel:hover {
    opacity: 1 !important;
    background: rgba(30, 41, 59, 0.98) !important;
}

.floating-panel-header {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.floating-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.floating-panel-close {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.floating-panel-close:hover {
    background: var(--error);
}

.floating-panel-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.floating-keylog-item {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border-left: 4px solid var(--primary);
    animation: slideInRight 0.3s ease;
}

.floating-keylog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.floating-keylog-site {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.floating-keylog-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.floating-keylog-field {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.floating-keylog-field-name {
    font-weight: 600;
}

.floating-keylog-field-type {
    color: rgba(255, 255, 255, 0.4);
}

.floating-keylog-value {
    font-size: 14px;
    color: white;
    font-weight: 600;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    word-break: break-all;
}

.floating-keylog-item.password {
    border-left-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.floating-keylog-item.password .floating-keylog-value::before {
    content: '🔒 ';
}

.floating-cookies-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-cookie-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: white;
}

.floating-panel-actions {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
}

.floating-btn {
    flex: 1;
    padding: 8px 12px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.floating-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Browser Data Modal */
.browser-data-container {
    padding: 0;
}

.browser-data-header {
    padding: 20px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.browser-data-header h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.browser-data-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.browser-data-table {
    padding: 24px;
    max-height: 65vh;
    overflow-y: auto;
}

.url-cell {
    font-size: 11px;
    color: var(--text-secondary);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-badge {
    padding: 4px 8px;
    background: var(--bg-tertiary);
    color: var(--secondary);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Keylogger View */
.keylogger-clients-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.keylog-client-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.keylog-client-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.keylog-client-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.keylog-client-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.keylog-client-info {
    flex: 1;
}

.keylog-client-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.keylog-client-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.keylog-client-stats {
    text-align: center;
}

.keylog-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.keylog-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    transition: all 0.3s ease;
}

.keylog-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.keylog-client-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-keylogger {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-keylogger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-keylogger.active {
    background: linear-gradient(135deg, var(--error), #dc2626);
}

.btn-keylogger.active:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Keylog Data View */
.keylog-data-view {
    padding: 0;
}

.keylog-data-header {
    padding: 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.keylog-data-header h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.keylog-data-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.keylog-table-container {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: auto;
}

.keylog-data-view .modal-content {
    max-width: 95vw !important;
}

.keylogger-table-wrapper {
    overflow-x: auto;
}

.keylogger-table {
    width: 100%;
    border-collapse: collapse;
}

.keylogger-table thead {
    background: var(--bg-tertiary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.keylogger-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-bottom: 2px solid var(--border);
}

.keylogger-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.keylog-row {
    transition: var(--transition);
    animation: slideIn 0.3s ease-out;
}

.keylog-row:hover {
    background: var(--bg-tertiary);
}

.content-cell {
    max-width: 400px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.field-cell {
    font-size: 11px;
}

.field-cell code {
    padding: 2px 6px;
    background: var(--bg-primary);
    border-radius: 4px;
    font-size: 11px;
}

.field-type {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-left: 4px;
}

.char-count {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-left: 8px;
}

.keylog-content-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.keylog-row.password-field {
    background: rgba(239, 68, 68, 0.05);
}

.keylog-row.email-field {
    background: rgba(59, 130, 246, 0.05);
}

.keylog-type-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.keylog-type-badge.keypress {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.keylog-type-badge.input {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.keylog-type-badge.paste {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.keylog-detail-view {
    padding: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.detail-row.full-width {
    grid-column: 1 / -1;
}

.detail-row strong {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.keylog-content-box {
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
}

.target-info {
    margin: 0;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    overflow-x: auto;
}

/* Keylogger Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Keylogger Cards - Mobile */
    .keylog-client-card {
        padding: 16px;
    }
    
    .keylog-client-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .keylog-client-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .keylog-client-info {
        width: 100%;
    }
    
    .keylog-client-name {
        font-size: 16px;
    }
    
    .rename-client-btn {
        font-size: 14px;
        padding: 2px 4px;
    }
    
    .keylog-client-meta {
        flex-direction: column;
        gap: 6px;
        font-size: 12px;
    }
    
    .keylog-client-meta span {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .keylog-client-stats {
        width: 100%;
        text-align: left;
        margin-top: 8px;
    }
    
    .keylog-stat-value {
        font-size: 24px;
    }
    
    .keylog-stat-label {
        font-size: 10px;
    }
    
    .keylog-client-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .keylog-client-actions button,
    .keylog-client-actions .btn-secondary {
        width: 100%;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .keylog-client-actions .text-muted {
        width: 100%;
        text-align: center;
        padding: 8px;
    }
    
    /* Keylog Data Modal - Mobile */
    .keylog-data-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    
    .keylog-data-header h3 {
        font-size: 18px;
    }
    
    .keylog-data-header p {
        font-size: 12px;
    }
    
    .keylog-data-header button {
        width: 100%;
        padding: 10px 16px;
    }
    
    .keylog-table-container {
        padding: 12px;
        max-height: 60vh;
        overflow-x: auto;
    }
    
    .keylogger-table {
        font-size: 11px;
    }
    
    .keylogger-table th {
        padding: 8px 10px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    .keylogger-table td {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .keylogger-table th:nth-child(1),
    .keylogger-table td:nth-child(1) {
        min-width: 120px;
    }
    
    .keylogger-table th:nth-child(2),
    .keylogger-table td:nth-child(2) {
        min-width: 150px;
    }
    
    .keylogger-table th:nth-child(3),
    .keylogger-table td:nth-child(3) {
        min-width: 80px;
    }
    
    .keylogger-table th:nth-child(4),
    .keylogger-table td:nth-child(4) {
        min-width: 200px;
        max-width: 200px;
    }
    
    .keylogger-table th:nth-child(5),
    .keylogger-table td:nth-child(5) {
        min-width: 120px;
    }
    
    .content-cell {
        max-width: 200px;
        font-size: 11px;
        word-break: break-word;
    }
    
    .field-cell {
        font-size: 10px;
    }
    
    .field-cell code {
        font-size: 10px;
        padding: 2px 4px;
    }
    
    .keylog-type-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .domain-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .keylog-content-box {
        font-size: 12px;
        padding: 12px;
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    /* Keylogger Cards - Small Mobile */
    .keylog-client-card {
        padding: 12px;
    }
    
    .keylog-client-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .keylog-client-name {
        font-size: 15px;
    }
    
    .rename-client-btn {
        font-size: 13px;
        padding: 2px 4px;
    }
    
    .keylog-client-meta {
        font-size: 11px;
    }
    
    .keylog-stat-value {
        font-size: 20px;
    }
    
    .keylog-client-actions button,
    .keylog-client-actions .btn-secondary {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Keylog Data Modal - Small Mobile */
    .keylog-data-header {
        padding: 12px;
    }
    
    .keylog-data-header h3 {
        font-size: 16px;
    }
    
    .keylog-table-container {
        padding: 8px;
        max-height: 55vh;
    }
    
    .keylogger-table {
        font-size: 10px;
    }
    
    .keylogger-table th {
        padding: 6px 8px;
        font-size: 9px;
    }
    
    .keylogger-table td {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .content-cell {
        max-width: 150px;
        font-size: 10px;
    }
    
    .time-cell {
        font-size: 9px;
        white-space: nowrap;
    }
    
    .keylog-content-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Activity List */
.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-item:hover {
    background: var(--bg-tertiary);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.connect {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.activity-icon.disconnect {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.activity-icon.data {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Clients List */
.clients-list {
    max-height: 400px;
    overflow-y: auto;
}

.client-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
    animation: slideIn 0.3s ease-out;
}

.client-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.client-item:last-child {
    border-bottom: none;
}

.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.client-info {
    flex: 1;
}

.client-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.client-details {
    font-size: 12px;
    color: var(--text-tertiary);
}

.client-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

/* Table */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-tertiary);
}

.data-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.data-table tbody tr {
    transition: var(--transition);
    animation: slideIn 0.3s ease-out;
}

.data-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.offline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    color: var(--primary);
}

/* Rules Grid */
.rules-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.rule-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    animation: slideUp 0.5s ease-out;
}

.rule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--primary);
}

.rule-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rule-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.rule-card-url {
    font-size: 13px;
    color: var(--text-tertiary);
    word-break: break-all;
}

.rule-toggle {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.rule-toggle.active {
    background: var(--primary);
    border-color: var(--primary);
}

.rule-toggle::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: var(--transition);
}

.rule-toggle.active::after {
    left: 22px;
}

.rule-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.rule-action-tag {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--primary);
}

.rule-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.rule-stats {
    font-size: 12px;
    color: var(--text-tertiary);
}

.rule-card-actions {
    display: flex;
    gap: 8px;
}

/* Logs Container */
.logs-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 16px;
}

/* Logs Sections */
.logs-section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-badge {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.stat-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.stat-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.stat-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.stat-badge.info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

/* Auth Logs */
.auth-logs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-log-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.auth-log-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.auth-log-item.success {
    border-left-color: var(--success);
}

.auth-log-item.error {
    border-left-color: var(--error);
}

.auth-log-item.warning {
    border-left-color: var(--warning);
}

.auth-log-item.info {
    border-left-color: var(--info);
}

.auth-log-icon {
    font-size: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.auth-log-content {
    flex: 1;
}

.auth-log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.auth-log-type {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-log-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.auth-log-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.auth-log-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-log-detail svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.auth-log-detail strong {
    color: var(--text-primary);
    font-weight: 600;
}

.auth-log-message {
    padding: 10px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

/* System Logs List */
.system-logs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-item {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border-left: 3px solid var(--border);
    animation: slideIn 0.3s ease-out;
    transition: var(--transition);
}

.log-item:hover {
    background: var(--bg-primary);
}

.log-item.connect {
    border-left-color: var(--success);
}

.log-item.disconnect {
    border-left-color: var(--error);
}

.log-item.data {
    border-left-color: var(--info);
}

.log-item.rule_match {
    border-left-color: var(--warning);
}

.log-item.error {
    border-left-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.log-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.log-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.log-message {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.log-data {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
}

/* Filters */
.filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    color: var(--text-primary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Badge */
.badge {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-tertiary);
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 16px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease-out;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.modal-content.large {
    max-width: 98vw;
    width: 98vw;
    max-height: 95vh;
    height: 95vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.modal-content.medium {
    max-width: 700px;
    width: 90%;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-body {
    padding: 24px;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.modal-content.large .modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--shadow);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.checkbox-label:hover {
    background: var(--bg-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    min-width: 300px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.error {
    border-left: 3px solid var(--error);
}

.toast.info {
    border-left: 3px solid var(--info);
}

.toast.warning {
    border-left: 3px solid var(--warning);
}

/* Authentication Required Modal */
#authentication-required-modal .modal-content.medium {
    max-width: 600px;
    width: 90%;
}

.auth-required-content {
    padding: 20px;
    text-align: center;
}

.auth-required-icon {
    margin-bottom: 24px;
    color: var(--warning);
}

.auth-required-icon svg {
    width: 64px;
    height: 64px;
}

.auth-required-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.auth-required-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.auth-required-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    text-align: left;
}

.auth-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    padding-top: 4px;
}

/* MFA Methods Modal */
.mfa-methods-container {
    padding: 32px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mfa-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.mfa-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mfa-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.mfa-loading,
.mfa-error,
.mfa-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.mfa-loading svg,
.mfa-error svg,
.mfa-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.mfa-loading p,
.mfa-error p,
.mfa-empty p {
    color: var(--text-secondary);
    margin-top: 8px;
}

.mfa-error h3,
.mfa-empty h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.mfa-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 0;
    flex: 1;
}

.mfa-method-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mfa-method-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--shadow);
}

.mfa-method-card.enabled {
    border-left: 3px solid var(--success);
}

.mfa-method-card.disabled {
    border-left: 3px solid var(--text-tertiary);
    opacity: 0.7;
}

.mfa-method-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
}

.mfa-method-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.mfa-method-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mfa-method-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.mfa-method-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    word-break: break-word;
    line-height: 1.4;
}

.mfa-method-type {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.mfa-method-status {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.enabled {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-badge.disabled {
    background: rgba(100, 116, 139, 0.2);
    color: var(--text-tertiary);
}

.mfa-method-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 20px;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.mfa-method-note {
    font-size: 12px;
    color: var(--text-tertiary);
    font-style: italic;
}

.btn-danger {
    background: var(--error);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
    }
    
    .main-content {
        max-width: calc(100vw - 280px);
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Toggle Button */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Sidebar Mobile Styles */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        z-index: 999;
        width: 280px;
        max-width: 85vw;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-close-mobile {
        display: flex;
    }
    
    /* Sidebar Overlay - only show when active */
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        max-width: 100vw;
        width: 100%;
    }
    
    .content-area {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        padding: 12px 16px;
    }
    
    /* Search Bar Adjustments */
    .search-bar {
        max-width: none;
        flex: 1;
    }
    
    /* Logo Adjustments */
    .logo img {
        width: 48px;
        height: 48px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    /* Navigation Items */
    .nav-item {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .nav-item svg {
        width: 18px;
        height: 18px;
    }
    
    /* Sidebar Header */
    .sidebar-header {
        padding: 20px 16px;
    }
    
    .sidebar-user {
        padding: 12px 16px;
    }
    
    .nav-menu {
        padding: 12px 8px;
    }
    
    /* Monitored Targets (Clients View) Mobile Adjustments */
    #clients-view {
        overflow-x: hidden;
    }
    
    #clients-view .view-header {
        margin-bottom: 16px;
    }
    
    #clients-view .view-header h1 {
        font-size: 24px;
        word-wrap: break-word;
    }
    
    #clients-view .view-header p {
        font-size: 14px;
    }
    
    #clients-view .card {
        overflow-x: hidden;
    }
    
    #clients-view .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    #clients-view .filters {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    #clients-view .filter-btn {
        flex: 1;
        min-width: calc(33.333% - 6px);
        font-size: 13px;
        padding: 8px 12px;
    }
    
    #clients-view .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    #clients-cards-container,
    .client-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .client-card {
        padding: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .client-card-header {
        gap: 12px;
    }
    
    .client-card-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .client-card-name {
        font-size: 15px;
    }
    
    .client-card-meta {
        gap: 8px;
        font-size: 12px;
    }
    
    .client-card-body {
        gap: 12px;
    }
    
    .client-card-section {
        margin-bottom: 12px;
    }
    
    .card-section-title {
        font-size: 11px;
    }
    
    .client-card-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .stat-item {
        padding: 8px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .client-card-footer {
        padding-top: 12px;
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .client-card-footer .btn-primary,
    .client-card-footer .btn-secondary {
        width: 100% !important;
        flex: none !important;
        justify-content: center;
    }
    
    .client-card-detail {
        font-size: 12px;
    }
    
    .client-card-detail svg {
        width: 14px;
        height: 14px;
    }
    
    /* Captured Bookmarks View Mobile Adjustments */
    #history-bookmarks-view .clients-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 0;
    }
    
    #history-bookmarks-view .client-card {
        padding: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    #history-bookmarks-view .client-card-header {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    #history-bookmarks-view .client-card-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
        flex-shrink: 0;
    }
    
    #history-bookmarks-view .client-card-info {
        flex: 1;
        min-width: 0;
    }
    
    #history-bookmarks-view .client-card-name {
        font-size: 15px;
        word-wrap: break-word;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    #history-bookmarks-view .client-card-meta {
        gap: 6px;
        font-size: 11px;
        flex-wrap: wrap;
        margin-top: 6px;
    }
    
    #history-bookmarks-view .client-card-meta .status-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    #history-bookmarks-view .card-data-count {
        font-size: 10px;
        padding: 3px 8px;
        white-space: nowrap;
    }
    
    #history-bookmarks-view .client-card-body {
        gap: 14px;
        margin-top: 12px;
    }
    
    #history-bookmarks-view .client-card-detail {
        font-size: 12px;
        padding: 6px 0;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    #history-bookmarks-view .client-card-detail svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
    
    #history-bookmarks-view .client-card-detail span {
        flex: 1;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    #history-bookmarks-view .client-card-detail strong {
        display: inline-block;
        min-width: fit-content;
        margin-right: 4px;
    }
    
    #history-bookmarks-view .client-card-footer {
        padding-top: 14px;
        margin-top: 12px;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    #history-bookmarks-view .client-card-footer .btn-primary,
    #history-bookmarks-view .client-card-footer .btn-secondary {
        width: 100% !important;
        flex: none !important;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Bookmarks Modal Mobile - Sub-cards adjustments */
    .browser-data-table .data-table tbody tr {
        padding: 14px;
        margin-bottom: 14px;
    }
    
    .browser-data-table .data-table tbody td {
        padding: 10px 0;
        gap: 6px;
    }
    
    .browser-data-table .data-table tbody td::before {
        font-size: 10px;
        margin-bottom: 6px;
    }
    
    .browser-data-table .folder-badge,
    .browser-data-table .domain-badge {
        font-size: 11px;
        padding: 5px 10px;
        display: inline-block;
        word-break: break-word;
        white-space: normal;
    }
    
    .browser-data-table .title-cell {
        font-size: 13px;
        line-height: 1.4;
        word-break: break-word;
    }
    
    .browser-data-table .time-cell {
        font-size: 11px;
    }
    
    .browser-data-table .action-btn {
        padding: 10px 14px;
        font-size: 13px;
        margin-top: 6px;
    }
    
    /* Operation Logs View Mobile Adjustments */
    #logs-view .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    #logs-view .filters {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    #logs-view .filter-btn {
        flex: 1;
        min-width: calc(50% - 3px);
        font-size: 12px;
        padding: 8px 10px;
    }
    
    #logs-view .card-header > div:last-child {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    
    #logs-view .btn-secondary {
        flex: 1;
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .logs-container {
        max-height: calc(100vh - 300px);
        padding: 12px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-stats {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .stat-badge {
        font-size: 11px;
        padding: 5px 10px;
        flex: 1;
        min-width: calc(50% - 3px);
        text-align: center;
    }
    
    .auth-log-item {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    
    .auth-log-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
        align-self: flex-start;
    }
    
    .auth-log-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .auth-log-details {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .auth-log-detail {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .auth-log-message {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .log-item {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .log-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .log-type {
        font-size: 10px;
    }
    
    .log-time {
        font-size: 11px;
    }
    
    .log-message {
        font-size: 13px;
        word-wrap: break-word;
    }
    
    .log-data {
        font-size: 11px;
        padding: 6px 10px;
        overflow-x: auto;
    }
    
    /* Command Center (Overview) Mobile Adjustments */
    #overview-view .view-header {
        margin-bottom: 24px;
    }
    
    #overview-view .view-header h1 {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    #overview-view .view-header p {
        font-size: 14px;
    }
    
    /* Stats Cards Mobile */
    #overview-view .stat-card {
        padding: 20px;
        gap: 12px;
    }
    
    #overview-view .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    #overview-view .stat-icon svg {
        width: 20px;
        height: 20px;
    }
    
    #overview-view .stat-number {
        font-size: 24px;
    }
    
    #overview-view .stat-title {
        font-size: 13px;
    }
    
    #overview-view .stat-change {
        font-size: 11px;
    }
    
    /* Real-Time Activity Table Mobile */
    #overview-view .realtime-table-container {
        max-height: 350px;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #overview-view .realtime-table {
        min-width: 800px;
    }
    
    #overview-view .realtime-table th,
    #overview-view .realtime-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    #overview-view .realtime-table th {
        font-size: 11px;
        padding: 10px 8px;
    }
    
    #overview-view .title-cell {
        max-width: 200px;
    }
    
    #overview-view .card-header {
        padding: 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    #overview-view .card-header h3 {
        font-size: 16px;
    }
    
    #overview-view .card-header .live-indicator {
        font-size: 12px;
    }
    
    #overview-view .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Grid 2 Mobile (Recent Actions & Active Targets) */
    #overview-view .grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    #overview-view .card {
        margin-bottom: 0;
    }
    
    /* Activity List Mobile */
    #overview-view .activity-list {
        max-height: 300px;
    }
    
    #overview-view .activity-item {
        padding: 12px 16px;
        gap: 10px;
    }
    
    #overview-view .activity-icon {
        width: 36px;
        height: 36px;
    }
    
    #overview-view .activity-title {
        font-size: 13px;
    }
    
    #overview-view .activity-time {
        font-size: 11px;
    }
    
    /* Clients List Mobile */
    #overview-view .clients-list {
        max-height: 300px;
    }
    
    #overview-view .client-item {
        padding: 12px 16px;
        gap: 10px;
    }
    
    #overview-view .client-avatar {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    #overview-view .client-name {
        font-size: 13px;
    }
    
    #overview-view .client-details {
        font-size: 11px;
    }
    
    /* Full Width Card Mobile */
    #overview-view .full-width-card {
        margin-bottom: 16px;
    }
    
    /* Search Bar Mobile */
    .search-bar {
        max-width: 100%;
    }
    
    .search-bar input {
        font-size: 14px;
        padding: 10px 14px 10px 44px;
    }
    
    /* Top Actions Mobile */
    .top-actions {
        gap: 6px;
    }
    
    .icon-button {
        width: 40px;
        height: 40px;
    }
    
    /* Remote Navigation (HVNC Browser) Mobile */
    .hvnc-browser-container {
        padding: 16px;
    }
    
    .hvnc-browser-container .clients-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .hvnc-browser-container .client-card {
        padding: 16px;
    }
    
    .hvnc-browser-container .client-card-header {
        margin-bottom: 12px;
    }
    
    .hvnc-browser-container .client-name {
        font-size: 16px;
    }
    
    .hvnc-browser-container .client-card-body {
        margin-bottom: 12px;
    }
    
    .hvnc-browser-container .client-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }
    
    .hvnc-browser-container .detail-value {
        text-align: left;
        max-width: 100%;
        word-break: break-word;
        white-space: normal;
    }
    
    .hvnc-browser-container .section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .hvnc-browser-container .clients-section {
        margin-bottom: 24px;
    }
    
    /* Download History View Mobile */
    #history-downloads-view .view-header {
        margin-bottom: 20px;
    }
    
    #history-downloads-view .view-header h1 {
        font-size: 22px;
    }
    
    #history-downloads-view .view-header p {
        font-size: 13px;
    }
    
    #history-downloads-cards {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px 0;
    }
    
    /* Browser Data Modal Mobile - Download History */
    .browser-data-container {
        padding: 0;
    }
    
    .browser-data-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
        background: var(--bg-tertiary);
        border-bottom: 1px solid var(--border);
    }
    
    .browser-data-header > div {
        width: 100%;
    }
    
    .browser-data-header h3 {
        font-size: 17px;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    
    .browser-data-header p {
        font-size: 11px;
        line-height: 1.4;
        color: var(--text-secondary);
    }
    
    .browser-data-header .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
        margin-top: 4px;
    }
    
    .browser-data-table {
        padding: 10px;
        max-height: 65vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Data Table Mobile - Convert to Card Layout */
    .browser-data-table .data-table {
        display: block;
        width: 100%;
    }
    
    .browser-data-table .data-table thead {
        display: none;
    }
    
    .browser-data-table .data-table tbody {
        display: block;
        width: 100%;
    }
    
    .browser-data-table .data-table tbody tr {
        display: block;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 14px;
        margin-bottom: 10px;
        transition: var(--transition);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        width: 100%;
        box-sizing: border-box;
    }
    
    .browser-data-table .data-table tbody tr:last-child {
        margin-bottom: 0;
    }
    
    .browser-data-table .data-table tbody tr:hover {
        background: var(--bg-tertiary);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .browser-data-table .data-table tbody td {
        display: flex;
        flex-direction: column;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
        gap: 4px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .browser-data-table .data-table tbody td:last-child {
        border-bottom: none;
        padding-top: 10px;
        margin-top: 4px;
    }
    
    .browser-data-table .data-table tbody td::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    /* Fallback labels when data-label is not present */
    .browser-data-table .data-table tbody td.time-cell:not([data-label])::before {
        content: "Date/Time";
    }
    
    .browser-data-table .data-table tbody td.title-cell:not([data-label])::before {
        content: "File";
    }
    
    .browser-data-table .data-table tbody td:nth-child(3):not([data-label])::before {
        content: "Size";
    }
    
    .browser-data-table .data-table tbody td.url-cell:not([data-label])::before {
        content: "Download URL";
    }
    
    .browser-data-table .data-table tbody td:nth-child(5):not([data-label])::before {
        content: "Status";
    }
    
    .browser-data-table .data-table tbody td:last-child:not([data-label])::before {
        content: "Action";
    }
    
    .browser-data-table .data-table tbody td .action-btn {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
        margin-top: 4px;
        font-size: 13px;
        border-radius: 6px;
        font-weight: 500;
    }
    
    .browser-data-table .url-cell {
        max-width: 100%;
        word-break: break-all;
        white-space: normal;
        font-size: 11px;
        line-height: 1.4;
        color: var(--text-secondary);
    }
    
    .browser-data-table .title-cell {
        font-size: 13px;
        font-weight: 500;
        color: var(--text-primary);
        line-height: 1.4;
        word-break: break-word;
    }
    
    .browser-data-table .time-cell {
        font-size: 11px;
        color: var(--text-secondary);
        line-height: 1.4;
    }
    
    .browser-data-table .data-table tbody td .status-badge {
        align-self: flex-start;
        font-size: 10px;
        padding: 4px 10px;
        margin-top: 2px;
    }
    
    /* HVNC Modal Mobile */
    .hvnc-header {
        padding: 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .hvnc-header h3 {
        font-size: 18px;
    }
    
    .hvnc-header p {
        font-size: 12px;
    }
    
    .hvnc-main-content {
        flex-direction: column;
    }
    
    .hvnc-sidebar {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .hvnc-content {
        flex: 1;
        min-height: 0;
    }
    
    /* Connectivity Check (Check Host) View Mobile */
    #check-host-view {
        padding: 0;
    }
    
    #check-host-view .view-header {
        margin-bottom: 16px;
        padding: 0 4px;
    }
    
    #check-host-view .view-header h1 {
        font-size: 22px;
        word-wrap: break-word;
        line-height: 1.3;
    }
    
    #check-host-view .view-header p {
        font-size: 13px;
        line-height: 1.4;
    }
    
    #check-host-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .check-host-header {
        margin-bottom: 0;
        width: 100%;
    }
    
    .check-host-controls {
        padding: 16px;
        gap: 16px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .control-group {
        gap: 8px;
        width: 100%;
    }
    
    .control-group label {
        font-size: 12px;
        font-weight: 600;
    }
    
    .client-select,
    .host-input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        width: 100%;
        box-sizing: border-box;
    }
    
    .input-with-button {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        width: 100%;
    }
    
    .input-with-button .host-input {
        width: 100%;
    }
    
    .input-with-button .btn-primary {
        width: 100%;
        justify-content: center;
        min-height: 44px; /* Better touch target */
        padding: 12px 16px;
    }
    
    .input-hint {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .check-host-result {
        margin-bottom: 0;
        width: 100%;
    }
    
    .test-loading {
        padding: 24px 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .test-loading .spinner {
        width: 32px;
        height: 32px;
        margin-bottom: 16px;
    }
    
    .test-loading p {
        font-size: 14px;
        line-height: 1.5;
        word-wrap: break-word;
    }
    
    .test-result {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .test-result.success,
    .test-result.error {
        border-width: 2px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
        width: 100%;
    }
    
    .result-status {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .status-icon {
        font-size: 24px;
        flex-shrink: 0;
    }
    
    .status-text {
        font-size: 18px;
        font-weight: 700;
        word-wrap: break-word;
        flex: 1;
    }
    
    .result-meta {
        width: 100%;
        gap: 8px;
        font-size: 12px;
        display: flex;
        flex-direction: column;
    }
    
    .meta-item {
        word-break: break-word;
        line-height: 1.5;
        width: 100%;
    }
    
    .meta-item strong {
        display: inline-block;
        min-width: 60px;
    }
    
    .result-details {
        gap: 12px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 13px;
        width: 100%;
        padding: 0;
    }
    
    .detail-label {
        min-width: auto;
        font-size: 12px;
        font-weight: 600;
        width: 100%;
    }
    
    .detail-value {
        width: 100%;
        word-break: break-word;
        line-height: 1.5;
    }
    
    .test-error {
        padding: 24px 16px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .error-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .test-error h3 {
        font-size: 16px;
        margin-bottom: 8px;
        word-wrap: break-word;
    }
    
    .test-error p {
        font-size: 13px;
        line-height: 1.5;
        word-wrap: break-word;
    }
    
    .check-host-history {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }
    
    .history-header h3 {
        font-size: 16px;
        margin: 0;
        width: 100%;
    }
    
    .history-header .btn-secondary {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        padding: 10px 16px;
    }
    
    .history-list {
        max-height: 50vh;
        gap: 10px;
        width: 100%;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .empty-history {
        padding: 30px 20px;
        font-size: 13px;
        text-align: center;
        width: 100%;
    }
    
    .history-item {
        flex-wrap: wrap;
        padding: 12px;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: flex-start;
    }
    
    .history-status {
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .history-content {
        flex: 1;
        min-width: 0;
        gap: 6px;
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .history-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 13px;
        width: 100%;
    }
    
    .history-main strong {
        word-break: break-word;
        width: 100%;
        display: block;
    }
    
    .history-client {
        font-size: 10px;
        padding: 2px 6px;
        display: inline-block;
        margin-top: 4px;
    }
    
    .history-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 11px;
        width: 100%;
        display: flex;
        align-items: center;
    }
    
    .history-meta span {
        white-space: nowrap;
    }
    
    .btn-icon-small {
        width: 36px;
        height: 36px;
        font-size: 16px;
        flex-shrink: 0;
        min-width: 36px;
    }
    
    /* Site Monitor View Mobile */
    #monitor-sites-view .view-header {
        margin-bottom: 20px;
    }
    
    #monitor-sites-view .view-header h1 {
        font-size: 22px;
        word-wrap: break-word;
    }
    
    #monitor-sites-view .view-header p {
        font-size: 13px;
    }
    
    /* Filters Mobile - Site Monitor */
    #monitor-sites-view .filters-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    #monitor-sites-view .filter-group {
        width: 100%;
    }
    
    #monitor-sites-view .filter-group label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    #monitor-sites-view .filter-group input,
    #monitor-sites-view .filter-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
        min-height: 44px; /* Better touch target */
    }
    
    #monitor-sites-view .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    #monitor-sites-view .card-header button {
        width: 100%;
        justify-content: center;
    }
    
    /* Monitor Table Mobile - Convert to Card Layout */
    #monitor-sites-table-container {
        overflow-x: visible;
        overflow-y: visible;
    }
    
    #monitor-sites-view .monitor-table {
        display: block;
    }
    
    #monitor-sites-view .monitor-table thead {
        display: none;
    }
    
    #monitor-sites-view .monitor-table tbody {
        display: block;
    }
    
    #monitor-sites-view .monitor-table tbody tr {
        display: block;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        margin-bottom: 12px;
        transition: var(--transition);
    }
    
    #monitor-sites-view .monitor-table tbody tr:last-child {
        margin-bottom: 0;
    }
    
    #monitor-sites-view .monitor-table tbody tr:hover {
        background: var(--bg-tertiary);
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    #monitor-sites-view .monitor-table tbody td {
        display: flex;
        flex-direction: column;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
        gap: 4px;
    }
    
    #monitor-sites-view .monitor-table tbody td:last-child {
        border-bottom: none;
        padding-top: 12px;
    }
    
    #monitor-sites-view .monitor-table tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }
    
    #monitor-sites-view .monitor-table .domain-cell {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    #monitor-sites-view .monitor-table .domain-favicon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    #monitor-sites-view .monitor-table .domain-name {
        word-break: break-word;
        font-size: 14px;
        font-weight: 500;
    }
    
    #monitor-sites-view .monitor-table code {
        word-break: break-all;
        font-size: 12px;
        padding: 4px 8px;
        background: var(--bg-tertiary);
        border-radius: 4px;
        display: inline-block;
    }
    
    #monitor-sites-view .monitor-table .clients-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 4px;
    }
    
    #monitor-sites-view .monitor-table .client-badge {
        font-size: 11px;
        padding: 4px 8px;
        white-space: nowrap;
    }
    
    #monitor-sites-view .monitor-table .password-status {
        margin-top: 4px;
    }
    
    #monitor-sites-view .monitor-table .password-badge {
        font-size: 12px;
        padding: 6px 10px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    
    #monitor-sites-view .monitor-table .badge {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* Active Tabs View Mobile */
    #active-tabs-view .view-header {
        margin-bottom: 20px;
    }
    
    #active-tabs-view .view-header h1 {
        font-size: 22px;
        word-wrap: break-word;
    }
    
    #active-tabs-view .view-header p {
        font-size: 13px;
    }
    
    #active-tabs-view .card {
        overflow-x: hidden;
    }
    
    #active-tabs-view .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }
    
    #active-tabs-view .card-header h3 {
        font-size: 16px;
    }
    
    #active-tabs-view .card-body {
        padding: 16px !important;
    }
    
    #active-tabs-view .filters-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    #active-tabs-view .filter-group {
        width: 100%;
    }
    
    #active-tabs-view .filter-group label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    #active-tabs-view .form-control {
        width: 100%;
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    #active-tabs-view .btn-secondary {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
    
    /* Active Tabs Table Mobile - Convert to Card Layout */
    #tabs-table-container {
        overflow-x: visible;
    }
    
    #active-tabs-view .monitor-table {
        display: block;
    }
    
    #active-tabs-view .monitor-table thead {
        display: none;
    }
    
    #active-tabs-view .monitor-table tbody {
        display: block;
    }
    
    #active-tabs-view .monitor-table tbody tr {
        display: block;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        margin-bottom: 12px;
        transition: var(--transition);
    }
    
    #active-tabs-view .monitor-table tbody tr:last-child {
        margin-bottom: 0;
    }
    
    #active-tabs-view .monitor-table tbody tr:hover {
        background: var(--bg-tertiary);
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    #active-tabs-view .monitor-table tbody td {
        display: flex;
        flex-direction: column;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
        gap: 6px;
        text-align: left;
    }
    
    #active-tabs-view .monitor-table tbody td:first-child {
        padding-top: 0;
    }
    
    #active-tabs-view .monitor-table tbody td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    #active-tabs-view .monitor-table tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }
    
    #active-tabs-view .monitor-table tbody td .domain-cell {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    #active-tabs-view .monitor-table tbody td .domain-favicon {
        width: 18px;
        height: 18px;
    }
    
    #active-tabs-view .monitor-table tbody td .domain-name {
        font-size: 14px;
    }
    
    #active-tabs-view .monitor-table tbody td .title-cell {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-primary);
        white-space: normal;
        word-wrap: break-word;
    }
    
    #active-tabs-view .monitor-table tbody td a {
        word-break: break-all;
        white-space: normal;
        font-size: 13px;
    }
    
    #active-tabs-view .monitor-table tbody td .password-status {
        display: flex;
        align-items: center;
    }
    
    #active-tabs-view .monitor-table tbody td .password-badge {
        font-size: 13px;
    }
    
    #active-tabs-view .monitor-table tbody td .badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Modals Mobile */
    .modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
    }
    
    .modal-content.large {
        width: 95%;
        max-width: 95%;
    }
    
    .modal-content.xlarge {
        width: 95%;
        max-width: 95%;
    }
    
    .modal-content.medium {
        width: 95%;
        max-width: 95%;
    }
    
    .modal-header {
        padding: 16px;
        flex-wrap: wrap;
    }
    
    .modal-header h2,
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 16px;
        max-height: calc(90vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Tables Mobile */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    table {
        min-width: 600px;
        font-size: 13px;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    /* Forms Mobile */
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-input,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Buttons Mobile */
    .btn-primary,
    .btn-secondary {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 44px; /* Better touch target */
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 36px;
    }
    
    /* Card Headers Mobile */
    .card-header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }
    
    .card-header h3 {
        font-size: 16px;
    }
    
    /* Filters Mobile */
    .filters {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
    }
    
    /* View Header Mobile */
    .view-header {
        margin-bottom: 24px;
    }
    
    .view-header h1 {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .view-header p {
        font-size: 14px;
    }
    
    /* Grid 2 Columns Mobile */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    /* Empty State Mobile */
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-state svg {
        width: 40px;
        height: 40px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
    
    /* Activity List Mobile */
    .activity-list {
        max-height: 300px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Toast Mobile */
    .toast {
        width: calc(100% - 32px);
        max-width: 400px;
        margin: 8px 16px;
    }
    
    /* Domain Monitor Mobile */
    #monitor-domain-view .view-header {
        margin-bottom: 20px;
        padding: 0 4px;
    }
    
    #monitor-domain-view .view-header h1 {
        font-size: 22px;
        word-wrap: break-word;
        line-height: 1.3;
    }
    
    #monitor-domain-view .view-header p {
        font-size: 13px;
        margin-top: 4px;
    }
    
    /* Card de filtros - ajustes mobile */
    #monitor-domain-view .card {
        margin-bottom: 16px;
        border-radius: var(--radius-md);
    }
    
    #monitor-domain-view .card-body {
        padding: 16px !important;
    }
    
    #monitor-domain-view .filters-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        width: 100%;
    }
    
    #monitor-domain-view .filter-group {
        width: 100%;
        min-width: 0;
    }
    
    #monitor-domain-view .filter-group label {
        font-size: 13px;
        margin-bottom: 8px;
        display: block;
        font-weight: 500;
    }
    
    #monitor-domain-view .form-control {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 14px;
        min-height: 44px;
    }
    
    #monitor-domain-view .card-header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
        align-items: flex-start;
    }
    
    #monitor-domain-view .card-header h3 {
        font-size: 16px;
        flex: 1;
        min-width: 0;
    }
    
    #monitor-domain-view .card-header .btn-secondary {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        font-size: 14px;
    }
    
    /* Hide table on mobile, show cards */
    .monitor-domain-table-container {
        display: none !important;
    }
    
    .monitor-domain-cards-container {
        display: block !important;
    }
    
    /* Grid de cards - layout mobile */
    .monitor-domain-cards-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 12px;
    }
    
    /* Cards principais - ajustes mobile */
    .monitor-domain-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 16px;
        transition: all 0.2s;
        width: 100%;
        min-width: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .monitor-domain-card:hover {
        border-color: var(--primary);
        box-shadow: 0 4px 12px var(--shadow);
    }
    
    /* Header do card - layout mobile */
    .monitor-domain-card-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
        gap: 12px;
        width: 100%;
    }
    
    .monitor-domain-card-header .domain-cell {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-width: 0;
        flex: 1;
    }
    
    .monitor-domain-card-header .domain-name {
        font-size: 15px;
        font-weight: 600;
        word-break: break-word;
        overflow-wrap: break-word;
        flex: 1;
        min-width: 0;
        line-height: 1.4;
    }
    
    .monitor-domain-card-header .domain-favicon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        border-radius: 4px;
    }
    
    .monitor-domain-card-header .badge {
        align-self: flex-start;
        font-size: 12px;
        padding: 6px 12px;
        white-space: nowrap;
    }
    
    /* Body do card - sub-cards (rows) */
    .monitor-domain-card-body {
        display: flex;
        flex-direction: column;
        gap: 14px;
        width: 100%;
    }
    
    /* Sub-cards (rows) - layout mobile */
    .monitor-domain-card-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        padding: 0;
    }
    
    .monitor-domain-card-label {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }
    
    .monitor-domain-card-value {
        font-size: 14px;
        color: var(--text-primary);
        word-break: break-word;
        overflow-wrap: break-word;
        line-height: 1.5;
    }
    
    /* Lista de clientes dentro dos cards */
    .monitor-domain-card-row .clients-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 4px;
        width: 100%;
    }
    
    .monitor-domain-card-row .client-badge {
        font-size: 11px;
        padding: 4px 10px;
        border-radius: 6px;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Code blocks dentro dos cards */
    .monitor-domain-card-row code {
        background: var(--bg-tertiary);
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 12px;
        word-break: break-all;
        display: inline-block;
        width: 100%;
        overflow-wrap: break-word;
        line-height: 1.4;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .content-area {
        padding: 12px 8px;
    }
    
    .view-header h1 {
        font-size: 20px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .top-bar {
        padding: 10px 12px;
    }
    
    .search-bar input {
        padding: 10px 12px 10px 40px;
        font-size: 16px;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .modal-body {
        max-height: calc(100vh - 60px);
        padding: 12px;
    }
    
    .client-card {
        padding: 12px;
    }
    
    .card {
        padding: 16px;
    }
    
    .card-header {
        padding: 12px 0;
    }
    
    .sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .nav-item {
        padding: 12px 16px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Active Tabs View Small Mobile */
    #active-tabs-view .view-header h1 {
        font-size: 18px;
    }
    
    #active-tabs-view .card-body {
        padding: 12px !important;
    }
    
    #active-tabs-view .monitor-table tbody tr {
        padding: 12px;
    }
    
    #active-tabs-view .monitor-table tbody td {
        padding: 8px 0;
        font-size: 13px;
    }
    
    #active-tabs-view .monitor-table tbody td::before {
        font-size: 10px;
    }
    
    #active-tabs-view .monitor-table tbody td .domain-name {
        font-size: 13px;
    }
    
    #active-tabs-view .monitor-table tbody td .title-cell {
        font-size: 13px;
    }
    
    #active-tabs-view .monitor-table tbody td a {
        font-size: 12px;
    }
    
    /* Download History View Extra Small Mobile (480px) */
    #history-downloads-view {
        padding: 0 4px;
    }
    
    #history-downloads-view .view-header {
        margin-bottom: 12px;
        padding: 0 2px;
    }
    
    #history-downloads-view .view-header h1 {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    #history-downloads-view .view-header p {
        font-size: 11px;
    }
    
    #history-downloads-cards {
        gap: 10px;
        padding: 6px 0;
    }
    
    #history-downloads-view .client-card {
        padding: 12px;
        border-radius: 10px;
    }
    
    #history-downloads-view .client-card-header {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    #history-downloads-view .client-card-avatar {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    
    #history-downloads-view .client-card-name {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    #history-downloads-view .client-card-meta {
        gap: 5px;
        font-size: 10px;
    }
    
    #history-downloads-view .client-card-meta .status-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    #history-downloads-view .client-card-meta .card-data-count {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    #history-downloads-view .client-card-body {
        margin-top: 10px;
        gap: 8px;
    }
    
    #history-downloads-view .client-card-detail {
        font-size: 10px;
        padding: 5px 0;
        gap: 5px;
    }
    
    #history-downloads-view .client-card-detail svg {
        width: 11px;
        height: 11px;
    }
    
    #history-downloads-view .client-card-footer {
        margin-top: 10px;
        padding-top: 10px;
        gap: 6px;
    }
    
    #history-downloads-view .client-card-footer .btn-primary,
    #history-downloads-view .client-card-footer .btn-secondary {
        padding: 9px 14px;
        font-size: 12px;
    }
    
    #history-downloads-view .client-card-footer .btn-primary svg,
    #history-downloads-view .client-card-footer .btn-secondary svg {
        width: 13px;
        height: 13px;
    }
    
    /* Browser Data Modal Extra Small Mobile - Download History */
    .browser-data-header {
        padding: 12px;
        gap: 10px;
    }
    
    .browser-data-header h3 {
        font-size: 16px;
    }
    
    .browser-data-header p {
        font-size: 10px;
    }
    
    .browser-data-header .btn-primary {
        padding: 9px 14px;
        font-size: 12px;
    }
    
    .browser-data-table {
        padding: 8px;
        max-height: 70vh;
    }
    
    .browser-data-table .data-table tbody tr {
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .browser-data-table .data-table tbody td {
        padding: 6px 0;
        gap: 3px;
    }
    
    .browser-data-table .data-table tbody td:last-child {
        padding-top: 8px;
        margin-top: 2px;
    }
    
    .browser-data-table .data-table tbody td::before {
        font-size: 9px;
        margin-bottom: 3px;
    }
    
    .browser-data-table .data-table tbody td .action-btn {
        padding: 9px 12px;
        font-size: 12px;
    }
    
    .browser-data-table .url-cell {
        font-size: 10px;
    }
    
    .browser-data-table .title-cell {
        font-size: 12px;
    }
    
    .browser-data-table .time-cell {
        font-size: 10px;
    }
    
    .browser-data-table .data-table tbody td .status-badge {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    /* Operation Logs View Extra Small Mobile Adjustments */
    #logs-view .filter-btn {
        min-width: calc(50% - 3px);
        font-size: 11px;
        padding: 7px 8px;
    }
    
    .logs-container {
        padding: 8px;
        max-height: calc(100vh - 280px);
    }
    
    .section-title h3 {
        font-size: 16px;
    }
    
    .stat-badge {
        font-size: 10px;
        padding: 4px 8px;
        min-width: calc(50% - 3px);
    }
    
    .auth-log-item {
        padding: 10px;
    }
    
    .auth-log-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .auth-log-type {
        font-size: 14px;
    }
    
    .auth-log-time {
        font-size: 11px;
    }
    
    .auth-log-detail {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .auth-log-detail svg {
        width: 12px;
        height: 12px;
    }
    
    .auth-log-message {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .log-item {
        padding: 10px;
    }
    
    .log-message {
        font-size: 12px;
    }
    
    .log-data {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    /* Domain Monitor Small Mobile */
    #monitor-domain-view .view-header h1 {
        font-size: 20px;
    }
    
    #monitor-domain-view .card {
        padding: 12px;
    }
    
    #monitor-domain-view .card-body {
        padding: 16px !important;
    }
    
    .monitor-domain-cards-grid {
        padding: 12px;
        gap: 12px;
    }
    
    .monitor-domain-card {
        padding: 12px;
    }
    
    .monitor-domain-card-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .monitor-domain-card-header .domain-name {
        font-size: 14px;
    }
    
    .monitor-domain-card-header .domain-favicon {
        width: 20px;
        height: 20px;
    }
    
    .monitor-domain-card-body {
        gap: 10px;
    }
    
    .monitor-domain-card-label {
        font-size: 11px;
    }
    
    .monitor-domain-card-value {
        font-size: 13px;
    }
    
    .monitor-domain-card-row .client-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* ==================== Rename Client Modal ==================== */
.rename-client-modal {
    padding: 20px 0;
}

.rename-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    border: 1px solid rgba(34, 197, 94, 0.3);
    margin-bottom: 24px;
}

.rename-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
}

.current-name-preview {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 14px;
}

.current-name-preview strong {
    color: var(--text-secondary);
    margin-right: 8px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.btn-warning {
    background: var(--warning);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* ==================== Rename Button Styles ==================== */
.rename-btn {
    opacity: 0;
    transition: all 0.2s ease;
}

tr:hover .rename-btn,
.keylog-client-name:hover button {
    opacity: 0.6 !important;
}

tr:hover .rename-btn:hover,
.keylog-client-name:hover button:hover {
    opacity: 1 !important;
}

/* ==================== Client Cards Grid ==================== */
.client-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

#clients-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.client-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.client-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    flex-shrink: 0;
    position: relative;
}

.client-card-avatar.online::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
}

.client-card-avatar.offline {
    opacity: 0.6;
    background: linear-gradient(135deg, var(--text-tertiary), var(--text-secondary));
}

.client-card-info {
    flex: 1;
    min-width: 0;
}

.client-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.card-data-count {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 12px;
}

.client-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.client-card-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.client-card-detail svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.client-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-view-data {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card completo para view de clientes */
.client-card-full {
    min-height: auto;
}

.client-card-section {
    margin-bottom: 16px;
}

.client-card-section:last-child {
    margin-bottom: 0;
}

.card-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.client-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--bg-card);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.session-badge {
    font-size: 14px;
    opacity: 0.7;
    cursor: help;
}

.client-card-detail strong {
    color: var(--text-primary);
    margin-right: 4px;
}

.nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-item.disabled:hover {
    transform: none;
    background: transparent;
}

/* HVNC Browser Styles - Chrome Theme */
.modal-content.xlarge {
    max-width: 95vw;
    width: 95vw;
    max-height: 95vh;
    height: 95vh;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.hvnc-container.chrome-style {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Chrome Toolbar */
.chrome-toolbar {
    background: #e8e8e8;
    border-bottom: 1px solid #d0d0d0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.chrome-tabs {
    flex: 1;
    display: flex;
    gap: 4px;
}

.chrome-tab {
    background: #e8e8e8;
    border: 1px solid #d0d0d0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    cursor: pointer;
}

.chrome-tab.active {
    background: white;
    border-color: #d0d0d0;
    z-index: 1;
}

.chrome-tab-favicon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #5f6368;
}

.chrome-tab-title {
    flex: 1;
    font-size: 13px;
    color: #202124;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chrome-tab-close {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #5f6368;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.chrome-tab-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.chrome-controls {
    display: flex;
    gap: 4px;
}

.chrome-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 4px;
    color: #5f6368;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chrome-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Chrome Address Bar */
.chrome-address-bar {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.chrome-address-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 24px;
    padding: 8px 16px;
    transition: all 0.2s;
}

.chrome-address-container:focus-within {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chrome-security-icon {
    width: 16px;
    height: 16px;
    color: #5f6368;
    flex-shrink: 0;
}

.chrome-url-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #202124;
    font-size: 14px;
    outline: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chrome-url-input::placeholder {
    color: #9aa0a6;
}

.chrome-address-actions {
    display: flex;
    gap: 4px;
}

.chrome-address-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 50%;
    color: #5f6368;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chrome-address-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.chrome-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
}

.chrome-status-indicator {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    background: #e8eaed;
    color: #5f6368;
}

.chrome-status-indicator.active {
    background: #ea4335;
    color: white;
}

.chrome-fps-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chrome-fps-control label {
    font-size: 12px;
    color: #5f6368;
}

.chrome-fps-select {
    padding: 4px 8px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: white;
    color: #202124;
    font-size: 12px;
    cursor: pointer;
}

.chrome-stream-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    background: #1a73e8;
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.chrome-stream-btn:hover {
    background: #1765cc;
}

.chrome-stream-btn.stop {
    background: #ea4335;
}

.chrome-stream-btn.stop:hover {
    background: #d33b2c;
}

/* Chrome Main Content */
.hvnc-main-content.chrome-main {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: white;
    min-height: 0;
    height: 100%;
}

/* Chrome Sidebar */
.chrome-sidebar {
    width: 280px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chrome-sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.chrome-sidebar-header h4 {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin: 0;
}

.chrome-sidebar-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 50%;
    color: #5f6368;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chrome-sidebar-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.chrome-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.chrome-empty-history {
    text-align: center;
    padding: 40px 20px;
    color: #9aa0a6;
}

.chrome-empty-history p {
    margin-bottom: 8px;
    font-size: 14px;
}

.chrome-empty-history small {
    font-size: 12px;
}

.chrome-history-item {
    padding: 12px;
    margin-bottom: 4px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
}

.chrome-history-item:hover {
    background: #f1f3f4;
    border-color: #dadce0;
}

.chrome-history-favicon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 4px;
}

.chrome-history-info {
    flex: 1;
    min-width: 0;
}

.chrome-history-title {
    font-size: 13px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chrome-history-url {
    font-size: 12px;
    color: #5f6368;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chrome Content Area */
.chrome-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
    min-height: 0;
    height: 100%;
    width: 100%;
}

.chrome-viewer {
    flex: 1;
    overflow: auto;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: 0;
    position: relative;
    width: 100%;
    height: 100%;
}

.chrome-page-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
}

.chrome-page-image {
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: auto;
}

.chrome-new-tab {
    text-align: center;
    color: #5f6368;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.chrome-logo {
    font-size: 80px;
    margin-bottom: 24px;
}

.chrome-new-tab h2 {
    font-size: 24px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 8px;
}

.chrome-new-tab p {
    font-size: 14px;
    color: #5f6368;
}

/* HVNC Controls */
.chrome-control-toggles {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chrome-control-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #dadce0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    padding: 0;
}

.chrome-control-btn:hover {
    background: #f1f3f4;
    border-color: #1a73e8;
}

.chrome-control-btn.active {
    background: #1a73e8;
    border-color: #1a73e8;
    color: white;
}

.chrome-viewer.mouse-enabled {
    cursor: crosshair;
}

.chrome-viewer.mouse-enabled .chrome-page-image {
    cursor: crosshair;
}

.chrome-mouse-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #1a73e8;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    background: rgba(26, 115, 232, 0.2);
    display: block;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    left: 0;
    top: 0;
}

.chrome-viewer.mouse-enabled .chrome-mouse-cursor {
    display: block;
}

.chrome-viewer.keyboard-enabled {
    outline: 2px solid #1a73e8;
    outline-offset: -2px;
}




.hvnc-browser-container {
    padding: 24px;
}

.clients-section {
    margin-bottom: 32px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-indicator.offline {
    background: var(--text-tertiary);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.clients-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.client-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.client-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.client-card-header {
    margin-bottom: 16px;
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.client-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-dot.offline {
    background: var(--error);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

.status-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}

.client-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.client-card-body {
    margin-bottom: 16px;
}

.client-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.client-detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-card-footer {
    margin-top: 16px;
}

.btn-block {
    width: 100%;
}

/* HVNC Modal Styles */
.hvnc-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.hvnc-header {
    padding: 20px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.hvnc-header h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.hvnc-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.hvnc-status {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.hvnc-status.active {
    background: var(--error);
    color: white;
}

.hvnc-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.hvnc-sidebar {
    width: 320px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hvnc-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.hvnc-sidebar-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.hvnc-history-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.empty-history {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
}

.empty-history p {
    margin-bottom: 8px;
}

.empty-history small {
    font-size: 12px;
}

.hvnc-history-item {
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hvnc-history-item:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    transform: translateX(4px);
}

.history-favicon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 4px;
}

.history-item-info {
    flex: 1;
    min-width: 0;
}

.history-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item-url {
    font-size: 11px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 4px;
}

.history-item-time {
    font-size: 10px;
    color: var(--text-tertiary);
}

.hvnc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hvnc-url-bar {
    padding: 16px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.url-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.url-icon {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.url-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.url-input::placeholder {
    color: var(--text-tertiary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.hvnc-controls {
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.hvnc-actions {
    display: flex;
    gap: 12px;
}

.hvnc-viewer {
    flex: 1;
    background: var(--bg-primary);
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.stream-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stream-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px var(--shadow);
}

.stream-placeholder {
    text-align: center;
    color: var(--text-tertiary);
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.stream-placeholder h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.stream-placeholder p {
    font-size: 14px;
    margin-bottom: 4px;
}

.stream-placeholder small {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Session Export Modal Styles */
.session-export-info {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.info-row {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.info-row strong {
    min-width: 100px;
    color: var(--text-primary);
}

.session-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.session-export-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.session-export-preview {
    margin-top: 20px;
}

.session-json-preview {
    width: 100%;
    min-height: 300px;
    max-height: 500px;
    padding: 15px;
    background: #1e1e1e;
    color: #d4d4d4;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
    overflow-y: auto;
}

.session-tokens-preview {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.tokens-list {
    margin-top: 10px;
}

.token-item {
    padding: 10px;
    margin-bottom: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.token-item strong {
    color: var(--primary);
    min-width: 150px;
}

.token-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    word-break: break-all;
    max-width: 400px;
}

.btn-small {
    padding: 4px 12px;
    font-size: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-small:hover {
    background: var(--primary-dark);
}

/* Outlook Tokens Modal */
.outlook-tokens-container {
    padding: 20px;
}

.outlook-token-section {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.token-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.token-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-copy-token {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-token:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--primary);
}

.token-value {
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-primary);
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.6;
    white-space: pre-wrap;
}

.token-info {
    margin-top: 8px;
    color: var(--text-tertiary);
    font-size: 11px;
}

.token-metadata {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.token-metadata small {
    display: block;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.4;
}

.outlook-tokens-actions {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.outlook-tokens-actions .btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.outlook-tokens-actions .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

/* Outlook Folders Modal */
.modal-content.large {
    max-width: 90%;
    width: 90%;
    max-height: 90vh;
}

.outlook-folders-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.folders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 8px;
}

.outlook-folder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px;
    transition: all 0.2s;
}

.outlook-folder-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

.folder-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.folder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.folder-type {
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
}

.folder-index {
    color: var(--text-tertiary);
    font-size: 11px;
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
}

.folder-stats {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.stat-item {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-item strong {
    color: var(--text-primary);
    margin-right: 4px;
}

.folder-id {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

.folder-id strong {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.folder-id-value {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-primary);
    word-break: break-all;
    background: var(--bg-primary);
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
    margin-top: 4px;
}

.btn-copy-folder-id {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    margin-left: 12px;
}

.btn-copy-folder-id:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Scrollbar para folders-list */
.folders-list::-webkit-scrollbar {
    width: 8px;
}

.folders-list::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

.folders-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.folders-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Outlook Email View Styles */
.outlook-email-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
}

.outlook-clients-section h2,
.outlook-folders-section h2 {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.outlook-client-card {
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
    overflow: hidden;
}

.outlook-client-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

/* Estilos específicos para client-status dentro do outlook-client-card */
.outlook-client-card .client-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 4px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.outlook-client-card .client-info {
    flex: 1;
    min-width: 0; /* Permite que o texto seja truncado se necessário */
    overflow: hidden;
}

.outlook-client-card .client-info h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.outlook-client-card .client-info p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.outlook-client-card .client-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--bg-tertiary);
    min-width: fit-content;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    margin-left: auto;
}

.outlook-client-card .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.outlook-client-card .status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.outlook-client-card .status-dot.offline {
    background: var(--error) !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4) !important;
}

.outlook-client-card .client-status.offline {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.outlook-client-card .client-status.online {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.token-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.token-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-primary);
    border-radius: 6px;
}

.token-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.token-status-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.token-status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.token-status-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.folders-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.folders-table {
    width: 100%;
    border-collapse: collapse;
}

.folders-table thead {
    background: var(--bg-tertiary);
}

.folders-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.folders-table td {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-primary);
    vertical-align: middle;
}

.folders-table td:nth-child(3),
.folders-table td:nth-child(4),
.folders-table td:nth-child(5) {
    text-align: center;
}

.folders-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.folder-type-badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.folder-id-code {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    word-break: break-all;
}

.folder-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.folder-count-badge.unread {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.folder-count-badge.read {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.folder-count-badge.total {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: 700;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.outlook-emails-section {
    margin-top: 24px;
}

.emails-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.emails-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.emails-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.email-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.2s;
}

.email-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--shadow);
}

.email-item.unread {
    border-left: 4px solid var(--primary);
    background: rgba(34, 197, 94, 0.1);
}

.email-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.email-sender {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.email-sender strong {
    color: var(--text-primary);
    font-size: 14px;
}

.email-address {
    color: var(--text-secondary);
    font-size: 12px;
}

.email-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-date {
    color: var(--text-tertiary);
    font-size: 12px;
}

.attachment-icon {
    font-size: 14px;
}

.email-subject {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.email-subject h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    flex: 1;
}

.unread-badge {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.email-preview {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.email-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.email-count {
    color: var(--text-tertiary);
    font-size: 12px;
}

.loading-state {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Outlook Email Body Modal */
.outlook-email-body-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-primary);
}

.email-body-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.email-body-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.meta-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 100px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    flex: 1;
    color: var(--text-primary);
    font-size: 14px;
    word-break: break-word;
}

.email-body-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: var(--bg-primary);
}

.email-body-text {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.email-body-text p {
    margin: 0 0 12px 0;
}

.email-body-text p:last-child {
    margin-bottom: 0;
}

.email-body-urls {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.email-body-urls h4 {
    margin: 0 0 16px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.email-body-urls ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.email-body-urls li {
    padding: 8px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.email-body-urls li:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

.email-body-urls a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
}

.email-body-urls a:hover {
    text-decoration: underline;
}

/* Outlook Cookies Modal */
.outlook-cookies-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookies-actions {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.cookies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 8px;
}

.cookie-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: all 0.2s;
}

.cookie-item.found {
    border-left: 4px solid var(--success);
}

.cookie-item.not-found {
    border-left: 4px solid var(--text-tertiary);
    opacity: 0.6;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.cookie-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.cookie-status.found {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.cookie-status.not-found {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-tertiary);
}

.cookie-value-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-primary);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.cookie-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-primary);
    word-break: break-all;
    white-space: pre-wrap;
}

.btn-copy-cookie {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-copy-cookie:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
}

.cookie-details {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.cookie-details small {
    font-size: 11px;
    color: var(--text-tertiary);
    padding: 2px 6px;
    background: var(--bg-primary);
    border-radius: 4px;
}

/* Outlook Proofs Modal */
.outlook-proofs-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.proofs-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.proofs-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.proof-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-bottom: 15px;
}

.proof-item:last-child {
    margin-bottom: 0;
}

.proof-item h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.proof-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proof-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.proof-detail-row strong {
    min-width: 140px;
    font-size: 13px;
    color: var(--text-secondary);
}

.proof-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: var(--bg-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    word-break: break-all;
    border: 1px solid var(--border);
}

.proof-value.large {
    font-size: 13px;
    padding: 10px 15px;
}

.btn-copy-small {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 11px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-copy-small:hover {
    background: var(--primary-dark);
}

.btn-copy {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: var(--primary-dark);
}

.proofs-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Bypass 2FA Modal */
.bypass-2fa-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px;
}

.bypass-2fa-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.bypass-2fa-header h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--text-primary);
}

.bypass-2fa-header p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.proofs-manage-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.proofs-manage-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.proofs-manage-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proof-manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px;
    transition: all 0.2s;
}

.proof-manage-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.proof-manage-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.proof-manage-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge.enabled {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.proof-manage-details {
    font-size: 13px;
    color: var(--text-secondary);
}

.proof-manage-details strong {
    color: var(--text-primary);
    margin-right: 5px;
}

.btn-danger {
    background: var(--error);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-danger:active {
    transform: scale(0.98);
}

.btn-disabled {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: not-allowed;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.6;
}

.proof-manage-item.disabled {
    opacity: 0.7;
    background: var(--bg-primary);
}

.status-badge.disabled {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-tertiary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Outlook Enterprise Breadcrumb */
.outlook-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb-item {
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
}

.breadcrumb-item:hover {
    color: var(--primary);
}

.breadcrumb-item:not(button) {
    color: var(--text-primary);
    cursor: default;
}

.breadcrumb-separator {
    color: var(--text-tertiary);
    margin: 0 4px;
}

/* Outlook Enterprise Section Header */
.outlook-folders-section .section-header,
.outlook-emails-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.outlook-folders-section h2,
.outlook-emails-section h2 {
    margin: 0;
    font-size: 24px;
    color: var(--text-primary);
}

/* Outlook Enterprise Container */
.outlook-email-container {
    position: relative;
}

.outlook-clients-section,
.outlook-folders-section,
.outlook-emails-section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Passwords View Styles */
.passwords-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--shadow);
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.passwords-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.passwords-stats .stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.passwords-stats .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.passwords-stats .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.passwords-list-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.passwords-table {
    width: 100%;
    border-collapse: collapse;
}

.passwords-table thead {
    background: var(--bg-tertiary);
    position: sticky;
    top: 0;
    z-index: 1;
}

.passwords-table th {
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.passwords-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-primary);
}

.passwords-table tbody tr:last-child td {
    border-bottom: none;
}

.password-row {
    transition: var(--transition);
}

.password-row:hover {
    background: var(--bg-tertiary);
}

.password-date {
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
}

.password-client {
    display: flex;
    align-items: center;
}

.client-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.password-url {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-link {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.url-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.password-login {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.password-login code {
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-primary);
}

.password-value {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.password-value code {
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-primary);
}

.password-hidden {
    color: var(--text-secondary);
}

.password-visible {
    color: var(--text-primary);
}

.password-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.password-actions .btn-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    font-size: 16px;
    padding: 0;
}

.password-actions .btn-icon:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Passwords Mobile Card Layout */
.passwords-mobile-cards {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.password-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.password-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

.password-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.password-card-date {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.password-card-client {
    display: flex;
    align-items: center;
}

.password-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.password-card-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.password-card-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.password-card-value {
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
}

.password-card-url {
    color: var(--primary);
    text-decoration: none;
}

.password-card-url:hover {
    text-decoration: underline;
}

.password-card-login code,
.password-card-password code {
    background: var(--bg-tertiary);
    padding: 6px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    display: inline-block;
    word-break: break-all;
}

.password-card-footer {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.password-card-footer .btn-icon {
    flex: 1;
    min-width: 60px;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Mobile Responsive Styles for Passwords */
@media (max-width: 768px) {
    .passwords-filters {
        padding: 16px;
        gap: 12px;
    }
    
    .filter-group {
        min-width: 100%;
        flex: 1 1 100%;
    }
    
    .filter-group label {
        font-size: 11px;
    }
    
    .filter-group input,
    .filter-group select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .filter-actions {
        width: 100%;
        flex-direction: column;
        margin-top: 8px;
    }
    
    .filter-actions button {
        width: 100%;
        padding: 12px;
    }
    
    .passwords-stats {
        gap: 12px;
    }
    
    .passwords-stats .stat-item {
        min-width: calc(50% - 6px);
        padding: 16px;
    }
    
    .passwords-stats .stat-value {
        font-size: 24px;
    }
    
    .passwords-table {
        display: none;
    }
    
    .passwords-mobile-cards {
        display: flex;
    }
    
    .passwords-list-container {
        overflow: visible;
        padding: 0;
        background: transparent;
        border: none;
    }
}

@media (max-width: 480px) {
    .passwords-filters {
        padding: 12px;
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .filter-group {
        min-width: 100%;
        width: 100%;
    }
    
    .filter-group label {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .filter-group input,
    .filter-group select {
        padding: 10px 12px;
        font-size: 13px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .filter-actions {
        width: 100%;
        flex-direction: column;
        margin-top: 8px;
        gap: 8px;
    }
    
    .filter-actions button {
        width: 100%;
        min-width: 100%;
        padding: 12px;
        font-size: 13px;
    }
    
    .passwords-stats {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .passwords-stats .stat-item {
        min-width: 100%;
        width: 100%;
        padding: 14px 16px;
    }
    
    .passwords-stats .stat-label {
        font-size: 10px;
    }
    
    .passwords-stats .stat-value {
        font-size: 22px;
    }
    
    .passwords-mobile-cards {
        padding: 10px;
        gap: 10px;
    }
    
    .password-card {
        padding: 14px;
        gap: 12px;
        border-radius: 8px;
    }
    
    .password-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-bottom: 10px;
    }
    
    .password-card-date {
        font-size: 9px;
        width: 100%;
    }
    
    .password-card-client {
        width: 100%;
    }
    
    .password-card-body {
        gap: 10px;
    }
    
    .password-card-field {
        gap: 5px;
    }
    
    .password-card-label {
        font-size: 9px;
        letter-spacing: 0.3px;
    }
    
    .password-card-value {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .password-card-url {
        word-break: break-all;
        display: block;
    }
    
    .password-card-footer {
        flex-direction: column;
        gap: 8px;
        padding-top: 10px;
    }
    
    .password-card-footer .btn-icon {
        width: 100%;
        min-width: 100%;
        padding: 12px;
        font-size: 13px;
        justify-content: center;
        gap: 6px;
    }
    
    .password-card-login code,
    .password-card-password code {
        font-size: 11px;
        padding: 8px;
        word-break: break-all;
        display: block;
        width: 100%;
        box-sizing: border-box;
        line-height: 1.5;
    }
    
    .client-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
}

@media (max-width: 360px) {
    .passwords-filters {
        padding: 10px;
        gap: 8px;
    }
    
    .filter-group label {
        font-size: 9px;
    }
    
    .filter-group input,
    .filter-group select {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .filter-actions button {
        padding: 10px;
        font-size: 12px;
    }
    
    .passwords-stats .stat-item {
        padding: 12px;
    }
    
    .passwords-stats .stat-label {
        font-size: 9px;
    }
    
    .passwords-stats .stat-value {
        font-size: 20px;
    }
    
    .passwords-mobile-cards {
        padding: 8px;
        gap: 8px;
    }
    
    .password-card {
        padding: 12px;
        gap: 10px;
    }
    
    .password-card-header {
        padding-bottom: 8px;
        gap: 6px;
    }
    
    .password-card-date {
        font-size: 8px;
    }
    
    .password-card-body {
        gap: 8px;
    }
    
    .password-card-field {
        gap: 4px;
    }
    
    .password-card-label {
        font-size: 8px;
    }
    
    .password-card-value {
        font-size: 11px;
    }
    
    .password-card-footer {
        gap: 6px;
        padding-top: 8px;
    }
    
    .password-card-footer .btn-icon {
        padding: 10px;
        font-size: 11px;
        gap: 4px;
    }
    
    .password-card-login code,
    .password-card-password code {
        font-size: 10px;
        padding: 6px;
    }
    
    .client-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Check Host View Styles */
.check-host-header {
    margin-bottom: 24px;
}

.check-host-controls {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-select,
.host-input {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.client-select:focus,
.host-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--shadow);
}

.input-with-button {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.input-with-button .host-input {
    flex: 1;
}

.input-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.check-host-result {
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease-in;
}

.test-loading {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}

.test-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.test-result {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.test-result.success {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.test-result.error {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.result-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-icon {
    font-size: 32px;
}

.status-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.result-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.meta-item {
    color: var(--text-secondary);
}

.meta-item strong {
    color: var(--text-primary);
    margin-right: 4px;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 150px;
}

.detail-value {
    color: var(--text-primary);
    flex: 1;
}

.detail-item.error .detail-value {
    color: var(--error);
}

.test-error {
    background: var(--bg-card);
    border: 2px solid var(--error);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.test-error h3 {
    color: var(--error);
    margin-bottom: 12px;
}

.check-host-history {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.history-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.empty-history {
    text-align: center;
    padding: 40px;
    color: var(--text-tertiary);
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.history-item:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
}

.history-item.success {
    border-left: 4px solid var(--success);
}

.history-item.error {
    border-left: 4px solid var(--error);
}

.history-status {
    font-size: 20px;
    flex-shrink: 0;
}

.history-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-main {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.history-main strong {
    color: var(--text-primary);
}

.history-client {
    padding: 2px 8px;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 11px;
    color: var(--text-secondary);
}

.history-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.btn-icon-small {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    padding: 0;
    flex-shrink: 0;
}

.btn-icon-small:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    color: var(--primary);
}


/* Monitor Tables Styles */
.monitor-table {
    width: 100%;
    border-collapse: collapse;
}

.monitor-table th {
    background: var(--bg-tertiary);
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.monitor-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 14px;
}

.monitor-table tr:hover {
    background: var(--bg-tertiary);
}

.domain-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.domain-favicon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.domain-name {
    font-weight: 500;
}

/* Hide mobile cards on desktop */
.monitor-logs-mobile-cards {
    display: none;
}

.client-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

.clients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.title-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.type-badge.activity {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.type-badge.data {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.password-status {
    display: flex;
    align-items: center;
}

.password-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.password-badge.yes {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.password-badge.no {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--shadow);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1a1a 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
}

.loading-content {
    text-align: center;
    color: #ef4444;
}

.loading-logo {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-logo img {
    width: 150px;
    height: 150px;
    animation: logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(239, 68, 68, 0.2);
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    margin-bottom: 30px;
    letter-spacing: 3px;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    }
    50% {
        text-shadow: 0 0 20px rgba(239, 68, 68, 1), 0 0 30px rgba(239, 68, 68, 0.5);
    }
}

.loading-modules {
    min-height: 80px;
    margin-bottom: 30px;
}

.module-line {
    font-size: 14px;
    color: #ef4444;
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
    margin-bottom: 8px;
    opacity: 1;
    transition: opacity 0.3s ease;
    font-family: 'Courier New', monospace;
    position: relative;
    padding-left: 20px;
}

.module-line::before {
    content: '> ';
    color: #ef4444;
    font-weight: bold;
    position: absolute;
    left: 0;
}

#page-name-line {
    font-size: 16px;
    font-weight: bold;
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}

.module-line.completed {
    color: #888;
    opacity: 0.6;
}

.loading-progress {
    width: 400px;
    max-width: 90%;
    height: 4px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    animation: progressGlow 1.5s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    }
    50% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 1);
    }
}

/* Page Loading Screen (for navigation between views) */
.page-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1a1a 100%);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    opacity: 1;
}

/* Login Verification Screen */
.login-verification-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1a1a 100%);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    opacity: 1;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.login-verification-screen::-webkit-scrollbar {
    width: 3px;
}

.login-verification-screen::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.login-verification-screen::-webkit-scrollbar-thumb {
    background: rgba(239, 68, 68, 0.7);
    border-radius: 2px;
}

.login-verification-screen::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 68, 68, 0.9);
}

/* Override global scrollbar when verification screen is active */
body.verification-active::-webkit-scrollbar,
html.verification-active::-webkit-scrollbar,
body.verification-active *::-webkit-scrollbar {
    width: 3px !important;
}

body.verification-active::-webkit-scrollbar-track,
html.verification-active::-webkit-scrollbar-track,
body.verification-active *::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 2px;
}

body.verification-active::-webkit-scrollbar-thumb,
html.verification-active::-webkit-scrollbar-thumb,
body.verification-active *::-webkit-scrollbar-thumb {
    background: rgba(239, 68, 68, 0.7) !important;
    border-radius: 2px;
}

body.verification-active::-webkit-scrollbar-thumb:hover,
html.verification-active::-webkit-scrollbar-thumb:hover,
body.verification-active *::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 68, 68, 0.9) !important;
}

.verification-content {
    text-align: center;
    color: #ef4444;
    max-width: 800px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px;
    max-height: 95vh;
    overflow-y: auto;
}

.verification-content::-webkit-scrollbar {
    width: 3px;
}

.verification-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.verification-content::-webkit-scrollbar-thumb {
    background: rgba(239, 68, 68, 0.7);
    border-radius: 2px;
    border: none;
}

.verification-content::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 68, 68, 0.9);
}

/* Firefox scrollbar */
.verification-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 68, 68, 0.7) rgba(0, 0, 0, 0.3);
}

.verification-logo {
    position: relative;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.verification-logo img {
    width: 120px;
    height: 120px;
    animation: logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
}

.verification-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(239, 68, 68, 0.2);
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.verification-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.verification-text h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    margin-bottom: 0;
    letter-spacing: 3px;
    animation: textGlow 2s ease-in-out infinite;
    margin-top: 4px;
}

.verification-checks {
    min-height: auto;
    max-height: none;
    height: auto;
    margin-bottom: 0;
    text-align: left;
    overflow: visible;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.verification-check-line {
    font-size: 13px;
    color: #ef4444;
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
    margin-bottom: 10px;
    opacity: 1;
    transition: opacity 0.3s ease;
    font-family: 'Courier New', monospace;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.verification-check-line:last-child {
    margin-bottom: 0;
}

.verification-check-line.completed {
    color: #ef4444;
}

.verification-progress {
    width: 100%;
    max-width: 600px;
    height: 4px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.verification-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    width: 0%;
}

/* Logout Verification Screen */
.logout-verification-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1a1a 100%);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    opacity: 1;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.logout-verification-screen::-webkit-scrollbar {
    width: 3px;
}

.logout-verification-screen::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.logout-verification-screen::-webkit-scrollbar-thumb {
    background: rgba(239, 68, 68, 0.7);
    border-radius: 2px;
}

.logout-verification-screen::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 68, 68, 0.9);
}

/* Override global scrollbar when logout screen is active */
body.logout-active::-webkit-scrollbar,
html.logout-active::-webkit-scrollbar,
body.logout-active *::-webkit-scrollbar {
    width: 3px !important;
}

body.logout-active::-webkit-scrollbar-track,
html.logout-active::-webkit-scrollbar-track,
body.logout-active *::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 2px;
}

body.logout-active::-webkit-scrollbar-thumb,
html.logout-active::-webkit-scrollbar-thumb,
body.logout-active *::-webkit-scrollbar-thumb {
    background: rgba(239, 68, 68, 0.7) !important;
    border-radius: 2px;
}

body.logout-active::-webkit-scrollbar-thumb:hover,
html.logout-active::-webkit-scrollbar-thumb:hover,
body.logout-active *::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 68, 68, 0.9) !important;
}

.logout-content {
    text-align: center;
    color: #ef4444;
    max-width: 800px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px;
    max-height: 95vh;
    overflow-y: auto;
}

.logout-content::-webkit-scrollbar {
    width: 3px;
}

.logout-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.logout-content::-webkit-scrollbar-thumb {
    background: rgba(239, 68, 68, 0.7);
    border-radius: 2px;
    border: none;
}

.logout-content::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 68, 68, 0.9);
}

/* Firefox scrollbar */
.logout-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(239, 68, 68, 0.7) rgba(0, 0, 0, 0.3);
}

.logout-logo {
    position: relative;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.logout-logo img {
    width: 120px;
    height: 120px;
    animation: logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
}

.logout-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(239, 68, 68, 0.2);
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.logout-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.logout-text h2 {
    font-size: 22px;
    font-weight: 700;
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    margin-bottom: 0;
    letter-spacing: 3px;
    animation: textGlow 2s ease-in-out infinite;
    margin-top: 4px;
}

.logout-checks {
    min-height: auto;
    max-height: none;
    height: auto;
    margin-bottom: 0;
    text-align: left;
    overflow: visible;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.logout-check-line {
    font-size: 13px;
    color: #ef4444;
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
    margin-bottom: 10px;
    opacity: 1;
    transition: opacity 0.3s ease;
    font-family: 'Courier New', monospace;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.logout-check-line:last-child {
    margin-bottom: 0;
}

.logout-check-line.completed {
    color: #ef4444;
}

.logout-progress {
    width: 100%;
    max-width: 600px;
    height: 4px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.logout-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    width: 0%;
}

/* ==================== Mobile Responsive - Verification Screens ==================== */
@media (max-width: 768px) {
    /* Login Verification Screen Mobile */
    .login-verification-screen {
        padding: 16px;
    }

    .verification-content {
        width: 100%;
        padding: 16px;
        max-height: 90vh;
        gap: 16px;
    }

    .verification-logo {
        margin-bottom: 0;
        gap: 12px;
    }

    .verification-logo img {
        width: 90px;
        height: 90px;
    }

    .verification-spinner {
        width: 40px;
        height: 40px;
        border-width: 2.5px;
    }

    .verification-text {
        gap: 14px;
    }

    .verification-text h2 {
        font-size: 18px;
        letter-spacing: 2px;
        margin-top: 0;
    }

    .verification-checks {
        padding: 14px 16px;
        max-height: 50vh;
        overflow-y: auto;
    }

    .verification-check-line {
        font-size: 12px;
        margin-bottom: 8px;
        padding-left: 16px;
        line-height: 1.4;
    }

    .verification-progress {
        max-width: 100%;
        height: 3px;
    }

    /* Logout Verification Screen Mobile */
    .logout-verification-screen {
        padding: 16px;
    }

    .logout-content {
        width: 100%;
        padding: 16px;
        max-height: 90vh;
        gap: 16px;
    }

    .logout-logo {
        margin-bottom: 0;
        gap: 12px;
    }

    .logout-logo img {
        width: 90px;
        height: 90px;
    }

    .logout-spinner {
        width: 40px;
        height: 40px;
        border-width: 2.5px;
    }

    .logout-text {
        gap: 14px;
    }

    .logout-text h2 {
        font-size: 18px;
        letter-spacing: 2px;
        margin-top: 0;
    }

    .logout-checks {
        padding: 14px 16px;
        max-height: 50vh;
        overflow-y: auto;
    }

    .logout-check-line {
        font-size: 12px;
        margin-bottom: 8px;
        padding-left: 16px;
        line-height: 1.4;
    }

    .logout-progress {
        max-width: 100%;
        height: 3px;
    }
}

@media (max-width: 480px) {
    /* Monitored Targets (Clients View) Small Mobile Adjustments */
    #clients-view .view-header h1 {
        font-size: 20px;
    }
    
    #clients-view .view-header p {
        font-size: 13px;
    }
    
    #clients-view .filter-btn {
        min-width: calc(50% - 4px);
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .client-card {
        padding: 12px;
    }
    
    .client-card-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .client-card-name {
        font-size: 14px;
    }
    
    .client-card-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 14px;
    }
    
    .client-card-footer {
        flex-direction: column !important;
    }
    
    .client-card-footer .btn-primary,
    .client-card-footer .btn-secondary {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Captured Bookmarks View Small Mobile Adjustments */
    #history-bookmarks-view .view-header {
        padding: 16px 12px;
    }
    
    #history-bookmarks-view .view-header h1 {
        font-size: 20px;
    }
    
    #history-bookmarks-view .view-header p {
        font-size: 13px;
    }
    
    #history-bookmarks-view .clients-cards-grid {
        gap: 12px;
        padding: 12px 0;
    }
    
    #history-bookmarks-view .client-card {
        padding: 12px;
    }
    
    #history-bookmarks-view .client-card-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    #history-bookmarks-view .client-card-name {
        font-size: 14px;
    }
    
    #history-bookmarks-view .client-card-meta {
        font-size: 10px;
        gap: 4px;
    }
    
    #history-bookmarks-view .client-card-meta .status-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    #history-bookmarks-view .card-data-count {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    #history-bookmarks-view .client-card-body {
        gap: 10px;
        margin-top: 10px;
    }
    
    #history-bookmarks-view .client-card-detail {
        font-size: 11px;
        padding: 5px 0;
    }
    
    #history-bookmarks-view .client-card-detail svg {
        width: 12px;
        height: 12px;
    }
    
    #history-bookmarks-view .client-card-footer {
        padding-top: 12px;
        margin-top: 10px;
        gap: 8px !important;
    }
    
    #history-bookmarks-view .client-card-footer .btn-primary,
    #history-bookmarks-view .client-card-footer .btn-secondary {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    /* Bookmarks Modal Small Mobile - Sub-cards adjustments */
    .browser-data-header {
        padding: 12px;
    }
    
    .browser-data-header h3 {
        font-size: 16px;
    }
    
    .browser-data-header p {
        font-size: 11px;
    }
    
    .browser-data-table {
        padding: 10px;
        max-height: 55vh;
    }
    
    .browser-data-table .data-table tbody tr {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .browser-data-table .data-table tbody td {
        padding: 8px 0;
        gap: 4px;
    }
    
    .browser-data-table .data-table tbody td::before {
        font-size: 9px;
        margin-bottom: 4px;
    }
    
    .browser-data-table .folder-badge,
    .browser-data-table .domain-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .browser-data-table .title-cell {
        font-size: 12px;
    }
    
    .browser-data-table .time-cell {
        font-size: 10px;
    }
    
    .browser-data-table .action-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Command Center (Overview) Small Mobile Adjustments */
    #overview-view .view-header h1 {
        font-size: 20px;
    }
    
    #overview-view .view-header p {
        font-size: 13px;
    }
    
    #overview-view .stat-card {
        padding: 16px;
        gap: 10px;
    }
    
    #overview-view .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    #overview-view .stat-icon svg {
        width: 18px;
        height: 18px;
    }
    
    #overview-view .stat-number {
        font-size: 20px;
    }
    
    #overview-view .stat-title {
        font-size: 12px;
    }
    
    #overview-view .stat-change {
        font-size: 10px;
    }
    
    #overview-view .realtime-table-container {
        max-height: 300px;
    }
    
    #overview-view .realtime-table th,
    #overview-view .realtime-table td {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    #overview-view .realtime-table th {
        font-size: 10px;
        padding: 8px 6px;
    }
    
    #overview-view .title-cell {
        max-width: 150px;
    }
    
    #overview-view .card-header {
        padding: 12px;
    }
    
    #overview-view .card-header h3 {
        font-size: 14px;
    }
    
    #overview-view .activity-item {
        padding: 10px 12px;
    }
    
    #overview-view .activity-icon {
        width: 32px;
        height: 32px;
    }
    
    #overview-view .client-item {
        padding: 10px 12px;
    }
    
    #overview-view .client-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    /* Visual Surveillance Small Mobile Adjustments */
    #remote-desktop-view .view-header h1 {
        font-size: 20px;
    }
    
    #remote-desktop-view .view-header p {
        font-size: 12px;
    }
    
    #remote-desktop-view .client-card {
        padding: 12px;
        gap: 10px;
    }
    
    #remote-desktop-view .client-card-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    #remote-desktop-view .client-card-name {
        font-size: 13px;
    }
    
    #remote-desktop-view .client-card-meta {
        font-size: 10px;
    }
    
    #remote-desktop-view .card-data-count {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    #remote-desktop-view .client-card-detail {
        font-size: 10px;
    }
    
    #remote-desktop-view .btn-view-data {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    #remote-desktop-view .empty-state {
        padding: 30px 12px;
    }
    
    #remote-desktop-view .empty-state svg {
        width: 40px;
        height: 40px;
    }
    
    #remote-desktop-view .empty-state h3 {
        font-size: 16px;
    }
    
    #remote-desktop-view .empty-state p {
        font-size: 12px;
    }
    
    /* Login Verification Screen Small Mobile */
    .login-verification-screen {
        padding: 12px;
    }

    .verification-content {
        padding: 12px;
        gap: 12px;
    }

    .verification-logo img {
        width: 70px;
        height: 70px;
    }

    .verification-spinner {
        width: 35px;
        height: 35px;
        border-width: 2px;
    }

    .verification-text h2 {
        font-size: 16px;
        letter-spacing: 1.5px;
    }

    .verification-checks {
        padding: 12px;
        max-height: 45vh;
    }

    .verification-check-line {
        font-size: 11px;
        padding-left: 12px;
    }

    /* Logout Verification Screen Small Mobile */
    .logout-verification-screen {
        padding: 12px;
    }

    .logout-content {
        padding: 12px;
        gap: 12px;
    }

    .logout-logo img {
        width: 70px;
        height: 70px;
    }

    .logout-spinner {
        width: 35px;
        height: 35px;
        border-width: 2px;
    }

    .logout-text h2 {
        font-size: 16px;
        letter-spacing: 1.5px;
    }

    .logout-checks {
        padding: 12px;
        max-height: 45vh;
    }

    .logout-check-line {
        font-size: 11px;
        padding-left: 12px;
    }
    
    /* Remote Navigation (HVNC Browser) Small Mobile */
    .hvnc-browser-container {
        padding: 12px;
    }
    
    .hvnc-browser-container .clients-grid {
        gap: 12px;
    }
    
    .hvnc-browser-container .client-card {
        padding: 12px;
    }
    
    .hvnc-browser-container .client-name {
        font-size: 15px;
    }
    
    .hvnc-browser-container .client-detail {
        padding: 8px 0;
    }
    
    .hvnc-browser-container .detail-label {
        font-size: 12px;
    }
    
    .hvnc-browser-container .detail-value {
        font-size: 12px;
    }
    
    .hvnc-browser-container .section-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .hvnc-browser-container .clients-section {
        margin-bottom: 20px;
    }
    
    .hvnc-browser-container .status-text {
        font-size: 11px;
    }
    
    .hvnc-browser-container .view-header h1 {
        font-size: 20px;
    }
    
    .hvnc-browser-container .view-header p {
        font-size: 13px;
    }
    
    /* HVNC Modal Small Mobile */
    .hvnc-header {
        padding: 12px;
    }
    
    .hvnc-header h3 {
        font-size: 16px;
    }
    
    .hvnc-header p {
        font-size: 11px;
    }
    
    .hvnc-sidebar {
        max-height: 150px;
    }
    
    .hvnc-sidebar-header {
        padding: 12px 16px;
    }
    
    .hvnc-sidebar-header h4 {
        font-size: 14px;
    }
    
    .hvnc-history-item {
        padding: 10px;
        margin-bottom: 6px;
    }
    
    .history-item-title {
        font-size: 12px;
    }
    
    .history-item-url {
        font-size: 10px;
    }
    
    .history-item-time {
        font-size: 9px;
    }
    
    /* Stream Modal (Live Stream) Mobile Adjustments */
    #stream-modal .modal-content.large {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .stream-container {
        height: 100%;
        overflow: hidden;
    }
    
    .stream-main-content {
        flex-direction: column;
        height: calc(100vh - 120px);
    }
    
    /* Stream Sidebar Mobile - Transformar em menu colapsável */
    .stream-sidebar {
        width: 100%;
        max-height: 0;
        border-right: none;
        border-bottom: none;
        order: 2;
        overflow: hidden;
        transition: max-height 0.3s ease, border-bottom 0.3s ease;
    }
    
    .stream-container.sidebar-open .stream-sidebar {
        max-height: 300px;
        border-bottom: 1px solid var(--border);
    }
    
    .stream-sidebar-toggle {
        display: flex !important;
    }
    
    .stream-sidebar-close {
        display: flex !important;
    }
    
    .stream-sidebar-header {
        padding: 12px 16px;
    }
    
    .stream-sidebar-header h4 {
        font-size: 14px;
    }
    
    .stream-sidebar-control {
        padding: 12px 16px;
    }
    
    .toggle-label {
        font-size: 12px;
    }
    
    .toggle-description {
        font-size: 10px;
        padding-left: 52px;
    }
    
    .stream-tabs-list {
        max-height: 120px;
        padding: 8px;
    }
    
    .stream-tab-item {
        padding: 10px;
        margin-bottom: 6px;
    }
    
    .tab-item-title {
        font-size: 12px;
    }
    
    .tab-item-url {
        font-size: 10px;
    }
    
    /* Stream Content Mobile */
    .stream-content {
        order: 1;
        flex: 1;
        min-height: 0;
    }
    
    .stream-header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .stream-header h3 {
        font-size: 16px;
        margin-bottom: 0;
    }
    
    .stream-header p {
        font-size: 11px;
    }
    
    .stream-status {
        padding: 6px 12px;
        font-size: 12px;
        align-self: flex-start;
    }
    
    .stream-controls {
        padding: 16px;
    }
    
    .fps-control {
        margin-bottom: 16px;
    }
    
    .fps-control label {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .fps-selector {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .fps-btn {
        padding: 6px 12px;
        font-size: 12px;
        flex: 1;
        min-width: calc(20% - 5px);
    }
    
    .fps-control small {
        font-size: 10px;
    }
    
    .stream-actions {
        width: 100%;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }
    
    /* Stream Viewer Mobile */
    .stream-viewer {
        flex: 1;
        min-height: 0;
    }
    
    .stream-info {
        padding: 10px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .stream-tab-info {
        width: 100%;
    }
    
    .stream-tab-title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .stream-tab-url {
        font-size: 10px;
    }
    
    .stream-fullscreen-btn {
        padding: 8px 12px;
        font-size: 11px;
        margin-left: 0;
        width: 100%;
    }
    
    .stream-image-container {
        padding: 12px;
        max-height: calc(100vh - 400px);
    }
    
    .stream-image {
        max-height: calc(100vh - 420px);
    }
    
    /* Stream Bottom Controls Mobile */
    .stream-bottom-controls {
        padding: 12px;
        gap: 8px;
        flex-wrap: wrap;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .stream-control-btn {
        padding: 8px 12px;
        font-size: 11px;
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        max-width: calc(50% - 4px);
        justify-content: flex-start;
        gap: 6px;
    }
    
    /* Ajustar padding para botões com token indicator */
    .stream-control-btn:has(.token-status-indicator) {
        padding-left: 20px !important;
    }
    
    .stream-control-btn span {
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }
    
    .stream-control-btn svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
    
    .token-status-indicator {
        left: 6px;
        width: 6px;
        height: 6px;
    }
    
    /* Fullscreen Mobile */
    .stream-viewer.fullscreen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9999;
    }
    
    .stream-viewer.fullscreen .stream-info {
        padding: 10px 12px;
        position: relative;
        background: rgba(0, 0, 0, 0.95);
    }
    
    .stream-viewer.fullscreen .stream-image-container {
        max-height: calc(100vh - 100px);
        padding: 10px;
    }
    
    .stream-viewer.fullscreen .stream-image {
        max-height: calc(100vh - 120px);
    }
    
    .stream-placeholder {
        padding: 40px 16px;
    }
    
    .stream-placeholder svg {
        width: 48px;
        height: 48px;
    }
    
    .stream-placeholder p {
        font-size: 12px;
    }
}

/* Landscape mobile orientation for verification screens */
@media (max-width: 768px) and (orientation: landscape) {
    .verification-content,
    .logout-content {
        max-height: 85vh;
    }

    .verification-checks,
    .logout-checks {
        max-height: 40vh;
    }

    .verification-logo img,
    .logout-logo img {
        width: 60px;
        height: 60px;
    }

    .verification-spinner,
    .logout-spinner {
        width: 30px;
        height: 30px;
    }
}

/* ==================== Mobile Responsive - Outlook Email View (Personal) ==================== */
@media (max-width: 768px) {
    /* Outlook Email Container */
    .outlook-email-container {
        padding: 16px;
        gap: 16px;
    }

    /* View Header */
    .view-header h1 {
        font-size: 20px;
    }

    .view-header p {
        font-size: 13px;
    }

    /* Breadcrumb */
    .outlook-breadcrumb {
        flex-wrap: wrap;
        padding: 12px 16px;
        font-size: 12px;
        gap: 4px;
    }

    .breadcrumb-item {
        font-size: 12px;
    }

    .breadcrumb-separator {
        margin: 0 2px;
    }

    /* Clients Section */
    .outlook-clients-section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .clients-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Client Card Mobile */
    .outlook-client-card {
        padding: 16px;
    }

    .outlook-client-card .client-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 4px 0;
    }

    .outlook-client-card .client-info h3 {
        font-size: 15px;
    }

    .outlook-client-card .client-info p {
        font-size: 11px;
    }

    .outlook-client-card .client-status {
        align-self: flex-start;
        font-size: 11px;
        padding: 6px 10px;
        max-width: 100%;
        margin-top: 4px;
    }

    .token-status {
        gap: 6px;
        margin-top: 12px;
    }

    .token-item {
        padding: 6px 10px;
        flex-wrap: wrap;
    }

    .token-label {
        font-size: 11px;
    }

    .token-status-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    .outlook-client-card .client-card-footer {
        margin-top: 12px;
    }

    .outlook-client-card .client-card-footer .btn-primary {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }

    /* Folders Section */
    .outlook-folders-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .outlook-folders-section .section-header,
    .outlook-emails-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .outlook-folders-section h2,
    .outlook-emails-section h2 {
        font-size: 18px;
        margin: 0;
    }

    .outlook-folders-section .btn-secondary,
    .outlook-emails-section .btn-secondary {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }

    /* Folders Table Mobile - Transformado em Cards */
    .folders-table-container {
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
    }

    /* Transformar tabela em cards no mobile */
    .folders-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    .folders-table thead {
        display: none;
    }

    .folders-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .folders-table tbody tr {
        display: flex;
        flex-direction: column;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 14px;
        gap: 12px;
        transition: all 0.2s;
    }

    .folders-table tbody tr:hover {
        background: var(--bg-tertiary);
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    }

    .folders-table tbody td {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        border: none;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .folders-table tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
        min-width: 70px;
        max-width: 40%;
    }

    .folders-table tbody td:last-child {
        margin-top: 4px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
    }

    .folders-table tbody td:last-child::before {
        display: none;
    }

    .folder-type-badge {
        font-size: 11px;
        padding: 4px 8px;
        display: inline-block;
        width: fit-content;
        margin-left: auto;
    }

    .folder-id-code {
        font-size: 11px;
        max-width: 100%;
        word-break: break-all;
        white-space: normal;
        padding: 6px 8px;
        background: var(--bg-primary);
        border-radius: 6px;
        font-family: 'Courier New', monospace;
        flex: 1;
        text-align: left;
    }

    .folders-table tbody td:not(:last-child) {
        align-items: center;
    }

    .folders-table tbody td:not(:last-child) > * {
        flex: 1;
        text-align: right;
        min-width: 0;
        word-break: break-word;
    }

    .folders-table tbody td:not(:last-child) > .folder-type-badge {
        text-align: left;
        margin-left: 0;
        flex: 0 0 auto;
    }
    
    .folder-count-badge {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 45px;
        flex-shrink: 0;
        text-align: center;
    }
    
    .folders-table tbody td[data-label="Não Lidos"],
    .folders-table tbody td[data-label="Lidos"],
    .folders-table tbody td[data-label="Total"] {
        justify-content: space-between;
        align-items: center;
    }
    
    .folders-table tbody td[data-label="Não Lidos"] > *,
    .folders-table tbody td[data-label="Lidos"] > *,
    .folders-table tbody td[data-label="Total"] > * {
        flex: 0 0 auto;
        text-align: right;
    }
    
    .folders-table tbody td[data-label="Não Lidos"]::before,
    .folders-table tbody td[data-label="Lidos"]::before,
    .folders-table tbody td[data-label="Total"]::before {
        max-width: 35%;
    }

    .folders-table tbody td .btn-sm {
        width: 100%;
        padding: 10px;
        font-size: 12px;
        white-space: normal;
        border-radius: 8px;
        margin: 0;
    }

    /* Emails Section */
    .emails-list {
        gap: 12px;
    }

    .email-item {
        padding: 12px;
    }

    .email-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }

    .email-sender {
        width: 100%;
    }

    .email-sender strong {
        font-size: 13px;
    }

    .email-address {
        font-size: 11px;
    }

    .email-meta {
        align-self: flex-end;
        gap: 6px;
    }

    .email-date {
        font-size: 11px;
    }

    .email-subject {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 8px;
    }

    .email-subject h3 {
        font-size: 14px;
        width: 100%;
    }

    .unread-badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .email-preview {
        font-size: 12px;
        margin-bottom: 10px;
        line-height: 1.5;
    }

    .email-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-top: 10px;
    }

    .email-count {
        font-size: 11px;
    }

    .email-footer .btn-primary {
        width: 100%;
        padding: 8px;
        font-size: 12px;
    }

    /* Email Body Modal Mobile */
    .modal-content.xlarge {
        max-width: 95vw;
        width: 95vw;
        max-height: 90vh;
        margin: 2.5vh auto;
    }

    .modal-content.medium {
        max-width: 95vw;
        width: 95vw;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-header p {
        font-size: 12px;
    }

    .outlook-email-body-container {
        max-height: calc(90vh - 120px);
    }

    .email-body-header {
        padding: 16px;
    }

    .email-body-meta {
        gap: 10px;
    }

    .meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .meta-label {
        min-width: auto;
        font-size: 11px;
    }

    .meta-value {
        font-size: 12px;
        width: 100%;
    }

    .email-body-content {
        padding: 16px;
        max-height: calc(90vh - 200px);
    }

    .email-body-text {
        padding: 16px;
        font-size: 13px;
    }

    .email-body-urls {
        padding: 16px;
        margin-top: 16px;
    }

    .email-body-urls h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .email-body-urls a {
        font-size: 12px;
    }

    /* Conversation Modal Mobile */
    .conversation-container {
        padding: 16px;
        max-height: calc(90vh - 120px);
    }

    .conversation-message {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 8px;
    }

    .message-header strong {
        font-size: 13px;
    }

    .message-header span {
        font-size: 11px;
    }

    .message-subject {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .message-body {
        padding: 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* Outlook Email Container Small Mobile */
    .outlook-email-container {
        padding: 10px;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .outlook-folders-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 0;
    }

    /* View Header Small Mobile */
    .view-header {
        padding: 10px 0;
    }

    .view-header h1 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .view-header p {
        font-size: 11px;
    }

    /* Breadcrumb Small Mobile */
    .outlook-breadcrumb {
        padding: 8px 10px;
        font-size: 10px;
        gap: 2px;
    }

    .breadcrumb-item {
        font-size: 10px;
        padding: 3px 5px;
    }

    .breadcrumb-separator {
        font-size: 9px;
    }

    /* Clients Section Small Mobile */
    .outlook-clients-section h2 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .clients-cards-grid {
        gap: 10px;
    }

    .outlook-client-card {
        padding: 12px;
        border-radius: 8px;
    }

    .outlook-client-card .client-card-header {
        gap: 10px;
        margin-bottom: 12px;
        padding: 4px 0;
        align-items: center;
    }

    .outlook-client-card .client-info h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .outlook-client-card .client-info p {
        font-size: 10px;
        line-height: 1.3;
    }

    .outlook-client-card .client-status {
        font-size: 10px;
        padding: 5px 10px;
    }

    /* Token Status Small Mobile */
    .token-status {
        gap: 6px;
        margin-top: 12px;
    }

    .token-item {
        padding: 8px 10px;
        gap: 6px;
    }

    .token-label {
        font-size: 11px;
    }

    .token-status-badge {
        font-size: 9px;
        padding: 3px 6px;
    }

    .outlook-client-card .client-card-footer {
        margin-top: 12px;
        padding-top: 10px;
    }

    .outlook-client-card .client-card-footer .btn-primary {
        padding: 10px;
        font-size: 12px;
    }

    /* Folders Section Small Mobile */
    .outlook-folders-section h2,
    .outlook-emails-section h2 {
        font-size: 16px;
    }

    .outlook-folders-section .btn-secondary,
    .outlook-emails-section .btn-secondary {
        padding: 10px;
        font-size: 12px;
    }

    /* Folders Table Small Mobile - Cards */
    .folders-table tbody tr {
        padding: 12px;
        gap: 8px;
    }

    .folders-table tbody td::before {
        font-size: 10px;
    }

    .folder-type-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    .folder-id-code {
        font-size: 10px;
        padding: 5px;
    }

    .folders-table tbody td .btn-sm {
        padding: 9px;
        font-size: 11px;
    }

    /* Emails Small Mobile */
    .emails-list {
        gap: 10px;
    }

    .email-item {
        padding: 12px;
        border-radius: 8px;
    }

    .email-header {
        gap: 6px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .email-sender strong {
        font-size: 13px;
    }

    .email-address {
        font-size: 10px;
    }

    .email-date {
        font-size: 10px;
    }

    .email-subject {
        gap: 6px;
        margin-bottom: 8px;
    }

    .email-subject h3 {
        font-size: 14px;
    }

    .unread-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .email-preview {
        font-size: 11px;
        padding: 8px;
        margin-bottom: 10px;
    }

    .email-footer {
        gap: 10px;
        padding-top: 10px;
    }

    .email-count {
        font-size: 10px;
    }

    .email-footer .btn-primary {
        padding: 9px;
        font-size: 11px;
    }

    /* Modal Small Mobile */
    .modal-content.xlarge,
    .modal-content.medium {
        max-width: 98vw;
        width: 98vw;
        max-height: 95vh;
        margin: 2.5vh auto;
    }

    .modal-header {
        padding: 12px;
    }

    .modal-header h3 {
        font-size: 15px;
    }

    .email-body-header {
        padding: 12px;
    }

    .email-body-content {
        padding: 12px;
    }

    .email-body-text {
        padding: 12px;
        font-size: 12px;
    }

    .conversation-container {
        padding: 12px;
    }

    .conversation-message {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .message-body {
        padding: 10px;
        font-size: 12px;
    }
}

/* ==================== Mobile Responsive - Outlook Email Enterprise ==================== */
@media (max-width: 768px) {
    /* Container principal */
    .outlook-email-container {
        padding: 16px 12px;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .outlook-folders-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Breadcrumb mobile */
    .outlook-breadcrumb {
        flex-wrap: wrap;
        padding: 12px 16px;
        font-size: 12px;
        gap: 4px;
    }

    .breadcrumb-item {
        font-size: 12px;
    }

    .breadcrumb-separator {
        margin: 0 2px;
    }

    /* Seção de clientes */
    .outlook-clients-section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .clients-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Cards de clientes mobile */
    .outlook-client-card {
        padding: 14px;
        margin-bottom: 0;
    }

    .outlook-client-card .client-card-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
        padding: 4px 0;
    }

    .outlook-client-card .client-info {
        flex: 1;
        min-width: 0;
    }

    .outlook-client-card .client-info h3 {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 4px;
        word-wrap: break-word;
    }

    .outlook-client-card .client-info p {
        font-size: 11px;
        line-height: 1.4;
        word-wrap: break-word;
    }

    .outlook-client-card .client-status {
        flex-shrink: 0;
        max-width: 100px;
        font-size: 11px;
        padding: 6px 10px;
        white-space: nowrap;
        margin-left: auto;
    }

    .outlook-client-card .client-card-body {
        margin-bottom: 14px;
    }

    .token-status {
        margin-top: 0;
        gap: 8px;
    }

    .token-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 12px;
        background: var(--bg-primary);
        border-radius: 6px;
        border: 1px solid var(--border);
    }

    .token-label {
        font-size: 11px;
        flex-shrink: 0;
        min-width: 0;
        color: var(--text-secondary);
    }

    .token-status-badge {
        font-size: 10px;
        padding: 4px 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .outlook-client-card .client-card-footer {
        margin-top: 14px;
    }

    .outlook-client-card .client-card-footer .btn-primary {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }

    /* Seção de pastas */
    .outlook-folders-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
    }

    .outlook-folders-section h2 {
        font-size: 18px;
        margin: 0;
    }

    .outlook-folders-section .btn-secondary {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }

    /* Tabela de pastas mobile - converter para cards */
    .folders-table-container {
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
    }

    .folders-table {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .folders-table th,
    .folders-table td {
        padding: 10px 8px;
        font-size: 11px;
    }

    .folders-table th:nth-child(2),
    .folders-table td:nth-child(2) {
        display: none; /* Ocultar coluna ID no mobile */
    }
    
    .folders-table th:nth-child(3),
    .folders-table th:nth-child(4),
    .folders-table th:nth-child(5),
    .folders-table td:nth-child(3),
    .folders-table td:nth-child(4),
    .folders-table td:nth-child(5) {
        text-align: center;
    }
    
    .folder-count-badge {
        padding: 4px 8px;
        font-size: 11px;
        min-width: 40px;
    }

    /* Cards de pastas no mobile */
    .folders-cards-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    .folder-card-mobile {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 14px;
        transition: all 0.2s;
        display: flex;
        flex-direction: column;
    }

    .folder-card-mobile:hover {
        border-color: var(--primary);
        box-shadow: 0 4px 12px var(--shadow);
    }

    .folder-card-header-mobile {
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .folder-type-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .folder-card-body-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
    }

    .folder-card-row-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
    }

    .folder-card-label {
        font-size: 11px;
        color: var(--text-secondary);
        font-weight: 500;
        flex-shrink: 0;
    }

    .folder-card-value {
        font-size: 12px;
        color: var(--text-primary);
        font-weight: 600;
        text-align: right;
        flex: 1;
        margin-left: 12px;
    }

    .folder-card-id-mobile {
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px dashed var(--border);
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .folder-card-id-mobile .folder-card-label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .folder-card-id-mobile .folder-id-code {
        font-family: 'Courier New', monospace;
        font-size: 9px;
        color: var(--text-secondary);
        word-break: break-all;
        background: var(--bg-primary);
        padding: 8px;
        border-radius: 4px;
        border: 1px solid var(--border);
        line-height: 1.4;
        max-height: 60px;
        overflow-y: auto;
    }

    .folder-card-footer-mobile {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }

    .folder-card-footer-mobile .btn-primary {
        width: 100%;
        padding: 10px;
        font-size: 12px;
    }

    .folder-id-code {
        font-size: 10px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .btn-sm {
        padding: 6px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    /* Seção de emails */
    .outlook-emails-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
    }

    .outlook-emails-section h2 {
        font-size: 18px;
        margin: 0;
    }

    .outlook-emails-section .btn-secondary {
        width: 100%;
        padding: 10px;
        font-size: 13px;
    }

    /* Lista de emails mobile */
    .emails-list {
        gap: 10px;
    }

    .email-item {
        padding: 12px;
    }

    .email-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }

    .email-sender {
        width: 100%;
    }

    .email-sender strong {
        font-size: 13px;
    }

    .email-address {
        font-size: 11px;
    }

    .email-meta {
        align-self: flex-start;
        flex-wrap: wrap;
    }

    .email-date {
        font-size: 11px;
    }

    .email-subject {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 8px;
    }

    .email-subject h3 {
        font-size: 14px;
        width: 100%;
    }

    .unread-badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .email-preview {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .email-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-top: 10px;
    }

    .email-count {
        font-size: 11px;
    }

    .email-footer .btn-primary {
        width: 100%;
        padding: 10px;
        font-size: 12px;
    }

    /* Modais mobile */
    .modal-content.xlarge {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
    }

    .modal-content.large {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
    }

    .modal-content.medium {
        width: 95%;
        max-width: 95%;
    }

    /* Modal de email body */
    .outlook-email-body-container {
        max-height: 85vh;
    }

    .email-body-header {
        padding: 16px;
    }

    .email-body-meta {
        gap: 10px;
    }

    .meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .meta-label {
        min-width: auto;
        font-size: 11px;
    }

    .meta-value {
        font-size: 12px;
        width: 100%;
    }

    .email-body-content {
        padding: 16px;
        max-height: calc(85vh - 200px);
    }

    .email-body-text {
        padding: 16px;
        font-size: 13px;
    }

    .email-body-urls {
        padding: 16px;
        margin-top: 16px;
    }

    .email-body-urls h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .email-body-urls a {
        font-size: 12px;
    }

    /* Modal de conversa */
    .conversation-container {
        padding: 16px;
        max-height: calc(85vh - 150px);
    }

    .conversation-message {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .message-header strong {
        font-size: 13px;
    }

    .message-header span {
        font-size: 11px;
    }

    .message-subject {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .message-body {
        padding: 12px;
        font-size: 13px;
    }

    /* View header mobile */
    .view-header h1 {
        font-size: 20px;
    }

    .view-header p {
        font-size: 13px;
    }
}

/* Mobile muito pequeno (até 480px) */
@media (max-width: 480px) {
    .outlook-email-container {
        padding: 12px 8px;
        gap: 12px;
    }

    .outlook-breadcrumb {
        padding: 10px 12px;
        font-size: 11px;
    }

    .breadcrumb-item {
        font-size: 11px;
    }

    .outlook-clients-section h2,
    .outlook-folders-section h2,
    .outlook-emails-section h2 {
        font-size: 16px;
    }

    .outlook-client-card {
        padding: 12px;
    }

    .outlook-client-card .client-info h3 {
        font-size: 14px;
    }

    .folders-table {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .folders-table th,
    .folders-table td {
        padding: 8px 6px;
        font-size: 10px;
    }
    
    .folders-table-container {
        overflow-x: visible;
        width: 100%;
        max-width: 100%;
    }

    .email-item {
        padding: 10px;
    }

    .email-subject h3 {
        font-size: 13px;
    }

    .email-preview {
        font-size: 11px;
    }

    .modal-content.xlarge,
    .modal-content.large,
    .modal-content.medium {
        width: 98%;
        max-width: 98%;
        margin: 1%;
    }

    .email-body-header {
        padding: 12px;
    }

    .email-body-content {
        padding: 12px;
    }

    .email-body-text {
        padding: 12px;
        font-size: 12px;
    }

    .conversation-container {
        padding: 12px;
    }

    .message-body {
        padding: 10px;
        font-size: 12px;
    }

    /* Melhorias adicionais para mobile muito pequeno */
    .clients-cards-grid {
        padding: 0;
    }

    .empty-state {
        padding: 20px;
        text-align: center;
    }

    .empty-state p {
        font-size: 12px;
    }

    .loading-state {
        padding: 30px 20px;
    }

    .loading-state p {
        font-size: 12px;
    }

    /* Ajustes no scroll para mobile */
    .folders-cards-mobile {
        padding-bottom: 20px;
    }

    .emails-list {
        padding-bottom: 20px;
    }

    /* Botões mobile */
    .btn-primary,
    .btn-secondary {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Melhorias de toque */
    .email-item,
    .folder-card-mobile,
    .outlook-client-card {
        -webkit-tap-highlight-color: rgba(34, 197, 94, 0.1);
        touch-action: manipulation;
    }

    /* Ajustes específicos para Outlook Enterprise em mobile muito pequeno */
    .outlook-client-card .client-card-header {
        flex-wrap: wrap;
    }

    .outlook-client-card .client-status {
        margin-top: 8px;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .token-item {
        flex-wrap: wrap;
    }

    .token-label {
        width: 100%;
        margin-bottom: 4px;
    }

    .token-status-badge {
        width: 100%;
        text-align: center;
    }

    .email-subject {
        flex-direction: column;
        align-items: flex-start;
    }

    .email-subject h3 {
        width: 100%;
    }

    .email-footer {
        flex-direction: column;
    }

    .email-footer .btn-primary {
        width: 100%;
        min-width: 100%;
    }
}

/* Build Client View - Base Styles */
.build-client-body {
    padding: 24px;
}

.build-client-info {
    margin-bottom: 24px;
}

.build-client-description {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
}

.build-client-info-box {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.build-client-info-box strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.build-client-info-box ul {
    margin: 8px 0 0 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.build-client-info-box li {
    margin-bottom: 6px;
}

.build-client-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.build-client-btn svg {
    flex-shrink: 0;
}

.build-status-container {
    margin-top: 24px;
    display: none;
}

.build-history-container {
    margin-top: 32px;
}

.build-history-title {
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--text-primary);
}

.build-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.build-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px var(--shadow);
}

.build-item-info {
    flex: 1;
    min-width: 0;
}

.build-item-name {
    color: var(--text-primary);
    font-size: 15px;
    display: block;
    word-break: break-word;
    margin-bottom: 4px;
}

.build-item-date {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.build-download-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 12px;
}

.build-status-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: 8px;
    padding: 16px;
    color: var(--success);
}

.build-status-success strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.build-status-success p {
    margin: 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.build-filename {
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    word-break: break-all;
    display: inline-block;
    margin-top: 4px;
    color: var(--text-primary);
}

.build-download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    text-decoration: none;
}

.build-status-loading {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--info);
    border-radius: 8px;
    padding: 16px;
    color: var(--info);
}

.build-status-loading strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.build-status-loading p {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.build-status-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    border-radius: 8px;
    padding: 16px;
    color: var(--error);
}

.build-status-error strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.build-status-error p {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Build Client View - Mobile Responsive Styles */
@media (max-width: 768px) {
    #build-client-view {
        overflow-x: hidden;
    }
    
    #build-client-view .view-header {
        margin-bottom: 16px;
    }
    
    #build-client-view .view-header h1 {
        font-size: 24px;
        word-wrap: break-word;
    }
    
    #build-client-view .view-header p {
        font-size: 14px;
    }
    
    #build-client-view .card {
        overflow-x: hidden;
    }
    
    #build-client-view .card-body {
        padding: 16px !important;
    }
    
    #build-client-view .card-header h3 {
        font-size: 18px;
    }
    
    #build-client-view #btn-build-client {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 15px !important;
        white-space: normal;
        word-wrap: break-word;
    }
    
    #build-client-view #btn-build-client svg {
        width: 18px !important;
        height: 18px !important;
        margin-right: 6px !important;
    }
    
    #build-client-view #build-status {
        margin-top: 16px !important;
    }
    
    #build-client-view #build-status > div {
        padding: 12px !important;
        font-size: 14px;
    }
    
    #build-client-view #build-status strong {
        font-size: 15px;
        display: block;
        margin-bottom: 8px;
    }
    
    #build-client-view #build-status p {
        font-size: 13px !important;
        margin: 8px 0 0 0 !important;
    }
    
    #build-client-view #build-status code {
        font-size: 12px;
        word-break: break-all;
        display: block;
        margin-top: 4px;
    }
    
    #build-client-view #build-status .btn-primary {
        width: 100% !important;
        margin-top: 12px !important;
        padding: 12px 16px !important;
        justify-content: center;
        display: flex !important;
    }
    
    #build-client-view .build-client-body {
        padding: 16px !important;
    }
    
    #build-client-view .build-client-info {
        margin-bottom: 16px !important;
    }
    
    #build-client-view .build-client-description {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    #build-client-view .build-client-info-box {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    
    #build-client-view .build-client-info-box strong {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    #build-client-view .build-client-info-box ul {
        margin: 8px 0 0 16px !important;
        font-size: 13px;
    }
    
    #build-client-view .build-client-info-box li {
        margin-bottom: 6px;
    }
    
    #build-client-view .build-status-container {
        margin-top: 16px !important;
    }
    
    #build-client-view #build-history {
        margin-top: 24px !important;
    }
    
    #build-client-view .build-history-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    #build-client-view #builds-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    #build-client-view #builds-list > div {
        background: var(--bg-tertiary) !important;
        border: 1px solid var(--border) !important;
        border-radius: 8px !important;
        padding: 12px !important;
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }
    
    #build-client-view #builds-list > div > div:first-child {
        width: 100%;
        flex: 1;
    }
    
    #build-client-view #builds-list strong {
        color: var(--text-primary) !important;
        font-size: 14px;
        display: block;
        word-break: break-word;
        margin-bottom: 4px;
    }
    
    #build-client-view #builds-list p {
        color: var(--text-secondary) !important;
        font-size: 12px !important;
        margin: 0 !important;
        word-break: break-word;
    }
    
    #build-client-view #builds-list .btn-secondary {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 16px !important;
        margin-top: 0 !important;
        text-decoration: none !important;
        display: flex !important;
        align-items: center !important;
    }
    
    #build-client-view #builds-list .btn-secondary svg {
        width: 14px !important;
        height: 14px !important;
        margin-right: 6px !important;
    }
    
    /* Informações do agente em mobile */
    #build-client-view .card-body > div:first-child p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    #build-client-view .card-body > div:first-child > div {
        padding: 12px !important;
        margin-bottom: 12px !important;
    }
    
    #build-client-view .card-body > div:first-child > div strong {
        font-size: 14px;
        display: block;
        margin-bottom: 8px;
    }
    
    #build-client-view .card-body > div:first-child > div ul {
        margin: 8px 0 0 16px !important;
        font-size: 13px;
        line-height: 1.6;
    }
    
    #build-client-view .card-body > div:first-child > div li {
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    #build-client-view .view-header h1 {
        font-size: 20px;
    }
    
    #build-client-view .card-body {
        padding: 12px !important;
    }
    
    #build-client-view #btn-build-client {
        padding: 12px 14px !important;
        font-size: 14px !important;
    }
    
    #build-client-view #build-status > div {
        padding: 10px !important;
    }
    
    #build-client-view #build-status strong {
        font-size: 14px;
    }
    
    #build-client-view #build-status p {
        font-size: 12px !important;
    }
    
    #build-client-view #builds-list > div {
        padding: 10px !important;
    }
    
    #build-client-view #builds-list strong {
        font-size: 13px;
    }
    
    #build-client-view #builds-list p {
        font-size: 11px !important;
    }
    
    #build-client-view #builds-list .btn-secondary {
        padding: 8px 12px !important;
        font-size: 13px;
    }
}

/* ==================== Mobile Responsive - Monitor Logs View ==================== */
@media (max-width: 768px) {
    /* Monitor Logs Filters Mobile */
    #monitor-logs-view .filters-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    #monitor-logs-view .card-body {
        padding: 16px !important;
    }
    
    #monitor-logs-view .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    #monitor-logs-view .card-header button {
        width: 100%;
        justify-content: center;
    }
    
    /* Hide table on mobile, show cards */
    #monitor-logs-view .monitor-table {
        display: none;
    }
    
    #monitor-logs-view .monitor-logs-mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    
    .monitor-log-card {
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 16px;
        transition: var(--transition);
    }
    
    .monitor-log-card:hover {
        background: var(--bg-tertiary);
    }
    
    .monitor-log-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }
    
    .monitor-log-time {
        font-size: 12px;
        color: var(--text-secondary);
    }
    
    .monitor-log-card-body {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .monitor-log-field {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .monitor-log-label {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .monitor-log-value {
        font-size: 14px;
        color: var(--text-primary);
        word-break: break-word;
    }
    
    .monitor-log-field .domain-cell {
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    /* Site Monitor View Extra Small Mobile */
    #monitor-sites-view .view-header h1 {
        font-size: 20px;
    }
    
    #monitor-sites-view .view-header p {
        font-size: 12px;
    }
    
    #monitor-sites-view .monitor-table tbody tr {
        padding: 12px;
    }
    
    #monitor-sites-view .monitor-table tbody td {
        padding: 6px 0;
        font-size: 13px;
    }
    
    #monitor-sites-view .monitor-table .domain-name {
        font-size: 13px;
    }
    
    #monitor-sites-view .monitor-table code {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    #monitor-sites-view .monitor-table .client-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    #monitor-sites-view .monitor-table .password-badge {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    /* Connectivity Check (Check Host) View Extra Small Mobile */
    #check-host-view .view-header {
        margin-bottom: 12px;
        padding: 0;
    }
    
    #check-host-view .view-header h1 {
        font-size: 20px;
        line-height: 1.2;
    }
    
    #check-host-view .view-header p {
        font-size: 12px;
        line-height: 1.3;
    }
    
    #check-host-container {
        gap: 12px;
    }
    
    .check-host-controls {
        padding: 12px;
        gap: 12px;
    }
    
    .control-group {
        gap: 6px;
    }
    
    .control-group label {
        font-size: 11px;
    }
    
    .client-select,
    .host-input {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .input-with-button .btn-primary {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .input-hint {
        font-size: 10px;
    }
    
    .test-loading {
        padding: 20px 12px;
    }
    
    .test-loading .spinner {
        width: 28px;
        height: 28px;
        margin-bottom: 12px;
    }
    
    .test-loading p {
        font-size: 13px;
    }
    
    .test-result {
        padding: 12px;
    }
    
    .result-header {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .status-icon {
        font-size: 20px;
    }
    
    .status-text {
        font-size: 16px;
    }
    
    .result-meta {
        gap: 6px;
        font-size: 11px;
    }
    
    .meta-item strong {
        min-width: 50px;
        font-size: 11px;
    }
    
    .result-details {
        gap: 10px;
        padding-top: 12px;
    }
    
    .detail-item {
        gap: 4px;
        font-size: 12px;
    }
    
    .detail-label {
        font-size: 11px;
    }
    
    .detail-value {
        font-size: 12px;
    }
    
    .test-error {
        padding: 20px 12px;
    }
    
    .error-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .test-error h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .test-error p {
        font-size: 12px;
    }
    
    .check-host-history {
        padding: 12px;
    }
    
    .history-header {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .history-header h3 {
        font-size: 15px;
    }
    
    .history-header .btn-secondary {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .history-list {
        max-height: 45vh;
        gap: 8px;
    }
    
    .empty-history {
        padding: 24px 16px;
        font-size: 12px;
    }
    
    .history-item {
        padding: 10px;
        gap: 8px;
    }
    
    .history-status {
        font-size: 16px;
    }
    
    .history-content {
        gap: 5px;
    }
    
    .history-main {
        gap: 5px;
        font-size: 12px;
    }
    
    .history-client {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .history-meta {
        gap: 6px;
        font-size: 10px;
    }
    
    .btn-icon-small {
        width: 32px;
        height: 32px;
        font-size: 14px;
        min-width: 32px;
    }
    
    /* Monitor Logs View Extra Small Mobile - Ajustes Finais */
    #monitor-logs-view .view-header {
        padding: 12px 10px;
        margin-bottom: 12px;
    }
    
    #monitor-logs-view .view-header h1 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    #monitor-logs-view .view-header p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Cards Principais */
    #monitor-logs-view .card {
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    #monitor-logs-view .card-header {
        padding: 12px;
        gap: 10px;
    }
    
    #monitor-logs-view .card-header h3 {
        font-size: 15px;
    }
    
    #monitor-logs-view .card-header button {
        padding: 9px 14px;
        font-size: 13px;
    }
    
    #monitor-logs-view .card-body {
        padding: 12px !important;
    }
    
    /* Grid de Filtros Extra Small */
    #monitor-logs-view .filters-grid {
        gap: 12px;
    }
    
    #monitor-logs-view .filter-group {
        margin-bottom: 0;
    }
    
    #monitor-logs-view .filter-group label {
        font-size: 11px;
        margin-bottom: 5px;
    }
    
    #monitor-logs-view .filter-group input,
    #monitor-logs-view .filter-group select {
        padding: 9px 12px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    /* Container de Cards Extra Small */
    #monitor-logs-view .monitor-logs-mobile-cards {
        padding: 12px;
        gap: 12px;
    }
    
    /* Cards de Log Extra Small */
    .monitor-log-card {
        padding: 12px;
        border-radius: 10px;
    }
    
    .monitor-log-card-header {
        margin-bottom: 12px;
        padding-bottom: 12px;
        gap: 6px;
    }
    
    .monitor-log-card-header .type-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .monitor-log-time {
        font-size: 11px;
    }
    
    .monitor-log-card-body {
        gap: 10px;
    }
    
    .monitor-log-field {
        padding: 8px 0;
        gap: 5px;
    }
    
    .monitor-log-label {
        font-size: 10px;
        letter-spacing: 0.3px;
    }
    
    .monitor-log-value {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .monitor-log-field .client-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .monitor-log-field .domain-cell {
        gap: 6px;
    }
    
    .monitor-log-field .domain-cell .domain-icon {
        font-size: 14px;
    }
    
    .monitor-log-field .domain-cell span:not(.domain-icon) {
        font-size: 12px;
    }
    
    /* Empty State Extra Small */
    #monitor-logs-view .empty-state {
        padding: 30px 16px;
    }
    
    #monitor-logs-view .empty-state svg {
        width: 36px;
        height: 36px;
    }
    
    #monitor-logs-view .empty-state p {
        font-size: 13px;
    }
}

/* Hide mobile cards on desktop */
.cookies-mobile-cards {
    display: none;
}

/* ==================== Mobile Responsive - Cookies View ==================== */
@media (max-width: 768px) {
    /* Filters Mobile */
    #cookies-view .filters-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    #cookies-view .filter-group {
        min-width: 100%;
    }
    
    #cookies-view .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    #cookies-view .card-header > div {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    #cookies-view .card-header button {
        width: 100%;
    }
    
    #cookies-view .card-body {
        padding: 16px !important;
    }
    
    /* Hide table on mobile, show cards */
    #cookies-view #cookies-table-container .monitor-table {
        display: none;
    }
    
    #cookies-view .cookies-mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    /* Cookie Card Mobile */
    .cookie-card {
        background: var(--bg-tertiary);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        transition: var(--transition);
    }
    
    .cookie-card:hover {
        border-color: var(--primary);
        background: var(--bg-card);
    }
    
    .cookie-card-header {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }
    
    .cookie-card-domain {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .cookie-card-domain img {
        width: 24px;
        height: 24px;
        border-radius: 4px;
        flex-shrink: 0;
    }
    
    .cookie-card-domain-info {
        flex: 1;
        min-width: 0;
    }
    
    .cookie-card-domain-name {
        font-weight: 600;
        font-size: 14px;
        color: var(--text-primary);
        margin-bottom: 4px;
        word-break: break-word;
    }
    
    .cookie-card-domain-url {
        font-size: 11px;
        color: var(--text-tertiary);
        word-break: break-all;
    }
    
    .cookie-card-body {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .cookie-card-info-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .cookie-card-info-label {
        font-size: 11px;
        color: var(--text-tertiary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .cookie-card-info-value {
        font-size: 13px;
        color: var(--text-primary);
        font-weight: 500;
    }
    
    .cookie-card-footer {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .cookie-card-footer button {
        flex: 1;
        min-width: calc(50% - 4px);
    }
    
    /* Cookie Logs Modal Mobile */
    .cookie-logs-view {
        padding: 0;
    }
    
    .cookie-logs-view h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .cookie-info-section {
        padding: 12px !important;
        margin-bottom: 16px !important;
    }
    
    .cookie-info-section > div {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .cookie-info-section strong {
        font-size: 12px;
    }
    
    .cookie-info-section .client-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .cookie-info-section code {
        font-size: 10px;
        word-break: break-all;
    }
    
    .cookie-logs-view h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .cookie-logs-view .monitor-table {
        font-size: 11px;
    }
    
    .cookie-logs-view .monitor-table th,
    .cookie-logs-view .monitor-table td {
        padding: 8px 10px;
    }
    
    .cookie-logs-view .modal-actions {
        flex-direction: column;
        margin-top: 16px !important;
    }
    
    .cookie-logs-view .modal-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #cookies-view .view-header h1 {
        font-size: 20px;
    }
    
    #cookies-view .view-header p {
        font-size: 13px;
    }
    
    #cookies-view .card-header h3 {
        font-size: 16px;
    }
    
    #cookies-view .filters-grid {
        gap: 10px !important;
    }
    
    #cookies-view .filter-group label {
        font-size: 11px;
    }
    
    #cookies-view .filter-group input,
    #cookies-view .filter-group select {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .cookie-card {
        padding: 12px;
    }
    
    .cookie-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-card-domain {
        width: 100%;
    }
    
    .cookie-card-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cookie-card-footer {
        flex-direction: column;
    }
    
    .cookie-card-footer button {
        width: 100%;
        min-width: 100%;
    }
    
    .cookie-card-info-label {
        font-size: 10px;
    }
    
    .cookie-card-info-value {
        font-size: 12px;
    }
    
    .cookie-logs-view .monitor-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cookie-logs-view .monitor-table thead,
    .cookie-logs-view .monitor-table tbody,
    .cookie-logs-view .monitor-table tr {
        display: block;
    }
    
    .cookie-logs-view .monitor-table thead {
        display: none;
    }
    
    .cookie-logs-view .monitor-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 12px;
        background: var(--bg-tertiary);
    }
    
    .cookie-logs-view .monitor-table td {
        display: block;
        padding: 6px 0;
        border: none;
        text-align: left;
    }
    
    .cookie-logs-view .monitor-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 10px;
        text-transform: uppercase;
        margin-right: 8px;
    }
    
    .cookie-card-info-item {
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }
    
    .cookie-card-info-item:last-child {
        border-bottom: none;
    }
    
    .cookie-card-info-label {
        font-size: 12px;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 600;
        flex-shrink: 0;
    }
    
    .cookie-card-info-value {
        font-size: 14px;
        color: var(--text-primary);
        font-weight: 500;
        text-align: right;
        word-break: break-word;
        flex: 1;
    }
    
    .cookie-card-info-value .badge {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .cookie-card-info-value .client-badge {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    /* Cookie Card Footer Mobile */
    .cookie-card-footer {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }
    
    .cookie-card-footer button {
        width: 100%;
        min-width: 100%;
        padding: 10px 16px;
        font-size: 14px;
        justify-content: center;
    }
    
    /* Cookie Logs Modal Mobile */
    .cookie-logs-view {
        padding: 0;
    }
    
    .cookie-logs-view h3 {
        font-size: 18px;
        margin-bottom: 16px;
        padding: 0 4px;
    }
    
    /* Cookie Info Section (Sub-card) Mobile */
    .cookie-info-section {
        padding: 16px !important;
        margin-bottom: 20px !important;
        background: var(--bg-secondary) !important;
        border-radius: var(--radius) !important;
        border: 1px solid var(--border);
    }
    
    .cookie-info-section > div {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .cookie-info-section > div > div {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        background: var(--bg-tertiary);
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
    }
    
    .cookie-info-section strong {
        font-size: 11px;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }
    
    .cookie-info-section .client-badge {
        font-size: 12px;
        padding: 4px 10px;
        align-self: flex-start;
    }
    
    .cookie-info-section code {
        font-size: 11px;
        word-break: break-all;
        padding: 6px 10px;
        background: var(--bg-primary);
        border-radius: 4px;
        display: inline-block;
        max-width: 100%;
    }
    
    .cookie-info-section div[style*="margin-top: 4px"] {
        margin-top: 8px !important;
        word-break: break-word;
    }
    
    .cookie-logs-view h4 {
        font-size: 15px;
        margin-bottom: 14px;
        padding: 0 4px;
    }
    
    .cookie-logs-view .monitor-table {
        font-size: 12px;
        border-radius: var(--radius);
        overflow: hidden;
    }
    
    .cookie-logs-view .monitor-table th,
    .cookie-logs-view .monitor-table td {
        padding: 10px 12px;
    }
    
    .cookie-logs-view .modal-actions {
        flex-direction: column;
        margin-top: 20px !important;
        gap: 10px;
    }
    
    .cookie-logs-view .modal-actions button {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #cookies-view .view-header h1 {
        font-size: 20px;
    }
    
    #cookies-view .view-header p {
        font-size: 13px;
    }
    
    #cookies-view .card-header h3 {
        font-size: 16px;
    }
    
    #cookies-view .filters-grid {
        gap: 10px !important;
    }
    
    #cookies-view .filter-group label {
        font-size: 11px;
    }
    
    #cookies-view .filter-group input,
    #cookies-view .filter-group select {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .cookie-card {
        padding: 12px;
    }
    
    .cookie-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-card-domain {
        width: 100%;
    }
    
    .cookie-card-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cookie-card-footer {
        flex-direction: column;
    }
    
    .cookie-card-footer button {
        width: 100%;
        min-width: 100%;
    }
    
    .cookie-card-info-label {
        font-size: 10px;
    }
    
    .cookie-card-info-value {
        font-size: 12px;
    }
    
    .cookie-logs-view .monitor-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cookie-logs-view .monitor-table thead,
    .cookie-logs-view .monitor-table tbody,
    .cookie-logs-view .monitor-table tr {
        display: block;
    }
    
    .cookie-logs-view .monitor-table thead {
        display: none;
    }
    
    .cookie-logs-view .monitor-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 12px;
        background: var(--bg-tertiary);
    }
    
    .cookie-logs-view .monitor-table td {
        display: block;
        padding: 6px 0;
        border: none;
        text-align: left;
    }
    
    .cookie-logs-view .monitor-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 10px;
        text-transform: uppercase;
        margin-right: 8px;
    }
    
    .cookie-card-info-item {
        margin-bottom: 12px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .cookie-card-info-label {
        font-size: 11px;
        color: var(--text-tertiary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .cookie-card-info-value {
        font-size: 13px;
        color: var(--text-primary);
        font-weight: 500;
    }
    
    .cookie-card-footer {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .cookie-card-footer button {
        flex: 1;
        min-width: calc(50% - 4px);
    }
    
    /* Cookie Logs Modal Mobile */
    .cookie-logs-view {
        padding: 0;
    }
    
    .cookie-logs-view h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .cookie-info-section {
        padding: 12px !important;
        margin-bottom: 16px !important;
    }
    
    .cookie-info-section > div {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .cookie-info-section strong {
        font-size: 12px;
    }
    
    .cookie-info-section .client-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .cookie-info-section code {
        font-size: 10px;
        word-break: break-all;
    }
    
    .cookie-logs-view h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .cookie-logs-view .monitor-table {
        font-size: 11px;
    }
    
    .cookie-logs-view .monitor-table th,
    .cookie-logs-view .monitor-table td {
        padding: 8px 10px;
    }
    
    .cookie-logs-view .modal-actions {
        flex-direction: column;
        margin-top: 16px !important;
    }
    
    .cookie-logs-view .modal-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #cookies-view .view-header h1 {
        font-size: 20px;
    }
    
    #cookies-view .view-header p {
        font-size: 13px;
    }
    
    #cookies-view .card-header h3 {
        font-size: 16px;
    }
    
    #cookies-view .filters-grid {
        gap: 10px !important;
    }
    
    #cookies-view .filter-group label {
        font-size: 11px;
    }
    
    #cookies-view .filter-group input,
    #cookies-view .filter-group select {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .cookie-card {
        padding: 12px;
    }
    
    .cookie-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-card-domain {
        width: 100%;
    }
    
    .cookie-card-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cookie-card-footer {
        flex-direction: column;
    }
    
    .cookie-card-footer button {
        width: 100%;
        min-width: 100%;
    }
    
    .cookie-card-info-label {
        font-size: 10px;
    }
    
    .cookie-card-info-value {
        font-size: 12px;
    }
    
    .cookie-logs-view .monitor-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cookie-logs-view .monitor-table thead,
    .cookie-logs-view .monitor-table tbody,
    .cookie-logs-view .monitor-table tr {
        display: block;
    }
    
    .cookie-logs-view .monitor-table thead {
        display: none;
    }
    
    .cookie-logs-view .monitor-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 12px;
        background: var(--bg-tertiary);
    }
    
    .cookie-logs-view .monitor-table td {
        display: block;
        padding: 6px 0;
        border: none;
        text-align: left;
    }
    
    .cookie-logs-view .monitor-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 10px;
        text-transform: uppercase;
        margin-right: 8px;
    }
    
    #cookies-view .card-header h3 {
        font-size: 16px;
    }
    
    #cookies-view .filters-grid {
        gap: 10px !important;
    }
    
    #cookies-view .filter-group label {
        font-size: 11px;
    }
    
    #cookies-view .filter-group input,
    #cookies-view .filter-group select {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .cookie-card {
        padding: 12px;
    }
    
    .cookie-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-card-domain {
        width: 100%;
    }
    
    .cookie-card-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cookie-card-footer {
        flex-direction: column;
    }
    
    .cookie-card-footer button {
        width: 100%;
        min-width: 100%;
    }
    
    .cookie-card-info-label {
        font-size: 10px;
    }
    
    .cookie-card-info-value {
        font-size: 12px;
    }
    
    .cookie-logs-view .monitor-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cookie-logs-view .monitor-table thead,
    .cookie-logs-view .monitor-table tbody,
    .cookie-logs-view .monitor-table tr {
        display: block;
    }
    
    .cookie-logs-view .monitor-table thead {
        display: none;
    }
    
    .cookie-logs-view .monitor-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 12px;
        background: var(--bg-tertiary);
    }
    
    .cookie-logs-view .monitor-table td {
        display: block;
        padding: 6px 0;
        border: none;
        text-align: left;
    }
    
    .cookie-logs-view .monitor-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 10px;
        text-transform: uppercase;
        margin-right: 8px;
    }
    
    .cookie-logs-view .monitor-table th,
    .cookie-logs-view .monitor-table td {
        padding: 8px 10px;
    }
    
    .cookie-logs-view .modal-actions {
        flex-direction: column;
        margin-top: 16px !important;
    }
    
    .cookie-logs-view .modal-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #cookies-view .view-header h1 {
        font-size: 20px;
    }
    
    #cookies-view .view-header p {
        font-size: 13px;
    }
    
    #cookies-view .card-header h3 {
        font-size: 16px;
    }
    
    #cookies-view .filters-grid {
        gap: 10px !important;
    }
    
    #cookies-view .filter-group label {
        font-size: 11px;
    }
    
    #cookies-view .filter-group input,
    #cookies-view .filter-group select {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .cookie-card {
        padding: 12px;
    }
    
    .cookie-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-card-domain {
        width: 100%;
    }
    
    .cookie-card-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cookie-card-footer {
        flex-direction: column;
    }
    
    .cookie-card-footer button {
        width: 100%;
        min-width: 100%;
    }
    
    .cookie-card-info-label {
        font-size: 10px;
    }
    
    .cookie-card-info-value {
        font-size: 12px;
    }
    
    .cookie-logs-view .monitor-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cookie-logs-view .monitor-table thead,
    .cookie-logs-view .monitor-table tbody,
    .cookie-logs-view .monitor-table tr {
        display: block;
    }
    
    .cookie-logs-view .monitor-table thead {
        display: none;
    }
    
    .cookie-logs-view .monitor-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 12px;
        background: var(--bg-tertiary);
    }
    
    .cookie-logs-view .monitor-table td {
        display: block;
        padding: 6px 0;
        border: none;
        text-align: left;
    }
    
    .cookie-logs-view .monitor-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 10px;
        text-transform: uppercase;
        margin-right: 8px;
    }
    
    #cookies-view .card-header h3 {
        font-size: 16px;
    }
    
    #cookies-view .filters-grid {
        gap: 10px !important;
    }
    
    #cookies-view .filter-group label {
        font-size: 11px;
    }
    
    #cookies-view .filter-group input,
    #cookies-view .filter-group select {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .cookie-card {
        padding: 12px;
    }
    
    .cookie-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-card-domain {
        width: 100%;
    }
    
    .cookie-card-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cookie-card-footer {
        flex-direction: column;
    }
    
    .cookie-card-footer button {
        width: 100%;
        min-width: 100%;
    }
    
    .cookie-card-info-label {
        font-size: 10px;
    }
    
    .cookie-card-info-value {
        font-size: 12px;
    }
    
    .cookie-logs-view .monitor-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cookie-logs-view .monitor-table thead,
    .cookie-logs-view .monitor-table tbody,
    .cookie-logs-view .monitor-table tr {
        display: block;
    }
    
    .cookie-logs-view .monitor-table thead {
        display: none;
    }
    
    .cookie-logs-view .monitor-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        padding: 12px;
        background: var(--bg-tertiary);
    }
    
    .cookie-logs-view .monitor-table td {
        display: block;
        padding: 6px 0;
        border: none;
        text-align: left;
    }
    
    .cookie-logs-view .monitor-table td:before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 10px;
        text-transform: uppercase;
        margin-right: 8px;
    }
    
    /* Stream Modal (Live Stream) Small Mobile Adjustments (480px) */
    .stream-container.sidebar-open .stream-sidebar {
        max-height: 250px;
    }
    
    .stream-sidebar-header {
        padding: 10px 12px;
    }
    
    .stream-sidebar-header h4 {
        font-size: 12px;
    }
    
    .stream-sidebar-control {
        padding: 10px 12px;
    }
    
    .toggle-label {
        font-size: 11px;
    }
    
    .toggle-description {
        font-size: 9px;
        padding-left: 48px;
    }
    
    .stream-tabs-list {
        max-height: 100px;
        padding: 6px;
    }
    
    .stream-tab-item {
        padding: 8px;
        margin-bottom: 4px;
    }
    
    .tab-item-title {
        font-size: 11px;
    }
    
    .tab-item-url {
        font-size: 9px;
    }
    
    .stream-header {
        padding: 10px 12px;
    }
    
    .stream-header h3 {
        font-size: 14px;
    }
    
    .stream-header p {
        font-size: 10px;
    }
    
    .stream-status {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .stream-controls {
        padding: 12px;
    }
    
    .fps-control label {
        font-size: 11px;
    }
    
    .fps-btn {
        padding: 5px 8px;
        font-size: 11px;
        min-width: calc(33.33% - 4px);
    }
    
    .fps-control small {
        font-size: 9px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .stream-info {
        padding: 8px 10px;
    }
    
    .stream-tab-title {
        font-size: 12px;
    }
    
    .stream-tab-url {
        font-size: 9px;
    }
    
    .stream-fullscreen-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .stream-image-container {
        padding: 8px;
        max-height: calc(100vh - 450px);
    }
    
    .stream-image {
        max-height: calc(100vh - 470px);
    }
    
    .stream-bottom-controls {
        padding: 8px;
        gap: 6px;
        max-height: 250px;
    }
    
    .stream-control-btn {
        padding: 6px 8px;
        font-size: 10px;
        flex: 1 1 calc(50% - 3px);
        min-width: calc(50% - 3px);
        max-width: calc(50% - 3px);
        justify-content: flex-start;
        gap: 5px;
    }
    
    /* Ajustar padding para botões com token indicator */
    .stream-control-btn:has(.token-status-indicator) {
        padding-left: 18px !important;
    }
    
    .stream-control-btn span {
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
        font-size: 9px;
    }
    
    .stream-control-btn svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
    
    .token-status-indicator {
        left: 4px;
        width: 5px;
        height: 5px;
    }
    
    .stream-viewer.fullscreen .stream-image-container {
        max-height: calc(100vh - 80px);
        padding: 8px;
    }
    
    .stream-viewer.fullscreen .stream-image {
        max-height: calc(100vh - 100px);
    }
    
    .stream-placeholder {
        padding: 30px 12px;
    }
    
    .stream-placeholder svg {
        width: 40px;
        height: 40px;
    }
    
    .stream-placeholder p {
        font-size: 11px;
    }
}

/* Stream Popup Flutuante (Tela Cheia) */
.stream-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stream-popup.active {
    display: flex;
    opacity: 1;
}

.stream-popup-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.stream-popup-header {
    padding: 16px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.stream-popup-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stream-popup-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.stream-popup-close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stream-popup-close:hover {
    background: var(--bg-secondary);
    color: var(--error);
}

.stream-popup-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
}

.stream-popup-sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
}

.stream-popup-section {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.stream-popup-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.stream-popup-tabs-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.stream-popup-tab-item {
    padding: 10px;
    margin-bottom: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.stream-popup-tab-item:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
}

.stream-popup-tab-item.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.stream-popup-tab-item.active .tab-item-title,
.stream-popup-tab-item.active .tab-item-url {
    color: white;
}

.fps-selector-popup {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.fps-btn-popup {
    flex: 1;
    min-width: calc(20% - 5px);
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.fps-btn-popup:hover {
    border-color: var(--primary);
}

.fps-btn-popup.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-block {
    width: 100%;
}

.stream-popup-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
    min-width: 0;
}

.stream-popup-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #000;
    min-height: 0;
}

.stream-image-container-popup {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: auto;
    min-height: 0;
}

.stream-image-popup {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.stream-popup-controls {
    width: 320px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
}

.stream-popup-controls-section {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.stream-popup-controls-section h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stream-control-btn-popup {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    position: relative;
}

.stream-control-btn-popup:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
    transform: translateX(2px);
}

.stream-control-btn-popup.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.stream-control-btn-popup.danger {
    background: var(--bg-tertiary);
    border-color: var(--error);
    color: var(--error);
}

.stream-control-btn-popup.danger:hover {
    background: var(--error);
    color: white;
}

.stream-control-btn-popup svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.stream-control-btn-popup span {
    flex: 1;
    text-align: left;
}

.stream-control-btn-popup:has(.token-status-indicator) {
    padding-left: 24px;
}

/* ComboBox para Mobile */
.stream-popup-controls-mobile-header {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    order: 0;
}

.stream-controls-combobox {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stream-controls-combobox:hover {
    border-color: var(--primary);
}

.stream-controls-combobox:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.stream-controls-combobox optgroup {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.stream-controls-combobox option {
    padding: 8px 12px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.stream-popup-controls-desktop {
    display: flex;
    flex-direction: column;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Mostrar ComboBox no topo no mobile */
    .stream-popup-controls-mobile-header {
        display: block !important;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .stream-popup-sidebar {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        order: 2;
    }
    
    .stream-popup-body {
        flex-direction: column;
    }
    
    .stream-popup-main {
        order: 1;
        flex: 1;
        min-height: 0;
    }
    
    .stream-popup-controls {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
        order: 3;
        padding: 12px;
        display: none; /* Ocultar controles desktop no mobile */
    }
    
    /* Ocultar controles desktop no mobile */
    .stream-popup-controls-desktop {
        display: none;
    }
    
    .stream-popup-header {
        padding: 12px 16px;
    }
    
    .stream-popup-header h3 {
        font-size: 14px;
    }
    
    .stream-popup-section {
        padding: 12px;
    }
    
    .stream-popup-section h4 {
        font-size: 12px;
    }
    
    .fps-btn-popup {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .stream-image-container-popup {
        padding: 10px;
    }
}

/* HVNC Browser Mobile Styles */
@media (max-width: 768px) {
    /* Modal HVNC Mobile */
    #hvnc-modal .modal-content.xlarge {
        max-width: 100vw;
        width: 100vw;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    #hvnc-modal .modal-header {
        padding: 12px 16px;
        flex-shrink: 0;
    }
    
    #hvnc-modal .modal-header h2 {
        font-size: 18px;
    }
    
    #hvnc-modal .modal-body {
        padding: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        height: calc(100vh - 60px);
    }
    
    /* Chrome Toolbar Mobile */
    .chrome-toolbar {
        padding: 8px;
        flex-wrap: wrap;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .chrome-tabs {
        width: 100%;
        order: 1;
    }
    
    .chrome-tab {
        padding: 6px 12px;
        font-size: 12px;
        max-width: calc(100% - 8px);
    }
    
    .chrome-tab-title {
        font-size: 11px;
    }
    
    .chrome-controls {
        order: 2;
        gap: 6px;
    }
    
    .chrome-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    
    /* Chrome Address Bar Mobile */
    .chrome-address-bar {
        padding: 8px;
        flex-direction: column;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .chrome-address-container {
        width: 100%;
        padding: 8px 12px;
        border-radius: 24px;
    }
    
    .chrome-url-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 8px 4px;
    }
    
    .chrome-status {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        justify-content: space-between;
    }
    
    .chrome-status-indicator {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .chrome-fps-control {
        gap: 4px;
    }
    
    .chrome-fps-control label {
        font-size: 11px;
    }
    
    .chrome-fps-select {
        padding: 6px 8px;
        font-size: 14px;
        min-width: 60px;
    }
    
    .chrome-control-toggles {
        gap: 6px;
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .chrome-control-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 18px;
    }
    
    .chrome-stream-btn {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 40px;
        flex: 1;
        order: 4;
    }
    
    /* Chrome Main Content Mobile */
    .hvnc-main-content.chrome-main {
        flex-direction: column;
        overflow: hidden;
    }
    
    .chrome-sidebar {
        width: 100%;
        max-width: 100%;
        max-height: 200px;
        min-height: 150px;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        flex-shrink: 0;
        order: 2;
    }
    
    .chrome-sidebar-header {
        padding: 12px;
    }
    
    .chrome-sidebar-header h4 {
        font-size: 13px;
    }
    
    .chrome-history-list {
        padding: 8px;
        max-height: 150px;
    }
    
    .chrome-history-item {
        padding: 10px;
        margin-bottom: 4px;
    }
    
    .chrome-history-favicon {
        width: 18px;
        height: 18px;
    }
    
    .chrome-history-title {
        font-size: 12px;
    }
    
    .chrome-history-url {
        font-size: 11px;
    }
    
    .chrome-content-area {
        flex: 1;
        min-height: 0;
        order: 1;
        overflow: hidden;
    }
    
    .chrome-viewer {
        touch-action: pan-x pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
    }
    
    .chrome-page-container {
        padding: 8px;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .chrome-page-image {
        max-width: 100%;
        max-height: none;
        width: auto;
        height: auto;
        touch-action: pan-x pan-y pinch-zoom;
    }
    
    .chrome-new-tab {
        padding: 20px;
    }
    
    .chrome-logo {
        font-size: 60px;
        margin-bottom: 16px;
    }
    
    .chrome-new-tab h2 {
        font-size: 20px;
    }
    
    .chrome-new-tab p {
        font-size: 13px;
    }
    
    /* Mouse cursor mobile adjustments */
    .chrome-mouse-cursor {
        width: 24px;
        height: 24px;
        border-width: 3px;
    }
}

@media (max-width: 480px) {
    /* HVNC Browser Small Mobile */
    #hvnc-modal .modal-header {
        padding: 10px 12px;
    }
    
    #hvnc-modal .modal-header h2 {
        font-size: 16px;
    }
    
    #hvnc-modal .modal-body {
        height: calc(100vh - 50px);
    }
    
    .chrome-toolbar {
        padding: 6px;
        gap: 6px;
    }
    
    .chrome-tab {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .chrome-tab-title {
        font-size: 10px;
    }
    
    .chrome-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
    
    .chrome-address-bar {
        padding: 6px;
        gap: 6px;
    }
    
    .chrome-address-container {
        padding: 6px 10px;
    }
    
    .chrome-url-input {
        font-size: 16px;
        padding: 6px 4px;
    }
    
    .chrome-status {
        gap: 6px;
    }
    
    .chrome-status-indicator {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .chrome-fps-control label {
        font-size: 10px;
    }
    
    .chrome-fps-select {
        padding: 5px 6px;
        font-size: 13px;
        min-width: 50px;
    }
    
    .chrome-control-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 16px;
    }
    
    .chrome-stream-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
    }
    
    .chrome-sidebar {
        max-height: 180px;
        min-height: 120px;
    }
    
    .chrome-sidebar-header {
        padding: 10px;
    }
    
    .chrome-sidebar-header h4 {
        font-size: 12px;
    }
    
    .chrome-history-list {
        padding: 6px;
        max-height: 130px;
    }
    
    .chrome-history-item {
        padding: 8px;
    }
    
    .chrome-history-favicon {
        width: 16px;
        height: 16px;
    }
    
    .chrome-history-title {
        font-size: 11px;
    }
    
    .chrome-history-url {
        font-size: 10px;
    }
    
    .chrome-new-tab {
        padding: 16px;
    }
    
    .chrome-logo {
        font-size: 50px;
        margin-bottom: 12px;
    }
    
    .chrome-new-tab h2 {
        font-size: 18px;
    }
    
    .chrome-new-tab p {
        font-size: 12px;
    }
    
    .chrome-page-container {
        padding: 4px;
    }
    
    .chrome-mouse-cursor {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }
}

/* HVNC Browser View Mobile */
@media (max-width: 768px) {
    .hvnc-browser-container {
        padding: 16px;
    }
    
    .hvnc-browser-container .clients-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .hvnc-browser-container .client-card {
        padding: 16px;
    }
    
    .hvnc-browser-container .client-card-header {
        margin-bottom: 12px;
    }
    
    .hvnc-browser-container .client-name {
        font-size: 16px;
    }
    
    .hvnc-browser-container .client-card-body {
        margin-bottom: 12px;
    }
    
    .hvnc-browser-container .client-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }
    
    .hvnc-browser-container .detail-label {
        font-size: 12px;
    }
    
    .hvnc-browser-container .detail-value {
        text-align: left;
        max-width: 100%;
        word-break: break-word;
        white-space: normal;
    }
    
    .hvnc-browser-container .section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .hvnc-browser-container .clients-section {
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .hvnc-browser-container {
        padding: 12px;
    }
    
    .hvnc-browser-container .client-card {
        padding: 12px;
    }
    
    .hvnc-browser-container .client-name {
        font-size: 14px;
    }
    
    .hvnc-browser-container .section-title {
        font-size: 14px;
    }
}