* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #00ff41;
    display: flex;
    min-height: 100vh;
    line-height: 1.6;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #00ff41; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #00cc33; }

.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 100%);
    height: 100vh;
    position: fixed;
    border-right: 2px solid #00ff41;
    box-shadow: 2px 0 20px rgba(0, 255, 65, 0.1);
    padding: 30px 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    padding: 0 25px 25px;
    border-bottom: 2px solid #00ff41;
    margin-bottom: 30px;
    color: #00ff41;
    letter-spacing: 4px;
    text-align: center;
}

.sidebar a {
    display: block;
    padding: 16px 25px;
    color: #00ff41;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px 0;
}

.sidebar a:hover, .sidebar a.active {
    background: rgba(0, 255, 65, 0.1);
    border-left: 4px solid #00ff41;
    padding-left: 30px;
}

.sidebar a.logout {
    color: #ff0040;
    margin-top: 80px;
    border-bottom: 2px solid #333;
}

.sidebar a.logout:hover {
    background: rgba(255, 0, 64, 0.1);
    border-left: 4px solid #ff0040;
}

.main-content {
    margin-left: 240px;
    padding: 40px 50px;
    width: calc(100% - 240px);
    background: rgba(10, 10, 10, 0.5);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #00ff41;
    box-shadow: 0 2px 10px rgba(0, 255, 65, 0.1);
}

h1 {
    font-size: 28px;
    letter-spacing: 3px;
    font-weight: bold;
}

h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #00ff41;
    letter-spacing: 2px;
}

h3 {
    color: #00ff41;
    font-size: 16px;
}

.user-info {
    color: #00ff41;
    padding: 10px 20px;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid #00ff41;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 2px solid #00ff41;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff41, #00cc33, #00ff41);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 8px;
}

.stat-card:hover {
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.2);
    transform: translateY(-3px);
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-value {
    font-size: 42px;
    font-weight: bold;
    color: #00ff41;
    margin-bottom: 10px;
}

.stat-label {
    color: #888;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.panel {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 2px solid #00ff41;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.panel:hover {
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.15);
    transform: translateY(-2px);
}

.btn-primary {
    background: #00ff41;
    color: #0a0a0a;
    border: none;
    padding: 12px 28px;
    cursor: pointer;
    font-family: 'Consolas', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    font-size: 13px;
}

.btn-primary:hover {
    background: #00cc33;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.filter-bar {
    margin-bottom: 30px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(0, 255, 65, 0.05);
    color: #00ff41;
    border: 2px solid #00ff41;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Consolas', monospace;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background: rgba(0, 255, 65, 0.15);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #00ff41;
    color: #0a0a0a;
    font-weight: bold;
}

.missions-list {
    display: grid;
    gap: 20px;
}

.mission-card {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 2px solid #00ff41;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
}

.mission-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #00ff41;
}

.mission-card:hover {
    background: linear-gradient(135deg, #151515 0%, #222 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateX(5px);
}

.mission-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #00ff41;
    letter-spacing: 1px;
}

.mission-info p {
    color: #999;
    font-size: 13px;
    line-height: 1.8;
    margin: 5px 0;
}

.mission-status {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.status-active {
    background: #ffaa00;
    color: #0a0a0a;
}

.status-completed {
    background: #00ff41;
    color: #0a0a0a;
}

.status-critical {
    background: #ff0040;
    color: #fff;
}

.mission-actions {
    display: flex;
    gap: 12px;
}

.btn-small {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    border: 2px solid #00ff41;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.btn-small:hover {
    background: #00ff41;
    color: #0a0a0a;
    transform: translateY(-1px);
}

.btn-small.delete {
    color: #ff0040;
    border-color: #ff0040;
    background: rgba(255, 0, 64, 0.1);
}

.btn-small.delete:hover {
    background: #ff0040;
    color: #fff;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.agent-card {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 2px solid #00ff41;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ff41, #00cc33, #00ff41);
}

.agent-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.agent-card h3 {
    margin-bottom: 8px;
    font-size: 14px;
    color: #999;
    letter-spacing: 2px;
}

.agent-card h3:first-of-type {
    margin-top: 10px;
}

.agent-card h3:nth-of-type(2) {
    font-size: 22px;
    color: #00ff41;
    margin-bottom: 15px;
}

.agent-card p {
    color: #999;
    font-size: 13px;
    margin: 8px 0;
    line-height: 1.8;
}

.agent-status {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 15px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 3px solid #00ff41;
    margin: 5% auto;
    padding: 40px;
    width: 600px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: modalSlide 0.3s ease;
    position: relative;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #ff0040;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    z-index: 10;
}

.close:hover,
.close:focus {
    color: #ff3366;
    transform: scale(1.1);
}

.modal-content h2 {
    color: #00ff41;
    margin: 0 0 25px 0;
    padding-right: 40px;
    font-size: 24px;
}

form input, form select, form textarea {
    width: 100%;
    padding: 14px 18px;
    margin: 12px 0;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ff41;
    color: #00ff41;
    font-family: 'Consolas', monospace;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 14px;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: #00cc33;
    background: rgba(0, 0, 0, 0.8);
}

form input::placeholder {
    color: #555;
}

form button {
    width: 100%;
    margin-top: 20px;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border: 3px solid #00ff41;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.login-box h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.subtitle {
    color: #999;
    margin-bottom: 35px;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.warning {
    color: #ff0040;
    font-size: 12px;
    margin-top: 25px;
    padding: 10px;
    background: rgba(255, 0, 64, 0.1);
    border-radius: 4px;
    border: 1px solid #ff0040;
}

.list-item {
    padding: 15px;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.list-item:hover {
    background: rgba(0, 255, 65, 0.05);
    padding-left: 20px;
    border-left: 3px solid #00ff41;
}

.chart-bar {
    margin: 20px 0;
}

.bar {
    padding: 14px 18px;
    color: #0a0a0a;
    font-weight: bold;
    font-size: 13px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.bar:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.log-entry {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    font-size: 13px;
    color: #999;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.log-entry:hover {
    background: rgba(0, 255, 65, 0.05);
    border-left: 2px solid #00ff41;
    padding-left: 20px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 2px solid #00ff41;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 25px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .agents-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .modal-content {
        width: 95%;
        padding: 30px 20px;
    }
}
