:root {
    --primary-green: #00ff00;
    --dark-green: #00cc00;
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-hover: #1a1a1a;
    --border-color: #222222;
    --text-muted: #666666;
    --danger-red: #ff4444;
    --warning-orange: #ff8800;
    --info-blue: #0088ff;
    --purple: #aa00ff;
}

* {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

body {
    background-color: var(--bg-dark);
    color: var(--primary-green);
    min-height: 100vh;
}

.glow-text {
    color: var(--primary-green);
    text-shadow: 0 0 10px var(--primary-green), 0 0 20px var(--primary-green), 0 0 30px var(--primary-green);
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 2rem;
}

.tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.cyber-icon {
    font-size: 1.2rem;
    color: var(--primary-green);
    font-weight: bold;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--primary-green);
    border-radius: 20px;
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px var(--primary-green); }
    50% { opacity: 0.5; box-shadow: 0 0 15px var(--primary-green); }
}

.status-text {
    color: var(--primary-green);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.stat-value {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-value.endpoint-value {
    font-size: 1rem;
    word-break: break-all;
}

.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.table-header h2 {
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 600;
}

.terminal-prompt {
    color: var(--dark-green);
    margin-right: 8px;
}

.refresh-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.refresh-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.cyber-table {
    margin-bottom: 0;
    background: transparent;
}

.cyber-table thead th {
    background: rgba(0, 255, 0, 0.05);
    color: var(--primary-green);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.cyber-table tbody tr {
    transition: all 0.2s ease;
}

.cyber-table tbody tr:hover {
    background: var(--bg-hover);
}

.cyber-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: #cccccc;
    font-size: 0.85rem;
}

.log-row {
    animation: fadeIn 0.3s ease;
}

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

.timestamp-cell {
    color: var(--text-muted);
    white-space: nowrap;
}

.ip-cell {
    color: var(--info-blue);
    font-weight: 500;
}

.endpoint-cell {
    color: var(--primary-green);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.response-cell {
    max-width: 300px;
}

.response-preview {
    background: rgba(0, 255, 0, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #888;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.method-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-get {
    background: rgba(0, 136, 255, 0.2);
    color: var(--info-blue);
    border: 1px solid var(--info-blue);
}

.badge-post {
    background: rgba(0, 255, 0, 0.2);
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
}

.badge-put {
    background: rgba(255, 136, 0, 0.2);
    color: var(--warning-orange);
    border: 1px solid var(--warning-orange);
}

.badge-delete {
    background: rgba(255, 68, 68, 0.2);
    color: var(--danger-red);
    border: 1px solid var(--danger-red);
}

.badge-default {
    background: rgba(170, 0, 255, 0.2);
    color: var(--purple);
    border: 1px solid var(--purple);
}

.empty-state {
    color: var(--text-muted);
}

.waiting-animation {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.waiting-animation .dot {
    width: 10px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.waiting-animation .dot:nth-child(1) { animation-delay: -0.32s; }
.waiting-animation .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
