/* ==========================================================================
   SISTEMA DE DESIGN E TOKENS (STYLE SYSTEM)
   ========================================================================== */

   :root {
    /* Google Fonts */
    --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Cores - Tema Escuro (Padrão) */
    --bg-main: hsl(222, 47%, 6%);
    --bg-header: hsla(222, 47%, 4%, 0.7);
    --bg-card: hsla(223, 47%, 11%, 0.45);
    --bg-card-hover: hsla(223, 47%, 16%, 0.6);
    
    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 20%, 75%);
    --text-muted: hsl(215, 15%, 55%);
    
    --border-color: hsla(217, 30%, 20%, 0.3);
    --border-highlight: hsla(210, 40%, 98%, 0.08);
    --border-hover: hsla(190, 90%, 50%, 0.3);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 24px hsla(190, 90%, 50%, 0.15);
    
    /* Cores de Acento */
    --accent-blue: hsl(210, 100%, 55%);
    --accent-cyan: hsl(190, 90%, 50%);
    --accent-violet: hsl(260, 85%, 65%);
    --accent-emerald: hsl(145, 80%, 45%);
    --accent-rose: hsl(345, 85%, 52%);

    --accent-cemiweb: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    --accent-leis: linear-gradient(135deg, var(--accent-violet), var(--accent-rose));
    
    /* Transições */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Formatos */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Modificações para Tema Claro */
.light-theme {
    --bg-main: hsl(210, 20%, 96%);
    --bg-header: hsla(210, 20%, 98%, 0.85);
    --bg-card: hsla(0, 0%, 100%, 0.65);
    --bg-card-hover: hsla(0, 0%, 100%, 0.9);
    
    --text-primary: hsl(222, 47%, 12%);
    --text-secondary: hsl(222, 20%, 35%);
    --text-muted: hsl(222, 15%, 50%);
    
    --border-color: hsla(222, 20%, 80%, 0.4);
    --border-highlight: hsla(222, 20%, 90%, 0.5);
    --border-hover: hsla(210, 100%, 55%, 0.3);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px hsla(210, 100%, 55%, 0.1);
}

/* ==========================================================================
   RESET E CONFIGURAÇÕES GERAIS
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ==========================================================================
   FORMAS ORGÂNICAS EM BACKGROUND (DYNAMIC GLOW)
   ========================================================================== */

.bg-gradient-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    mix-blend-mode: screen;
    animation: float-shapes 20s infinite alternate ease-in-out;
    transition: opacity var(--transition-normal);
}

.light-theme .shape {
    opacity: 0.06;
    mix-blend-mode: multiply;
    filter: blur(140px);
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-violet) 0%, transparent 70%);
    animation-delay: -5s;
}

.shape-3 {
    top: 40%;
    left: 45%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--accent-rose) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float-shapes {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    100% {
        transform: translate(50px, 80px) scale(1.15) rotate(45deg);
    }
}

/* ==========================================================================
   CABEÇALHO (HEADER) - GLASSMORPHISM
   ========================================================================== */

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-header);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-highlight);
    padding: 1.25rem 0;
    transition: background-color var(--transition-normal), border-bottom var(--transition-normal);
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    font-size: 2.25rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    animation: icon-float 4s infinite alternate ease-in-out;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Indicador de Ambiente */
.env-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-highlight);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.light-theme .env-badge {
    background: rgba(0, 0, 0, 0.04);
}

.env-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.env-badge.prod-mode .env-dot {
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

/* Alternador de Tema */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-highlight);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    outline: none;
}

.theme-toggle-btn:hover {
    background-color: var(--border-highlight);
    transform: scale(1.05);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* Estado de ícones nos temas */
.dark-theme .theme-toggle-btn .sun-icon {
    transform: translateY(0);
    opacity: 1;
}

.dark-theme .theme-toggle-btn .moon-icon {
    transform: translateY(40px);
    opacity: 0;
}

.light-theme .theme-toggle-btn .sun-icon {
    transform: translateY(-40px);
    opacity: 0;
}

.light-theme .theme-toggle-btn .moon-icon {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL (MAIN)
   ========================================================================== */

.app-main {
    flex: 1;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Seção de Introdução */
.intro-section {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-cyan) 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: title-fade 1s ease-out;
}

.light-theme .main-title {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-blue) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Grid de Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   CARDS DE SISTEMAS - GLASSMORPHISM DE ALTO IMPACTO
   ========================================================================== */

.system-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), 
                background-color var(--transition-normal),
                border-color var(--transition-normal), 
                box-shadow var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

/* Hover e Efeitos de Acento por Card */
.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--card-accent);
    opacity: 0.8;
    transition: height var(--transition-fast) ease-out;
}

.system-card:hover {
    transform: translateY(-8px);
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.system-card:hover::before {
    height: 6px;
}

/* Ícone do Card com Efeito Blur no Fundo */
.card-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--card-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: white;
    font-size: 2.25rem;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-normal);
}

.system-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(3deg);
}

/* SVG Customizado dos Ícones */
.card-icon-svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
}

/* Header Interno do Card (Título + Status) */
.card-header-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

/* Badge de Saúde do Servidor */
.status-indicator-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-highlight);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.light-theme .status-indicator-badge {
    background: rgba(0, 0, 0, 0.03);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

/* Status Dinâmico */
.status-indicator-badge.status-checking .status-dot {
    background-color: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
    animation: pulse-dot 1.5s infinite;
}

.status-indicator-badge.status-online {
    border-color: rgba(34, 197, 94, 0.3);
    color: var(--accent-emerald);
}
.status-indicator-badge.status-online .status-dot {
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse-dot 2s infinite;
}

.status-indicator-badge.status-offline {
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--accent-rose);
}
.status-indicator-badge.status-offline .status-dot {
    background-color: var(--accent-rose);
    box-shadow: 0 0 8px var(--accent-rose);
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* Descrição do Sistema */
.card-description {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

/* Botão Elegante de Acesso */
.card-action-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--border-highlight);
    border: 1px solid var(--border-highlight);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.system-card:hover .card-action-btn {
    background: var(--card-accent);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform var(--transition-normal);
}

.system-card:hover .btn-arrow {
    transform: translateX(6px);
}

/* SKELETON LOADER PARA LOADING */
.card-skeleton {
    background-color: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    height: 380px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skeleton-icon, .skeleton-title, .skeleton-text, .skeleton-button {
    background: linear-gradient(90deg, var(--border-highlight) 25%, var(--border-color) 50%, var(--border-highlight) 75%);
    background-size: 200% 100%;
    animation: loading-shine 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-icon { width: 72px; height: 72px; border-radius: var(--radius-md); }
.skeleton-title { width: 60%; height: 28px; }
.skeleton-text { width: 100%; height: 60px; }
.skeleton-button { width: 100%; height: 48px; border-radius: var(--radius-md); margin-top: auto; }

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

/* ==========================================================================
   RODAPÉ (FOOTER)
   ========================================================================== */

.app-footer {
    border-top: 1px solid var(--border-highlight);
    background-color: var(--bg-header);
    padding: 2rem 0;
    z-index: 10;
    transition: background-color var(--transition-normal), border-top var(--transition-normal);
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.server-ip code {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid var(--border-highlight);
    color: var(--text-secondary);
    font-family: monospace;
}

.light-theme .server-ip code {
    background-color: rgba(0, 0, 0, 0.03);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulse-dot 1.5s infinite;
}

/* ==========================================================================
   MICRO-ANIMAÇÕES & ACESSOS RÁPIDOS
   ========================================================================== */

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

@keyframes icon-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* ==========================================================================
   MÍDIA E RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .app-main {
        padding: 2.5rem 1.5rem;
    }

    .intro-section {
        margin-bottom: 2.5rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ==========================================================================
   PAINEL DE MONITORAMENTO (MODAL E MONITOR DE VPS)
   ========================================================================== */

/* Botão Monitor VPS no Header */
.monitor-btn {
    background: none;
    border: 1px solid var(--border-highlight);
    border-radius: 50px;
    padding: 0.5rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    outline: none;
}

.monitor-btn:hover {
    background-color: var(--border-highlight);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px hsla(190, 90%, 50%, 0.15);
    transform: scale(1.02);
}

.monitor-icon {
    width: 16px;
    height: 16px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal) ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Card (Glassmorphism) */
.modal-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md), 0 20px 50px rgba(0,0,0,0.4);
    transform: scale(0.95);
    transition: transform var(--transition-normal) cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

/* Header do Modal */
.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-highlight);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.modal-header-icon {
    font-size: 1.75rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
    outline: none;
    line-height: 1;
}

.close-modal-btn:hover {
    color: var(--accent-rose);
}

/* Corpo do Modal */
.modal-body {
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Grid de Métricas */
.monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.monitor-metric-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.light-theme .monitor-metric-card {
    background: rgba(255, 255, 255, 0.5);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.metric-val {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-cyan);
}

/* Barra de Progresso */
.progress-bar-container {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
}

.light-theme .progress-bar-container {
    background: rgba(0, 0, 0, 0.08);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 5px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ram-fill {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    box-shadow: 0 0 8px hsla(190, 90%, 50%, 0.5);
}

.swap-fill {
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-rose));
}

.metric-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.metric-details span {
    color: var(--text-muted);
    display: block;
}

.metric-details strong {
    font-size: 0.8rem;
    color: var(--text-primary);
}

/* Tabela de Processos */
.process-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-highlight);
}

.process-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    text-align: left;
}

.process-table th {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-highlight);
}

.light-theme .process-table th {
    background: rgba(0, 0, 0, 0.04);
}

.process-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-highlight);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.process-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.light-theme .process-table tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

.cmd-cell {
    font-family: monospace;
    max-width: 320px;
}

/* Rodapé do Modal */
.modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-highlight);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
}

.light-theme .modal-footer {
    background: rgba(0, 0, 0, 0.02);
}

.last-update {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.modal-btn-secondary {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-highlight);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    outline: none;
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Auxiliares */
.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .monitor-grid {
        grid-template-columns: 1fr;
    }
    .metric-details {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .modal-card {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .monitor-btn .btn-text {
        display: none;
    }
}
