/* ============================================
   EDDBOT TACTICAL DASHBOARD THEME
   Unique DayZ-inspired military design
   ============================================ */

:root {
    /* Core Colors - Tactical Military Palette */
    --bg-dark: #0a0c0a;
    --bg-darker: #050705;
    --bg-card: #0f120f;
    --bg-input: #141814;

    /* Accent Colors - Military Tactical */
    --accent-primary: #ff6a00;
    --accent-primary-hover: #ff8533;
    --accent-secondary: #4a7c23;
    --accent-green: #3d8b40;
    --accent-tactical: #7cb342;
    --accent-red: #c62828;
    --accent-blue: #1976d2;
    --accent-yellow: #f9a825;
    --accent-cyan: #00acc1;

    /* Text */
    --text-primary: #e8ece8;
    --text-secondary: #9ca89c;
    --text-muted: #5c665c;

    /* Borders & Effects */
    --border-color: #1a2418;
    --border-highlight: #2d3d28;
    --glow-orange: rgba(255, 106, 0, 0.4);
    --glow-green: rgba(125, 179, 66, 0.3);
    --sidebar-width: 240px;

    /* Tactical Grid Pattern */
    --grid-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a2418' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

body {
    font-family: 'Segoe UI', 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    background-image: var(--grid-pattern);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ============================================
   CUSTOM TACTICAL ELEMENTS
   ============================================ */

/* Corner Cut Effect for Cards */
.tactical-cut {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

/* Scanning Line Animation */
@keyframes scan-line {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes radar-sweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px var(--glow-green); }
    50% { box-shadow: 0 0 20px var(--glow-green), 0 0 30px var(--glow-green); }
}

@keyframes tactical-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   TOP NAVIGATION - TACTICAL COMMAND BAR
   ============================================ */

.new-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.new-layout .sidebar {
    display: none;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(180deg, #0d100d 0%, #080a08 100%);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px 0 30px;
    z-index: 1000;
}

/* Add tactical corner accents */
.top-nav::before,
.top-nav::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-tactical);
    opacity: 0.6;
}

.top-nav::before {
    left: 10px;
    bottom: 10px;
    border-right: none;
    border-top: none;
}

.top-nav::after {
    right: 10px;
    bottom: 10px;
    border-left: none;
    border-top: none;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #c44300 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #000;
    box-shadow: 0 0 20px var(--glow-orange), inset 0 0 15px rgba(255, 255, 255, 0.2);
    position: relative;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

/* Animated scanner effect on brand icon */
.brand-icon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: scan-line 3s ease-in-out infinite;
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--text-primary);
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 106, 0, 0.3);
    font-family: 'Impact', 'Arial Black', sans-serif;
}

.brand-text span {
    font-size: 0.6rem;
    color: var(--accent-tactical);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.brand-text span::before {
    content: '//';
    color: var(--text-muted);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item i {
    font-size: 0.95rem;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(125, 179, 66, 0.1);
}

.nav-item.active {
    color: var(--accent-primary);
    background: rgba(255, 106, 0, 0.15);
    border: 1px solid rgba(255, 106, 0, 0.3);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent-primary);
    border-radius: 2px;
}

.nav-item.active::after {
    display: none;
}

/* Right Side Navigation */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    flex-shrink: 0;
}

.server-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.server-selector:hover {
    border-color: var(--accent-tactical);
    box-shadow: 0 0 10px var(--glow-green);
}

.server-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, #3a6018 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.server-name {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-selector i {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.server-dropdown {
    position: absolute;
    top: 100%;
    right: 50px;
    margin-top: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: 8px;
    padding: 8px;
    min-width: 200px;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.server-dropdown.show {
    display: block;
}

.server-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.server-dropdown a:hover {
    background: rgba(125, 179, 66, 0.1);
    color: var(--text-primary);
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent-primary), #c44300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    overflow: hidden;
    border: 2px solid var(--border-highlight);
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.new-layout .main-area {
    margin-top: 70px;
    padding: 30px;
    min-height: calc(100vh - 70px - 50px);
    background: var(--bg-dark);
    background-image: var(--grid-pattern);
}

.new-layout .main-content {
    margin-left: 0;
    padding: 0;
}

.page-content {
    max-width: 1400px;
    margin: 0 auto;
}

.alerts-container {
    max-width: 1400px;
    margin: 0 auto 20px;
}

/* ============================================
   TACTICAL ALERT MESSAGES
   ============================================ */

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.alert-success {
    background: linear-gradient(90deg, rgba(125, 179, 66, 0.15) 0%, rgba(125, 179, 66, 0.05) 100%);
    border: 1px solid rgba(125, 179, 66, 0.3);
    color: var(--accent-tactical);
}

.alert-success::before {
    background: var(--accent-tactical);
}

.alert-danger {
    background: linear-gradient(90deg, rgba(198, 40, 40, 0.15) 0%, rgba(198, 40, 40, 0.05) 100%);
    border: 1px solid rgba(198, 40, 40, 0.3);
    color: var(--accent-red);
}

.alert-danger::before {
    background: var(--accent-red);
}

.alert-warning {
    background: linear-gradient(90deg, rgba(249, 168, 37, 0.15) 0%, rgba(249, 168, 37, 0.05) 100%);
    border: 1px solid rgba(249, 168, 37, 0.3);
    color: var(--accent-yellow);
}

.alert-warning::before {
    background: var(--accent-yellow);
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* ============================================
   FOOTER - TACTICAL STATUS BAR
   ============================================ */

.bottom-footer {
    height: 50px;
    background: linear-gradient(180deg, #0a0d0a 0%, #050705 100%);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bottom-footer::before,
.bottom-footer::after {
    content: '';
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-tactical), transparent);
}

.footer-divider {
    color: var(--accent-tactical);
    opacity: 0.5;
}

/* ============================================
   TACTICAL CARDS & CONTAINERS
   ============================================ */

.content-card,
.settings-card,
.dash-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, #0c0f0c 100%);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.content-card::before,
.settings-card::before,
.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover::before,
.settings-card:hover::before,
.dash-card:hover::before {
    opacity: 1;
}

.content-card:hover,
.settings-card:hover,
.dash-card:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.dash-card.highlight {
    border-color: rgba(255, 106, 0, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 106, 0, 0.05) 100%);
}

.dash-card.highlight::before {
    opacity: 1;
}

/* Card Headers */
.content-card h3,
.settings-card h3,
.dash-card-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-card h3::before,
.settings-card h3::before {
    content: '//';
    color: var(--accent-primary);
    font-weight: 400;
}

.dash-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.dash-card-header h3 i {
    color: var(--accent-primary);
}

.header-badge {
    background: rgba(125, 179, 66, 0.2);
    color: var(--accent-tactical);
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(125, 179, 66, 0.3);
}

.dash-card-body {
    padding: 22px;
}

/* ============================================
   WELCOME BANNER - TACTICAL BRIEFING
   ============================================ */

.welcome-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, #0c0f0c 50%, rgba(255, 106, 0, 0.08) 100%);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 30px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tactical));
}

/* Corner decorations */
.welcome-banner::after {
    content: '';
    position: absolute;
    right: 25px;
    top: 25px;
    width: 60px;
    height: 60px;
    border: 2px solid var(--border-highlight);
    border-radius: 50%;
    opacity: 0.3;
}

.welcome-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.welcome-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.welcome-content p::before {
    content: '>';
    color: var(--accent-tactical);
    animation: tactical-blink 1s infinite;
}

.welcome-content strong {
    color: var(--accent-primary);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #c44300 100%);
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px var(--glow-orange);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--glow-orange);
}

.action-btn.secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-highlight);
    box-shadow: none;
}

.action-btn.secondary:hover {
    border-color: var(--accent-tactical);
    box-shadow: 0 0 15px var(--glow-green);
}

/* ============================================
   STATS WIDGETS - TACTICAL READOUTS
   ============================================ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-widget {
    background: linear-gradient(135deg, var(--bg-card) 0%, #0c0f0c 100%);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.stat-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-widget:hover {
    border-color: var(--border-highlight);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-widget:hover::before {
    opacity: 1;
}

.stat-widget-icon {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.stat-widget-icon.members { background: rgba(88, 101, 242, 0.2); color: #5865F2; }
.stat-widget-icon.roles { background: rgba(255, 106, 0, 0.2); color: var(--accent-primary); }
.stat-widget-icon.channels { background: rgba(125, 179, 66, 0.2); color: var(--accent-tactical); }
.stat-widget-icon.voice { background: rgba(249, 168, 37, 0.2); color: var(--accent-yellow); }
.stat-widget-icon.shop { background: rgba(25, 118, 210, 0.2); color: var(--accent-blue); }
.stat-widget-icon.zones { background: rgba(198, 40, 40, 0.2); color: var(--accent-red); }

.stat-widget:nth-child(1)::before { background: #5865F2; }
.stat-widget:nth-child(2)::before { background: var(--accent-primary); }
.stat-widget:nth-child(3)::before { background: var(--accent-tactical); }
.stat-widget:nth-child(4)::before { background: var(--accent-yellow); }
.stat-widget:nth-child(5)::before { background: var(--accent-blue); }
.stat-widget:nth-child(6)::before { background: var(--accent-red); }

.stat-widget-info {
    display: flex;
    flex-direction: column;
}

.stat-widget-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    font-family: 'Consolas', 'Monaco', monospace;
}

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

/* ============================================
   BUTTONS - TACTICAL STYLE
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #c44300 100%);
    color: #000;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px var(--glow-orange);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-primary-hover) 0%, var(--accent-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--glow-orange);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-highlight);
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--accent-tactical);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-red) 0%, #8b1c1c 100%);
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* ============================================
   FORM ELEMENTS - TACTICAL INPUTS
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label::before {
    content: '>';
    color: var(--accent-tactical);
    font-size: 0.8rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Consolas', 'Monaco', monospace;
}

.form-control:focus {
    border-color: var(--accent-tactical);
    box-shadow: 0 0 0 2px var(--glow-green);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
    font-family: 'Segoe UI', 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    width: 56px;
    height: 30px;
    background-color: rgba(198, 40, 40, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-red);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-red);
    border-radius: 2px;
    top: 3px;
    left: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(198, 40, 40, 0.5);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(125, 179, 66, 0.3);
    border-color: var(--accent-tactical);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
    background-color: var(--accent-tactical);
    box-shadow: 0 0 8px var(--glow-green);
}

/* ============================================
   DATA TABLES - TACTICAL GRID
   ============================================ */

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    color: var(--accent-tactical);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.3);
}

.data-table th::before {
    content: '// ';
    opacity: 0.5;
}

.data-table td {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

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

.data-table tbody tr:hover {
    background-color: rgba(125, 179, 66, 0.05);
}

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

/* ============================================
   BADGES - TACTICAL STATUS
   ============================================ */

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

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

.badge-secondary {
    background: rgba(92, 102, 92, 0.2);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.badge-warning {
    background: rgba(249, 168, 37, 0.2);
    color: var(--accent-yellow);
    border: 1px solid rgba(249, 168, 37, 0.3);
}

.badge-danger {
    background: rgba(198, 40, 40, 0.2);
    color: var(--accent-red);
    border: 1px solid rgba(198, 40, 40, 0.3);
}

.badge-success {
    background: rgba(125, 179, 66, 0.2);
    color: var(--accent-tactical);
    border: 1px solid rgba(125, 179, 66, 0.3);
}

/* ============================================
   QUICK LINKS GRID
   ============================================ */

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.quick-link:hover {
    border-color: var(--accent-tactical);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.quick-link-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.quick-link-icon.discord { background: rgba(88, 101, 242, 0.2); color: #5865F2; }
.quick-link-icon.server { background: rgba(255, 106, 0, 0.2); color: var(--accent-primary); }
.quick-link-icon.zones { background: rgba(198, 40, 40, 0.2); color: var(--accent-red); }
.quick-link-icon.radars { background: rgba(125, 179, 66, 0.2); color: var(--accent-tactical); }
.quick-link-icon.shop { background: rgba(25, 118, 210, 0.2); color: var(--accent-blue); }
.quick-link-icon.ai { background: rgba(249, 168, 37, 0.2); color: var(--accent-yellow); }

.quick-link span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-link:hover span {
    color: var(--text-primary);
}

/* ============================================
   INFO ROWS
   ============================================ */

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label::before {
    content: '>';
    color: var(--text-muted);
    font-size: 0.75rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.info-value.status-online {
    color: var(--accent-tactical);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value.status-online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-tactical);
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
}

/* ============================================
   UPDATE & TODO LISTS
   ============================================ */

.update-list,
.todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-list li,
.todo-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.update-list li:last-child,
.todo-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.update-list li i {
    color: var(--accent-tactical);
    margin-top: 2px;
}

.todo-marker {
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent-primary);
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 4px;
}

/* ============================================
   DASHBOARD GRID
   ============================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ============================================
   SETTINGS CARDS
   ============================================ */

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.settings-card {
    padding: 25px;
}

.settings-card h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.content-card {
    padding: 25px;
}

.content-card h3 {
    margin-bottom: 20px;
}

/* ============================================
   STATS GRID
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, #0c0f0c 100%);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.stat-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 25px var(--glow-orange);
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-primary);
}

.stat-info h3 {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-info h3::before {
    display: none;
}

.stat-info .stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary);
    font-family: 'Consolas', 'Monaco', monospace;
}

/* ============================================
   TAB BUTTONS
   ============================================ */

.tab-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid var(--border-highlight);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    background-color: rgba(125, 179, 66, 0.1);
    border-color: var(--accent-tactical);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #c44300 100%);
    color: #000;
    border: none;
    font-weight: 700;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1200px) {
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    .nav-item span {
        display: none;
    }

    .nav-item {
        padding: 12px;
    }

    .nav-item i {
        font-size: 1.2rem;
    }

    .nav-item.active::before {
        display: none;
    }
}

@media (max-width: 992px) {
    .dashboard-grid,
    .settings-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 0 15px;
    }

    .top-nav::before,
    .top-nav::after {
        display: none;
    }

    .brand-text {
        display: none;
    }

    .server-name {
        display: none;
    }

    .nav-menu {
        gap: 2px;
        padding: 3px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        flex-direction: column;
        width: 100%;
    }

    .action-btn {
        justify-content: center;
    }
}

/* ============================================
   LEGACY SIDEBAR SUPPORT (hidden in new layout)
   ============================================ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--bg-darker);
    padding: 20px 0;
    overflow-y: auto;
    z-index: 1000;
    border-right: 1px solid var(--border-color);
}

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

.sidebar-brand {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
    text-align: center;
}

.sidebar-brand h2 {
    color: var(--accent-primary);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--glow-orange);
}

.sidebar-nav {
    list-style: none;
    padding: 0 10px;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.sidebar-nav a:hover {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(255, 106, 0, 0.15) 0%, transparent 100%);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #c44300 100%);
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px var(--glow-orange);
    transition: all 0.2s ease;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px var(--glow-orange);
}

/* ============================================
   CHECKBOX STYLING
   ============================================ */

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-tactical);
}

/* ============================================
   INPUT GROUP STYLING
   ============================================ */

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-radius: 4px 0 0 4px;
}

.input-group .input-suffix {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-left: none;
    border-radius: 0 4px 4px 0;
    padding: 0 15px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.input-with-prefix {
    display: flex;
    align-items: stretch;
}

.input-prefix {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    color: var(--accent-primary);
    font-size: 0.85rem;
    white-space: nowrap;
}

.input-with-prefix .form-control {
    border-radius: 0 4px 4px 0;
}

/* ============================================
   TOGGLE ROW
   ============================================ */

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.toggle-row label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.toggle-row label::before {
    display: none;
}

/* ============================================
   SERVER CONTROLS
   ============================================ */

.server-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.btn-server {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-restart {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #c44300 100%);
    color: #000;
}

.btn-stop {
    background: linear-gradient(135deg, var(--accent-red) 0%, #8b1c1c 100%);
    color: white;
}

.btn-on {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0d47a1 100%);
    color: white;
}

.btn-off {
    background: linear-gradient(135deg, var(--accent-red) 0%, #8b1c1c 100%);
    color: white;
}

/* ============================================
   EXPANDABLE SECTIONS
   ============================================ */

.expandable-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, #0c0f0c 100%);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 20px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.expandable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
}

.expandable-header h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expandable-content {
    padding: 0 20px 20px;
}

/* ============================================
   MENU TOGGLE (Mobile)
   ============================================ */

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.form-group label .info-icon {
    cursor: help;
    color: var(--text-muted);
}

.guild-selector {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.guild-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guild-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: var(--bg-card);
}

.guild-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.guild-name small {
    display: block;
    color: var(--text-muted);
    font-weight: normal;
    font-size: 0.75rem;
}

.sidebar-brand small {
    display: block;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-top: 3px;
}

.sidebar-nav .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    padding: 8px 15px;
    border-radius: 4px;
    width: 300px;
    border: 1px solid var(--border-color);
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 100%;
    margin-left: 10px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 4px;
    background-color: var(--bg-card);
}

.user-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.updates-list {
    text-align: center;
}

.updates-list h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.updates-list p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
