@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg-primary: #030303;
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(10, 10, 10, 0.6);
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    --text-primary: #ededed;
    --text-secondary: #666666;
    --text-muted: #444444;
    --accent-primary: #ffffff;
    --accent-secondary: #cccccc;
    --accent-error: #ff3333;
    --accent-success: #33ffaa;
    --font-ui: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-ui);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 14px;
}

/* Noise & Vignette Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000000 120%);
    pointer-events: none;
    z-index: -1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-ui);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.font-cyber {
    font-family: var(--font-mono);
}

.gradient-text {
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Card */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

.glass-strong {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border-primary);
}

/* Animations */
.card-hover {
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background: #ddd;
    border-color: #ddd;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.btn-danger {
    color: var(--accent-error);
    border-color: rgba(255, 51, 51, 0.2);
    background: rgba(255, 51, 51, 0.05);
}

.btn-danger:hover {
    border-color: var(--accent-error);
    background: rgba(255, 51, 51, 0.1);
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.1);
}

.btn-success {
    color: var(--accent-success);
    border-color: rgba(51, 255, 170, 0.2);
    background: rgba(51, 255, 170, 0.05);
}

.btn-success:hover {
    border-color: var(--accent-success);
    background: rgba(51, 255, 170, 0.1);
    box-shadow: 0 0 10px rgba(51, 255, 170, 0.1);
}

.btn-warning {
    color: #ffaa33;
    border-color: rgba(255, 170, 51, 0.2);
    background: rgba(255, 170, 51, 0.05);
}

.btn-warning:hover {
    border-color: #ffaa33;
    background: rgba(255, 170, 51, 0.1);
    box-shadow: 0 0 10px rgba(255, 170, 51, 0.1);
}

/* Inputs */
.input-cyber {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.2s var(--ease-out);
}

.input-cyber:focus {
    outline: none;
    border-color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.4);
}

.input-cyber::placeholder {
    color: var(--text-muted);
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.input-cyber:focus + i, .input-group:focus-within i {
    color: var(--text-primary);
}

/* Select */
select.input-cyber {
    appearance: none;
    cursor: pointer;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '↓';
    font-family: var(--font-mono);
    font-weight: 700;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.8rem;
}

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 380px;
    padding: 40px 30px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    backdrop-filter: blur(20px);
}

.login-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
}

.login-title {
    font-family: var(--font-ui);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.login-error {
    background: rgba(255, 51, 51, 0.1);
    border-left: 2px solid var(--accent-error);
    color: var(--accent-error);
    padding: 10px 15px;
    font-size: 0.85rem;
    border-radius: 4px;
    margin-top: 20px;
    display: none;
}

.login-error.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Header */
.header {
    padding: 0;
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(3, 3, 3, 0.8);
    backdrop-filter: blur(15px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1rem;
}

.header-title {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: 600;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-online .status-dot {
    background: var(--accent-success);
    box-shadow: 0 0 8px var(--accent-success);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--accent-success);
    }
    50% {
        opacity: 0.4;
        box-shadow: 0 0 4px var(--accent-success);
    }
}

.status-offline .status-dot {
    background: var(--accent-error);
}

/* Main Layout */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
}

.stat-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    padding: 25px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-primary);
}

.log-card .card-header {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    flex-wrap: wrap;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    flex-shrink: 0;
    overflow: hidden;
}

.card-icon i {
    font-size: 0.9rem;
}

.card-title {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 600;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Status Panel */
.status-box {
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 20px;
    transition: border-color 0.2s ease;
}

.status-active {
    border-color: var(--text-secondary);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-header.active {
    color: var(--text-secondary);
}

.status-header.idle {
    color: var(--text-muted);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    font-size: 0.85rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-item span {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-item strong {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 1.1rem;
}

.status-active .status-item strong {
    color: var(--text-primary);
}

.control-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

/* Emergency Stop Button */
.btn-stop-attack {
    width: 100%;
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(255, 51, 51, 0.05);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 8px;
    color: var(--accent-error);
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-stop-attack:hover:not(:disabled) {
    border-color: var(--accent-error);
    background: rgba(255, 51, 51, 0.1);
}

.btn-stop-attack:active:not(:disabled) {
    background: rgba(255, 51, 51, 0.15);
}

.btn-stop-attack:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(255, 51, 51, 0.1);
}

.btn-stop-attack i {
    font-size: 0.9rem;
}

.btn-stop-attack span {
    font-weight: 500;
}

/* Client List */
.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-primary);
    background: rgba(255, 255, 255, 0.01);
}

.client-count {
    background: #fff;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
}

.client-list {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.client-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-primary);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-avatar {
    width: 32px;
    height: 32px;
    background: #222;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8rem;
}

.client-ip {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.client-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Source Badges */
.source-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-mono);
    border: 1px solid transparent;
}

.source-exe {
    color: #ff8888;
    background: rgba(255, 50, 50, 0.1);
    border-color: rgba(255, 50, 50, 0.2);
}

.source-linux {
    color: #ffaa55;
    background: rgba(255, 150, 50, 0.1);
    border-color: rgba(255, 150, 50, 0.2);
}

.source-jar {
    color: #aa88ff;
    background: rgba(150, 100, 255, 0.1);
    border-color: rgba(150, 100, 255, 0.2);
}

.source-python {
    color: #ffeebb;
    background: rgba(255, 220, 100, 0.1);
    border-color: rgba(255, 220, 100, 0.2);
}

.source-unknown {
    color: #888;
    background: rgba(100, 100, 100, 0.1);
    border-color: rgba(100, 100, 100, 0.2);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 2rem;
    opacity: 0.2;
    margin-bottom: 20px;
    display: block;
}

/* Activity Log */
.log-container {
    height: 180px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-primary);
    padding-top: 15px;
}

.log-entry {
    display: flex;
    gap: 15px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--text-secondary);
    min-width: 60px;
}

.log-actor {
    color: var(--accent-primary);
    font-weight: 600;
}

.log-message {
    color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 320px;
    background: #0a0a0a;
    border: 1px solid var(--border-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    border-left: 3px solid var(--accent-success);
}

.toast-error {
    border-left: 3px solid var(--accent-error);
}

.toast-info {
    border-left: 3px solid var(--accent-primary);
}

.toast-close {
    margin-left: auto;
    cursor: pointer;
    color: var(--text-secondary);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hide {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 200px;
    height: 2px;
    background: #222;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #fff;
    animation: loadLine 1.5s ease-in-out infinite;
}

@keyframes loadLine {
    0% { left: 0; width: 0; }
    50% { left: 30%; width: 40%; }
    100% { left: 100%; width: 0; }
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-primary);
    margin-top: 40px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    background: var(--bg-secondary);
}

/* Utilities */
.hidden { display: none !important; }
.w-full { width: 100%; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    animation: slideUp 0.3s var(--ease-out);
    background: rgba(10, 10, 10, 0.95);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.modal-body {
    padding: 20px 0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-error);
    color: var(--accent-error);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

.info-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    padding: 20px;
}

.info-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-section-title i {
    color: var(--text-secondary);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    gap: 15px;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.info-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 500;
    text-align: right;
}

.loader-small {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.loader-small i {
    margin-right: 10px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Custom Select */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    color: var(--text-secondary);
}

.custom-select.selected .custom-select-trigger {
    color: var(--text-primary);
}

.custom-select-trigger:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.custom-select.open .custom-select-trigger {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.custom-select-trigger span {
    flex: 1;
    font-size: 0.95rem;
}

.custom-select-trigger .arrow {
    transition: transform 0.3s var(--ease-out);
    font-size: 0.8rem;
    opacity: 0.5;
}

.custom-select.open .custom-select-trigger .arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s var(--ease-out);
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.custom-select.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.option-group {
    margin-bottom: 8px;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group-label {
    padding: 8px 12px 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.option i {
    width: 18px;
    text-align: center;
    opacity: 0.7;
}

.option:hover i {
    opacity: 1;
}

/* Scrollbar for options */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 3px;
}


/* Activity Log Card */
.log-card {
    grid-column: 1 / -1;
    width: 100%;
}

.log-container {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px 0;
}

.log-entry {
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-primary);
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--text-muted);
    min-width: 70px;
}

.log-actor {
    color: var(--accent-primary);
    font-weight: 600;
    min-width: 40px;
}

.log-message {
    color: var(--text-secondary);
}

/* List Items */
.list-container {
    padding: 8px;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.list-item-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
}

.btn-list-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--accent-error);
    font-size: 0.8rem;
}

.btn-list-remove:hover {
    background: rgba(255, 51, 51, 0.2);
    border-color: var(--accent-error);
    transform: scale(1.1);
}


/* Bots Log Specific Styles */
.log-event {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 12px;
    min-width: 80px;
    text-align: center;
}

.log-event.CONNECT {
    background: rgba(51, 255, 170, 0.1);
    color: var(--accent-success);
    border: 1px solid rgba(51, 255, 170, 0.2);
}

.log-event.DISCONNECT {
    background: rgba(255, 51, 51, 0.1);
    color: var(--accent-error);
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.log-event.RECONNECT {
    background: rgba(255, 170, 51, 0.1);
    color: #ffaa33;
    border: 1px solid rgba(255, 170, 51, 0.2);
}

.log-event.INFO {
    background: rgba(51, 170, 255, 0.1);
    color: #33aaff;
    border: 1px solid rgba(51, 170, 255, 0.2);
}

.log-event.ERROR {
    background: rgba(255, 51, 51, 0.1);
    color: var(--accent-error);
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.log-event.BLOCKED {
    background: rgba(150, 50, 50, 0.1);
    color: #ff6666;
    border: 1px solid rgba(150, 50, 50, 0.2);
}

/* Bots Log Entry Spacing */
#bots-log .log-entry {
    display: flex;
    gap: 12px;
    align-items: center;
}

#bots-log .log-time {
    min-width: 70px;
}

#bots-log .log-actor {
    min-width: 120px;
}

/* Mobile adaptations for Bots Log */
@media (max-width: 768px) {
    .log-event {
        min-width: 70px;
        font-size: 0.65rem;
        padding: 2px 4px;
    }
    
    #bots-log .log-time {
        min-width: 60px;
        font-size: 0.7rem;
    }
    
    #bots-log .log-actor {
        min-width: 100px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .log-event {
        min-width: 60px;
        font-size: 0.6rem;
        padding: 1px 3px;
        margin-right: 6px;
    }
    
    #bots-log .log-entry {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    #bots-log .log-time {
        min-width: 50px;
        font-size: 0.65rem;
    }
    
    #bots-log .log-actor {
        min-width: 80px;
        font-size: 0.7rem;
    }
    
    #bots-log .log-message {
        width: 100%;
        margin-left: 0;
    }
}

/* Logs Grid - Two columns layout */
.logs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.logs-grid > .log-card:first-child {
    order: 1;
}

.logs-grid > .log-card:last-child {
    order: 2;
}

@media (max-width: 1024px) {
    .logs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logs-grid {
        gap: 15px;
    }
    
    .log-card .card-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .log-card .card-header > div:last-child {
        width: 100%;
        margin-left: 0 !important;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .log-container {
        font-size: 0.75rem;
    }
    
    .log-entry {
        flex-wrap: wrap;
        gap: 6px !important;
    }
    
    .log-time {
        min-width: auto !important;
        font-size: 0.7rem;
    }
    
    .log-actor {
        min-width: auto !important;
        font-size: 0.75rem;
    }
    
    .log-message {
        width: 100%;
        font-size: 0.75rem;
        word-break: break-word;
    }
}

/* Mobile button adaptations */
@media (max-width: 480px) {
    .log-card .card-header .btn {
        padding: 6px 10px !important;
        font-size: 0.7rem;
    }
    
    .log-card .card-header .btn i {
        font-size: 0.8rem;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-subtitle {
        font-size: 0.7rem;
    }
    
    .card-icon {
        width: 32px;
        height: 32px;
    }
    
    .card-icon i {
        font-size: 0.8rem;
    }
}
