@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

/* --- Original Terminal & About --- */
.terminal-window {
    background: #0d0d0d;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27c93f; }

.terminal-title {
    color: #888;
    font-size: 0.85rem;
    flex-grow: 1;
    text-align: center;
    margin-right: 50px; /* Balance controls width */
}

.terminal-body {
    padding: 20px;
    min-height: 400px;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Command Prompt */
.command-line {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.prompt {
    color: #27c93f;
    margin-right: 10px;
    font-weight: bold;
}

.command-text {
    color: #fff;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: #27c93f;
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

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

/* Output Content */
.output {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.output.visible {
    opacity: 1;
    transform: translateY(0);
}

.output.hidden {
    opacity: 0;
    display: none;
}

.term-title {
    color: #27c93f;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(39, 201, 63, 0.3);
}

.version {
    font-size: 0.8rem;
    color: #666;
    vertical-align: middle;
    margin-left: 10px;
    border: 1px solid #333;
    padding: 2px 6px;
    border-radius: 4px;
}

.term-mission {
    color: #aaa;
    margin-bottom: 1.5rem;
    border-left: 2px solid #27c93f;
    padding-left: 1rem;
}

.team-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 4px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
}

.term-details {
    color: #888;
}

.detail-item {
    margin-bottom: 0.5rem;
}

/* --- Team Member Card (SSH Style) --- */
.ssh-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ssh-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: #444;
}

.ssh-header {
    background: #1a1a1a;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    font-size: 0.75rem;
    color: #666;
}

.ssh-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 5px #27c93f;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-grow: 1;
}

.avatar-container {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 200px;
    height: 200px;
    background: #222;
    border: 2px dashed #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 2rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.glitch-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(39, 201, 63, 0.1), transparent);
    animation: scan 3s infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 200%; }
}

.member-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-role {
    color: #27c93f;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.member-name {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.info-section {
    margin-bottom: 1.5rem;
}

.section-label {
    color: #666;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 1rem;
}

.specs-list {
    margin-bottom: 1.5rem;
}

.spec-item {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.user-actions {
    display: flex;
    gap: 0.8rem;
}

.action-btn {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 6px 12px;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 3px;
    text-align: center;
    flex: 1;
}

.action-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.process-footer {
    margin-top: auto;
    border-top: 1px solid #222;
    padding-top: 1rem;
    color: #666;
    font-size: 0.8rem;
}

/* Loading Bar */
.load-bar-container {
    width: 100%;
    margin: 1rem 0;
    font-size: 0.8rem;
    color: #888;
    display: none;
}

.load-text {
    margin-bottom: 5px;
}

.load-bar {
    height: 4px;
    background: #333;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.load-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #27c93f;
    width: 0%;
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .specs-list {
        text-align: left;
    }
    
    .term-filters {
        justify-content: center;
    }
}

/* --- Advanced SSH Dashboard --- */
.dashboard-layout {
    display: flex;
    min-height: 450px;
    background: #0d0d0d;
}

.dashboard-sidebar {
    width: 280px;
    background: #111;
    border-right: 1px solid #333;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-shrink: 0;
}

.dashboard-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Sidebar Widgets */
.widget-title {
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.resource-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.res-item label {
    display: flex;
    justify-content: space-between;
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.res-bar-bg {
    height: 6px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
}

.res-bar-fill {
    height: 100%;
    background: #27c93f;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.res-bar-fill.cpu { background: #ff5f56; box-shadow: 0 0 10px rgba(255, 95, 86, 0.3); }
.res-bar-fill.ram { background: #ffbd2e; box-shadow: 0 0 10px rgba(255, 189, 46, 0.3); }
.res-bar-fill.storage { background: #3b82f6; }

/* Network Stats */
.net-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.net-stat-item {
    background: #1a1a1a;
    padding: 0.8rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #222;
}

.net-val {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.net-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
}

/* Tabs */
.dash-tabs {
    display: flex;
    background: #151515;
    border-bottom: 1px solid #333;
}

.dash-tab {
    padding: 1rem 1.5rem;
    color: #666;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    background: none;
    border: none;
    border-right: 1px solid #222;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    overflow: hidden;
}

.dash-tab:hover {
    color: #e0e0e0;
    background: #1a1a1a;
}

.dash-tab.active {
    color: #27c93f;
    background: #0d0d0d;
}

.dash-tab.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #27c93f;
    box-shadow: 0 0 10px #27c93f;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 0;
    overflow-y: auto;
    height: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tab-inner {
    padding: 2rem;
}

/* Security Log Table */
.sec-table-container {
    overflow-x: auto;
}

.sec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    white-space: nowrap;
}

.sec-table th {
    text-align: left;
    color: #555;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.sec-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #222;
    color: #aaa;
}

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

.sec-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.status-ok { background: rgba(39, 201, 63, 0.15); color: #27c93f; border: 1px solid rgba(39, 201, 63, 0.3); }
.status-warn { background: rgba(255, 189, 46, 0.15); color: #ffbd2e; border: 1px solid rgba(255, 189, 46, 0.3); }
.status-err { background: rgba(255, 95, 86, 0.15); color: #ff5f56; border: 1px solid rgba(255, 95, 86, 0.3); }

/* System Overview */
.sys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sys-card {
    background: #111;
    border: 1px solid #333;
    padding: 1.5rem;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.sys-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #333;
}

.sys-card:hover {
    border-color: #444;
}

.sys-card:hover::before {
    background: #27c93f;
    box-shadow: 0 0 10px #27c93f;
}

.sys-label {
    display: block;
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.sys-value {
    color: #fff;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.sys-sub {
    color: #888;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .dashboard-layout {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #333;
        flex-direction: row;
        overflow-x: auto;
        align-items: center;
        padding: 1rem;
    }
    
    .resource-group {
        min-width: 200px;
    }
    
    .dash-tabs {
        overflow-x: auto;
    }
}

/* --- Intro Overlay --- */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    backdrop-filter: blur(5px);
}

.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-container {
    width: 95%;
    max-width: 900px;
    height: 600px;
    background: rgba(13, 13, 13, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 100px rgba(39, 201, 63, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    animation: borderPulse 4s infinite;
}

@keyframes borderPulse {
    0%, 100% { border-color: #333; box-shadow: 0 0 50px rgba(0,0,0,0.8); }
    50% { border-color: #27c93f; box-shadow: 0 0 80px rgba(39, 201, 63, 0.15); }
}

.intro-header {
    background: #0a0a0a;
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.term-btn.close { background: #ff5f56; }
.term-btn.minimize { background: #ffbd2e; }
.term-btn.expand { background: #27c93f; }

.intro-title {
    margin-left: 15px;
    color: #27c93f;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(39, 201, 63, 0.5);
}

.intro-time {
    margin-left: auto;
    color: #666;
    font-size: 0.8rem;
}

.intro-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
}

/* Graphic Elements */
.intro-graphic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.hex-grid {
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='40' viewBox='0 0 24 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40c5.523 0 10-4.477 10-10V10c0-5.523-4.477-10-10-10s-10 4.477-10 10v20c0 5.523 4.477 10 10 10z' fill='%2327c93f' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: rotate 60s linear infinite;
}

.loader-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(39, 201, 63, 0.2);
    border-radius: 50%;
    border-top-color: #27c93f;
    animation: spin 2s linear infinite;
}

@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* Console Output */
.intro-console {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.console-line {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 0.1s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

.console-line.cmd { color: #fff; font-weight: bold; }
.console-line.success { 
    color: #27c93f; 
    text-shadow: 0 0 8px rgba(39, 201, 63, 0.4);
}
.console-line.warning { color: #ffbd2e; }
.console-line.error { color: #ff5f56; }
.console-line.dim { color: #666; font-size: 0.85rem; }

.spinner-span {
    color: #27c93f;
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
    font-size: 1.1em;
}

.cursor-blink::after {
    content: '_';
    color: #27c93f;
    animation: blink 0.8s infinite;
}

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

/* Progress Bar in Console */
.console-progress {
    width: 100%;
    max-width: 500px;
    height: 6px;
    background: #222;
    border: 1px solid #333;
    margin: 10px 0;
    position: relative;
    display: none;
    overflow: hidden;
}

.console-progress.active { display: block; }

.console-bar-fill {
    height: 100%;
    background: #27c93f;
    width: 0%;
    box-shadow: 0 0 10px #27c93f;
    transition: width 0.05s linear;
}

.ssh-text-highlight { color: #fff; border-bottom: 1px dashed #27c93f; padding-bottom: 2px; display: inline-block; margin-top: 10px; margin-bottom: 5px; }
.ssh-text-success { color: #27c93f; }
.ssh-text-dim { color: #666; }
.ssh-text-warn { color: #ffbd2e; }

/* User Profile Box */
.user-profile-box {
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    margin: 10px 0 15px 0;
    max-width: 450px;
    border-left: 3px solid #27c93f;
    position: relative;
    overflow: hidden;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.profile-rank {
    color: #ffbd2e;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.profile-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
}

.profile-body {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-row {
    display: flex;
    gap: 10px;
}

.p-label {
    color: #666;
    min-width: 50px;
}

.p-val {
    color: #aaa;
}

.p-val.link {
    color: #5865F2; /* Discord Color */
    text-decoration: underline;
    cursor: pointer;
}

.profile-status {
    margin-top: 10px;
    text-align: right;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Footer */
.intro-footer {
    background: #111;
    border-top: 1px solid #333;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
}

.blink-green {
    color: #27c93f;
    animation: blink 1.5s infinite;
}

@media (max-width: 768px) {
    .intro-container {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0;
    }
    .intro-header {
        border-radius: 0;
    }
    .intro-console {
        padding: 1.5rem;
        font-size: 0.85rem;
    }
}