/* ============================================================
   Uzak Erisim Sistemi - HACKER / CYBERPUNK THEME v5.0
   Terminal-inspired dark UI with neon green/cyan accents
   ============================================================ */

/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Fira+Code:wght@300;400;500;600;700&display=swap');

/* === CSS Degiskenleri === */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0d0d14;
    --bg-card: #12121a;
    --bg-hover: #1a1a28;
    --bg-input: #0e0e16;
    --border-color: rgba(0, 255, 65, 0.08);
    --border-hover: rgba(0, 255, 65, 0.25);
    --text-primary: #c8ffc8;
    --text-secondary: #7dba7d;
    --text-muted: #3d6b3d;
    --accent: #00ff41;
    --accent-hover: #00cc34;
    --accent-glow: rgba(0, 255, 65, 0.1);
    --success: #00ff41;
    --success-bg: rgba(0, 255, 65, 0.08);
    --danger: #ff3b3b;
    --danger-bg: rgba(255, 59, 59, 0.08);
    --warning: #ffb800;
    --warning-bg: rgba(255, 184, 0, 0.08);
    --info: #00d4ff;
    --info-bg: rgba(0, 212, 255, 0.08);
    --cyan: #00d4ff;
    --cyan-glow: rgba(0, 212, 255, 0.15);
    --sidebar-width: 240px;
    --radius: 6px;
    --radius-sm: 4px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
    --shadow-neon: 0 0 10px rgba(0, 255, 65, 0.2), 0 0 30px rgba(0, 255, 65, 0.05);
    --shadow-cyan: 0 0 10px rgba(0, 212, 255, 0.2), 0 0 30px rgba(0, 212, 255, 0.05);
    --transition: all 0.2s ease;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

/* === Scanline Overlay Animation === */
@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 4px rgba(0, 255, 65, 0.4); }
    50% { text-shadow: 0 0 8px rgba(0, 255, 65, 0.6), 0 0 16px rgba(0, 255, 65, 0.2); }
}

@keyframes borderGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 255, 65, 0.1); }
    50% { box-shadow: 0 0 10px rgba(0, 255, 65, 0.2), 0 0 20px rgba(0, 255, 65, 0.05); }
}

@keyframes cursorBlink {
    0%, 100% { border-color: var(--accent); }
    50% { border-color: transparent; }
}

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

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Global scanline overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.015) 2px,
        rgba(0, 255, 65, 0.015) 4px
    );
    animation: scanlines 0.1s linear infinite;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cyan); text-shadow: 0 0 8px rgba(0, 212, 255, 0.5); }
img { max-width: 100%; }
code {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.9em;
    color: var(--info);
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 212, 255, 0.15);
}
pre {
    background: var(--bg-input);
    padding: 12px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 0.85em;
    color: var(--accent);
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 255, 65, 0.1);
    max-height: 300px;
    overflow-y: auto;
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.3);
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.3);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 65, 0.6);
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}

/* === Layout === */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid rgba(0, 255, 65, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition);
    box-shadow: 1px 0 20px rgba(0, 0, 0, 0.5);
}

/* Sidebar scanline decoration */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 255, 65, 0.01) 3px,
        rgba(0, 255, 65, 0.01) 6px
    );
    z-index: 1;
}

.sidebar-header {
    padding: 20px 18px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    position: relative;
    z-index: 2;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    animation: textGlow 3s ease-in-out infinite;
}
.brand i {
    color: var(--accent);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 4px rgba(0, 255, 65, 0.6));
}

.sidebar-menu {
    list-style: none;
    padding: 12px 10px;
    flex: 1;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}
.sidebar-menu li {
    margin-bottom: 2px;
}
.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.93rem;
    border: 1px solid transparent;
    font-family: var(--font-mono);
}
.sidebar-menu li a:hover {
    background: rgba(0, 255, 65, 0.05);
    color: var(--accent);
    border-color: rgba(0, 255, 65, 0.1);
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
}
.sidebar-menu li.active a {
    background: rgba(0, 255, 65, 0.08);
    color: var(--accent);
    font-weight: 500;
    border-color: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}
.sidebar-menu li a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}
.sidebar-menu .count {
    margin-left: auto;
    background: rgba(0, 255, 65, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.78rem;
    color: var(--accent);
    border: 1px solid rgba(0, 255, 65, 0.15);
}

.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
}
.sidebar-footer a {
    color: var(--text-muted);
    transition: var(--transition);
    padding: 6px;
}
.sidebar-footer a:hover {
    color: var(--danger);
    text-shadow: 0 0 8px rgba(255, 59, 59, 0.5);
}

.content {
    margin-left: var(--sidebar-width);
    padding: 24px 28px;
    min-height: 100vh;
}

/* === Page Header === */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    letter-spacing: 1px;
}
.page-header h2 i {
    color: var(--cyan);
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.5));
}
.refresh-info {
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 5px 12px;
    border-radius: 2px;
    border: 1px solid rgba(0, 255, 65, 0.08);
    font-family: var(--font-mono);
}

/* === Stats Grid === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 255, 65, 0.02) 100%);
    border: 1px solid rgba(0, 255, 65, 0.08);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.3), transparent);
}
.stat-card:hover {
    border-color: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1), var(--shadow);
    transform: translateY(-1px);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid transparent;
}
.stat-icon.bg-primary {
    background: rgba(0, 255, 65, 0.08);
    color: var(--accent);
    border-color: rgba(0, 255, 65, 0.15);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}
.stat-icon.bg-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: rgba(0, 255, 65, 0.15);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}
.stat-icon.bg-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(255, 59, 59, 0.15);
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.1);
}
.stat-icon.bg-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: rgba(255, 184, 0, 0.15);
    box-shadow: 0 0 10px rgba(255, 184, 0, 0.1);
}
.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.2);
}
.stat-info p {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Section === */
.section {
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.08);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), rgba(0, 255, 65, 0.2), transparent);
}
.section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.3);
    letter-spacing: 0.5px;
}
.section h3 i {
    color: var(--accent);
    font-size: 0.95rem;
    filter: drop-shadow(0 0 3px rgba(0, 255, 65, 0.4));
}

/* === Device Grid === */
.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.device-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 255, 65, 0.06);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}
/* Terminal-style scanline overlay on device cards */
.device-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.008) 2px,
        rgba(0, 255, 65, 0.008) 4px
    );
    z-index: 1;
}
.device-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.15), 0 0 30px rgba(0, 255, 65, 0.05);
    transform: translateY(-2px);
}
.device-card.online {
    border-left: 3px solid var(--success);
    box-shadow: inset 3px 0 10px rgba(0, 255, 65, 0.05);
}
.device-card.offline {
    border-left: 3px solid var(--text-muted);
    opacity: 0.7;
}

.device-card-header {
    padding: 14px 16px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}
.device-card-header strong {
    font-size: 0.95rem;
    color: var(--cyan);
    text-shadow: 0 0 4px rgba(0, 212, 255, 0.3);
}

.device-card-body {
    padding: 4px 16px 10px;
    position: relative;
    z-index: 2;
}

.device-metric {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.82rem;
}
.device-metric > span:first-child {
    width: 32px;
    color: var(--text-muted);
    font-weight: 500;
    font-family: var(--font-mono);
}
.device-metric > span:last-child {
    width: 42px;
    text-align: right;
    color: var(--accent);
    font-size: 0.8rem;
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.3);
}
.device-card-body .text-muted {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 6px;
}

.device-card-footer {
    padding: 8px 16px 14px;
    display: flex;
    gap: 6px;
    position: relative;
    z-index: 2;
}

/* === Progress Bars === */
.progress-bar, .progress-bar-sm, .progress-bar-lg {
    flex: 1;
    height: 6px;
    background: rgba(0, 255, 65, 0.05);
    border-radius: 1px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 65, 0.05);
}
.progress-bar-sm { height: 4px; }
.progress-bar-lg { height: 8px; }
.progress-fill {
    height: 100%;
    border-radius: 1px;
    transition: width 0.6s ease;
    background: linear-gradient(90deg, var(--accent) 0%, var(--warning) 60%, var(--danger) 100%);
    box-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
}

/* === Badges === */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-online {
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 255, 65, 0.2);
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.3);
}
.badge-offline {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(100, 116, 139, 0.15);
}
.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 255, 65, 0.2);
}
.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 59, 59, 0.2);
}
.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(255, 184, 0, 0.2);
}
.badge-info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* === Status Dot === */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.dot-online {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(0, 255, 65, 0.3);
    animation: pulse-dot 2s ease-in-out infinite;
}
.dot-offline {
    background: var(--text-muted);
    box-shadow: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(0, 255, 65, 0.3); }
    50% { opacity: 0.5; box-shadow: 0 0 4px var(--accent); }
}

/* === Tables === */
.table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
}
.table thead th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    background: rgba(0, 212, 255, 0.03);
    text-shadow: 0 0 4px rgba(0, 212, 255, 0.2);
}
.table tbody tr {
    border-bottom: 1px solid rgba(0, 255, 65, 0.04);
    transition: var(--transition);
}
.table tbody tr:hover {
    background: rgba(0, 255, 65, 0.03);
    box-shadow: inset 0 0 20px rgba(0, 255, 65, 0.02);
}
.table tbody td {
    padding: 10px 14px;
    font-size: 0.88rem;
    vertical-align: middle;
    color: var(--text-secondary);
}
.table-sm td, .table-sm th {
    padding: 6px 10px;
    font-size: 0.82rem;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--accent);
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-mono);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn:hover {
    background: rgba(0, 255, 65, 0.08);
    border-color: rgba(0, 255, 65, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.15), inset 0 0 10px rgba(0, 255, 65, 0.05);
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
    color: var(--accent);
}
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }
.btn-primary {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.1);
}
.btn-primary:hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3), inset 0 0 15px rgba(0, 255, 65, 0.05);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}
.btn-success {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--success);
    color: var(--success);
}
.btn-success:hover {
    background: rgba(0, 255, 65, 0.2);
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}
.btn-danger {
    background: rgba(255, 59, 59, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}
.btn-danger:hover {
    background: rgba(255, 59, 59, 0.2);
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.3);
    text-shadow: 0 0 8px rgba(255, 59, 59, 0.5);
}
.btn-warning {
    background: rgba(255, 184, 0, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}
.btn-warning:hover {
    background: rgba(255, 184, 0, 0.2);
    border-color: var(--warning);
    color: var(--warning);
    box-shadow: 0 0 15px rgba(255, 184, 0, 0.3);
}
.btn-block { width: 100%; justify-content: center; }
.btn:disabled, .btn[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

/* === Forms === */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}
.form-group label i {
    margin-right: 4px;
    color: var(--accent);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid rgba(0, 255, 65, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    transition: var(--transition);
    caret-color: var(--accent);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2), 0 0 30px rgba(0, 255, 65, 0.05), inset 0 0 10px rgba(0, 255, 65, 0.03);
    animation: borderGlow 2s ease-in-out infinite;
}
input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

input[type="file"] {
    padding: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.input-group {
    display: flex;
    gap: 8px;
}
.input-group input { flex: 1; }

/* === Alerts === */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeSlideIn 0.3s ease;
    font-family: var(--font-mono);
}
.alert-success {
    background: rgba(0, 255, 65, 0.05);
    color: var(--accent);
    border: 1px solid rgba(0, 255, 65, 0.15);
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.2);
}
.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 59, 59, 0.2);
    text-shadow: 0 0 4px rgba(255, 59, 59, 0.2);
}
.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(255, 184, 0, 0.2);
}
.alert-info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(0, 212, 255, 0.2);
    text-shadow: 0 0 4px rgba(0, 212, 255, 0.2);
}

/* === Login Page === */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Matrix rain background effect for login */
.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 255, 65, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 255, 65, 0.02) 0%, transparent 50%);
    z-index: 0;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 36px;
    background: rgba(18, 18, 26, 0.95);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: var(--radius);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.05), 0 0 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}
/* Terminal-style top bar for login */
.login-container::before {
    content: '[ SECURE TERMINAL ]';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 2px 12px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}
.login-header {
    text-align: center;
    margin-bottom: 28px;
}
.login-header i {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.5));
    animation: textGlow 2s ease-in-out infinite;
}
.login-header h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 8px;
    font-family: var(--font-mono);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    letter-spacing: 2px;
}
.login-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 4px;
    font-family: var(--font-mono);
}
.login-page .btn-primary {
    padding: 12px;
    font-size: 0.95rem;
    margin-top: 8px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.login-page .btn-primary:hover {
    background: rgba(0, 255, 65, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3), inset 0 0 20px rgba(0, 255, 65, 0.05);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

/* Scanline effect element */
.scanline {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.02) 2px,
        rgba(0, 255, 65, 0.02) 4px
    );
    animation: scanlines 0.08s linear infinite;
}

/* === Filters === */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.filter-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 3px;
    border: 1px solid rgba(0, 255, 65, 0.08);
}
.tab {
    padding: 6px 14px;
    border-radius: 2px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: var(--transition);
    font-family: var(--font-mono);
    cursor: pointer;
}
.tab:hover {
    color: var(--accent);
    background: rgba(0, 255, 65, 0.05);
}
.tab.active {
    background: rgba(0, 255, 65, 0.15);
    color: var(--accent);
    border: 1px solid rgba(0, 255, 65, 0.3);
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}
.search-form {
    display: flex;
    gap: 6px;
}
.search-form input {
    width: 200px;
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* === Info Grid (Device Detail) === */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.info-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.08);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
}
.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}
.info-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 4px rgba(0, 212, 255, 0.3);
    letter-spacing: 0.5px;
}
.info-card h4 i {
    color: var(--accent);
    filter: drop-shadow(0 0 3px rgba(0, 255, 65, 0.4));
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
}
.info-table td {
    padding: 6px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.04);
}
.info-table td:first-child {
    color: var(--text-muted);
    width: 140px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.metric-large {
    margin-bottom: 16px;
}
.metric-item {
    margin-bottom: 12px;
}
.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.metric-value {
    font-size: 0.82rem;
    color: var(--accent);
    display: block;
    margin-top: 4px;
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.2);
}

/* === Disk Grid === */
.disk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.disk-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 255, 65, 0.06);
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: var(--transition);
}
.disk-card:hover {
    border-color: rgba(0, 255, 65, 0.15);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.05);
}
.disk-card strong {
    font-size: 0.9rem;
    color: var(--cyan);
    display: block;
    margin-bottom: 8px;
    text-shadow: 0 0 4px rgba(0, 212, 255, 0.2);
}
.disk-card small {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    margin-top: 6px;
}

/* === Quick Actions === */
.quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* === Command Result === */
.command-result {
    margin-top: 8px;
    max-height: 200px;
}

/* === Screenshot Area === */
.screenshot-area {
    position: relative;
}
#screenshot-latest img {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

/* === File Upload Form === */
.file-upload-form {
    margin-bottom: 14px;
}

/* === Code Block === */
.code-block {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 255, 65, 0.08);
}
.code-block code {
    background: transparent;
    padding: 0;
    flex: 1;
    word-break: break-all;
    color: var(--accent);
    border: none;
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.3);
}

/* === Settings Form === */
.settings-form {
    max-width: 400px;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}
.empty-state i {
    color: var(--text-muted);
    margin-bottom: 14px;
    opacity: 0.5;
}
.empty-state p {
    margin-top: 8px;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* === Hidden === */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }

/* === Modal Overlay (Device Panel) === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-panel {
    width: 95%;
    max-width: 1100px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: var(--radius);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.08), 0 0 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.97);
    transition: all 0.25s ease;
    position: relative;
}
/* Terminal title bar decoration */
.modal-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    z-index: 5;
}
.modal-overlay.active .modal-panel {
    transform: translateY(0) scale(1);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    flex-shrink: 0;
    background: rgba(0, 255, 65, 0.02);
}
.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}
.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 2px;
    border: 1px solid rgba(255, 59, 59, 0.2);
    background: rgba(255, 59, 59, 0.05);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    font-family: var(--font-mono);
}
.modal-close:hover {
    background: rgba(255, 59, 59, 0.2);
    border-color: var(--danger);
    color: var(--danger);
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.3);
    text-shadow: 0 0 6px rgba(255, 59, 59, 0.5);
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 255, 65, 0.08);
    padding: 0 24px;
    flex-shrink: 0;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.2);
}
.modal-tab {
    padding: 12px 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.modal-tab:hover {
    color: var(--accent);
}
.modal-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 500;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}
.modal-tab i { margin-right: 6px; }

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}
.modal-tab-content {
    display: none;
}
.modal-tab-content.active {
    display: block;
    animation: fadeSlideIn 0.2s ease;
}

/* === Animations === */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Chart Container === */
#perfChart, .perf-chart-canvas {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 8px;
    border: 1px solid rgba(0, 255, 65, 0.06);
}

/* === Screenshot Gallery in Modal === */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.screenshot-thumb {
    cursor: pointer;
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-primary);
    transition: var(--transition);
}
.screenshot-thumb:hover {
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}
.screenshot-thumb img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
    filter: brightness(0.9) contrast(1.1);
}
.screenshot-thumb:hover img {
    filter: brightness(1) contrast(1.1);
}
.screenshot-thumb .thumb-info {
    padding: 6px 8px;
    font-size: 0.73rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Screenshot Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
}
.lightbox img {
    max-width: 92%;
    max-height: 82vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.1);
}
.lightbox-info {
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}
.lightbox-download {
    color: var(--cyan);
    margin-top: 8px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}
.lightbox-download:hover {
    text-decoration: underline;
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
}

/* === Toast Notifications === */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    animation: fadeSlideIn 0.3s ease;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-mono);
    border: 1px solid rgba(0, 255, 65, 0.2);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
}

/* === Command Input (Modal) === */
.cmd-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.cmd-input-row input {
    flex: 1;
    background: var(--bg-primary);
    border-color: rgba(0, 255, 65, 0.15);
    color: var(--accent);
}
.cmd-input-row input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}
.cmd-actions-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* === Responsive === */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .content {
        margin-left: 0;
        padding: 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .device-grid {
        grid-template-columns: 1fr;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .modal-panel {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-form input {
        width: 100%;
    }
}

.mobile-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.mobile-toggle:hover {
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}
@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
}

/* === Live Screen Viewer === */
.live-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.live-screen-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    z-index: 1;
}
.live-screen-header h4 {
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-family: var(--font-mono);
    text-shadow: 0 0 6px rgba(0, 212, 255, 0.3);
}
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 59, 59, 0.1);
    color: var(--danger);
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 59, 59, 0.2);
}
.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse-dot 1s ease-in-out infinite;
    box-shadow: 0 0 8px var(--danger);
}
.live-screen-img {
    max-width: 92%;
    max-height: calc(100vh - 80px);
    margin-top: 60px;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.1);
}

/* === Stress/Action Cards === */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.action-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 255, 65, 0.06);
    border-radius: var(--radius);
    padding: 18px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.action-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}
.action-card.danger:hover {
    border-color: var(--danger);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.15);
}
.action-card.warning:hover {
    border-color: var(--warning);
    box-shadow: 0 0 15px rgba(255, 184, 0, 0.15);
}
.action-card.success:hover {
    border-color: var(--success);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
}
.action-card.info:hover {
    border-color: var(--info);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}
.action-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}
.action-card.danger i {
    color: var(--danger);
    filter: drop-shadow(0 0 4px rgba(255, 59, 59, 0.4));
}
.action-card.warning i {
    color: var(--warning);
    filter: drop-shadow(0 0 4px rgba(255, 184, 0, 0.4));
}
.action-card.success i {
    color: var(--success);
    filter: drop-shadow(0 0 4px rgba(0, 255, 65, 0.4));
}
.action-card.info i {
    color: var(--info);
    filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.4));
}
.action-card h5 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-family: var(--font-mono);
}
.action-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* === Terminal Log Style === */
.terminal-log {
    background: #050508;
    border: 1px solid rgba(0, 255, 65, 0.12);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.7;
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.3);
    position: relative;
}
/* Terminal scanline overlay */
.terminal-log::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.015) 2px,
        rgba(0, 255, 65, 0.015) 4px
    );
}
.terminal-log .log-line::before {
    content: '> ';
    color: var(--cyan);
    text-shadow: 0 0 4px rgba(0, 212, 255, 0.4);
}
.terminal-log .log-error {
    color: var(--danger);
    text-shadow: 0 0 4px rgba(255, 59, 59, 0.3);
}
.terminal-log .log-warn {
    color: var(--warning);
    text-shadow: 0 0 4px rgba(255, 184, 0, 0.3);
}
.terminal-log .log-info {
    color: var(--info);
    text-shadow: 0 0 4px rgba(0, 212, 255, 0.3);
}

/* === File Path Input === */
.path-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.path-input-group input { flex: 1; }
.path-input-group select { width: auto; min-width: 120px; }

/* === Stress Test Cards === */
.section-title {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    text-shadow: 0 0 4px rgba(0, 212, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-title i {
    color: var(--danger);
    filter: drop-shadow(0 0 4px rgba(255, 59, 59, 0.5));
}

.stress-status-badge {
    background: rgba(255, 59, 59, 0.15);
    color: var(--danger);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 2px;
    animation: pulse-badge 1.5s ease infinite;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 59, 59, 0.3);
    text-shadow: 0 0 4px rgba(255, 59, 59, 0.4);
    font-family: var(--font-mono);
    text-transform: uppercase;
}
@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stress-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 255, 65, 0.06);
    border-radius: var(--radius);
    transition: var(--transition);
}
.stress-card:hover {
    border-color: rgba(0, 255, 65, 0.15);
    background: rgba(0, 255, 65, 0.02);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.05);
}
.stress-card.active {
    border-color: var(--danger);
    background: rgba(255, 59, 59, 0.05);
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.1), inset 0 0 30px rgba(255, 59, 59, 0.02);
    animation: borderGlowDanger 2s ease-in-out infinite;
}

@keyframes borderGlowDanger {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 59, 59, 0.1); }
    50% { box-shadow: 0 0 25px rgba(255, 59, 59, 0.2), inset 0 0 20px rgba(255, 59, 59, 0.02); }
}

.stress-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(0, 255, 65, 0.05);
    color: var(--text-secondary);
    font-size: 1.3rem;
    flex-shrink: 0;
    border: 1px solid rgba(0, 255, 65, 0.08);
}
.stress-card.active .stress-card-icon {
    background: rgba(255, 59, 59, 0.15);
    color: var(--danger);
    border-color: rgba(255, 59, 59, 0.3);
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.2);
}

.stress-card-info { flex: 1; }
.stress-card-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    color: var(--text-primary);
}
.stress-card-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.stress-card-actions {
    flex-shrink: 0;
}

.btn-stress-start {
    background: rgba(255, 59, 59, 0.1) !important;
    color: var(--danger) !important;
    border: 1px solid var(--danger);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}
.btn-stress-start:hover {
    background: rgba(255, 59, 59, 0.2) !important;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.3);
    text-shadow: 0 0 6px rgba(255, 59, 59, 0.5);
}

.btn-stress-stop {
    background: rgba(255, 184, 0, 0.1) !important;
    color: var(--warning) !important;
    border: 1px solid var(--warning);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    animation: pulse-badge 1.5s ease infinite;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

/* Burn All Section */
.burn-all-section {
    margin: 20px 0;
    text-align: center;
}

.btn-burn-all {
    background: rgba(255, 59, 59, 0.08);
    color: var(--danger);
    border: 2px solid var(--danger);
    padding: 16px 40px;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.15);
    font-family: var(--font-mono);
    text-shadow: 0 0 6px rgba(255, 59, 59, 0.4);
}
.btn-burn-all:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 59, 59, 0.3), inset 0 0 30px rgba(255, 59, 59, 0.05);
    background: rgba(255, 59, 59, 0.15);
    text-shadow: 0 0 10px rgba(255, 59, 59, 0.6);
}
.btn-burn-all small {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.btn-burn-stop {
    background: rgba(255, 184, 0, 0.08);
    color: var(--warning);
    border: 2px solid var(--warning);
    padding: 16px 40px;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: pulse-badge 1s ease infinite;
    font-family: var(--font-mono);
    text-shadow: 0 0 6px rgba(255, 184, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 184, 0, 0.15);
}

.action-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.15), transparent);
    margin: 24px 0;
}

/* Terminal Action Log (override) */
.terminal-log {
    background: #050508;
    border: 1px solid rgba(0, 255, 65, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px;
    max-height: 150px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.terminal-log .log-line {
    color: var(--accent);
    margin-bottom: 2px;
    white-space: pre-wrap;
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.3);
}

/* === Selection Highlight === */
::selection {
    background: rgba(0, 255, 65, 0.2);
    color: var(--accent);
}
::-moz-selection {
    background: rgba(0, 255, 65, 0.2);
    color: var(--accent);
}

/* === KESIF & KONTROL === */
.recon-grid, .control-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.recon-card, .control-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}
.recon-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.recon-card-header h5, .control-card h5 {
    color: var(--accent);
    margin: 0 0 8px 0;
    font-size: 0.95rem;
}
.recon-card-header h5 i, .control-card h5 i { margin-right: 8px; }
.control-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.control-input {
    flex: 1;
    min-width: 160px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}
.control-input-sm {
    width: 70px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 4px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-align: center;
}
.control-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}
.control-select option { background: var(--bg-primary); }

/* Ag Tarayici */
.scan-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.port-badge {
    display: inline-block;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    margin: 1px;
}
.port-badge small { color: var(--text-secondary); margin-left: 2px; }

/* WiFi */
.wifi-pw {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85rem;
    cursor: pointer;
}
.wifi-pw:hover { background: rgba(239, 68, 68, 0.2); }

/* === Focus Visible for Accessibility === */
*:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.2);
}

/* === DONANIM DETAY === */
.hw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}
.hw-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}
.hw-card h5 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.hw-card h5 i { margin-right: 8px; }
.usb-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.usb-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.usb-list li:last-child { border-bottom: none; }

/* === DOSYA GEZGINI === */
.explorer-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}
.explorer-path-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}
.explorer-table { font-size: 0.85rem; }
.explorer-row { cursor: default; }
.explorer-row:hover { background: rgba(0, 255, 65, 0.05); }
.explorer-row td { padding: 6px 10px !important; white-space: nowrap; }
.explorer-name { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }

/* === SUREC YONETICISI === */
.proc-search-input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    width: 200px;
}

/* === TOPLU KOMUT === */
.batch-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}
.batch-select-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.batch-select-row label { cursor: pointer; color: var(--text-primary); }
.batch-select-row input[type="checkbox"] { margin-right: 8px; accent-color: var(--accent); }
.batch-devices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    max-height: 120px;
    overflow-y: auto;
}
.batch-device-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s;
}
.batch-device-item:hover { border-color: var(--accent); }
.batch-device-item.offline { opacity: 0.5; }
.batch-device-item input[type="checkbox"] { accent-color: var(--accent); }
.batch-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.batch-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    min-width: 200px;
}
.batch-select option { background: var(--bg-primary); }
.batch-payload-input {
    flex: 1;
    min-width: 200px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

/* === IZLEME (SPY) SEKME === */
.spy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.spy-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 59, 59, 0.1);
    border-radius: 8px;
    padding: 16px;
    position: relative;
}
.spy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 59, 59, 0.3), transparent);
}
.spy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.spy-card-header h5 {
    color: var(--danger);
    margin: 0;
    font-size: 0.95rem;
    text-shadow: 0 0 6px rgba(255, 59, 59, 0.3);
}
.spy-card-header h5 i { margin-right: 8px; }
.spy-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.spy-output {
    background: #050508;
    border: 1px solid rgba(255, 59, 59, 0.1);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    max-height: 250px;
    overflow-y: auto;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    text-shadow: 0 0 4px rgba(0, 255, 65, 0.3);
    margin: 0;
}

/* === SISTEM SEKME (Registry/Services/Firewall Tabs) === */
.system-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 3px;
    border: 1px solid rgba(0, 255, 65, 0.08);
}
.sys-tab {
    padding: 8px 18px;
    border-radius: 2px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
    font-family: var(--font-mono);
    cursor: pointer;
    background: none;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sys-tab:hover {
    color: var(--accent);
    background: rgba(0, 255, 65, 0.05);
}
.sys-tab.active {
    background: rgba(0, 255, 65, 0.15);
    color: var(--accent);
    border-color: rgba(0, 255, 65, 0.3);
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}
.sys-content {
    animation: fadeSlideIn 0.2s ease;
}

/* Registry Key Badge */
.reg-key-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--cyan);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    margin: 1px;
    cursor: pointer;
}
.reg-key-badge:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
}
