/* Enhanced Components CSS - Styles for converted TSX components */

/* Security Dashboard Styles */
.security-dashboard {
    position: relative;
    background: rgba(0, 20, 40, 0.9);
    border: 1px solid var(--cyber-primary);
    border-radius: 8px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.security-rating {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.rating-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--cyber-primary);
    margin-bottom: 0.5rem;
}

.rating-label {
    font-size: 0.875rem;
    color: var(--cyber-text-muted);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-primary), var(--cyber-accent));
    transition: width 0.3s ease;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-item {
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 6px;
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.status-value.success {
    color: var(--cyber-success);
}

.status-value.warning {
    color: var(--cyber-warning);
}

.status-label {
    font-size: 0.75rem;
    color: var(--cyber-text-muted);
}

.threat-firewall-status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.threat-critical {
    background: rgba(220, 38, 127, 0.2);
    color: #dc267f;
    border-color: #dc267f;
}

.threat-high {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-color: #ffc107;
}

.threat-medium {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border-color: #6c757d;
}

.threat-low {
    background: rgba(0, 255, 136, 0.2);
    color: var(--cyber-success);
    border-color: var(--cyber-success);
}

.vulnerabilities-section {
    margin-top: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.section-header h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cyber-primary);
    margin: 0;
}

.last-scan {
    font-size: 0.75rem;
    color: var(--cyber-text-muted);
}

.vulnerability-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.vuln-item {
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid;
}

.vuln-item.critical {
    background: rgba(220, 38, 127, 0.2);
    border-color: rgba(220, 38, 127, 0.4);
}

.vuln-item.high {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
}

.vuln-item.medium {
    background: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.4);
}

.vuln-item.low {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
}

.vuln-count {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.vuln-label {
    font-size: 0.75rem;
}

/* Character Selector Styles */
.character-selector {
    padding: 2rem;
}

.selector-header {
    text-align: center;
    margin-bottom: 2rem;
}

.selector-header h2 {
    color: var(--cyber-primary);
    margin-bottom: 0.5rem;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.character-card {
    background: rgba(0, 20, 40, 0.9);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.character-card:hover {
    border-color: var(--cyber-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

.character-card.selected {
    border-color: var(--cyber-accent);
    background: rgba(0, 255, 136, 0.1);
}

.character-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--cyber-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-avatar i {
    font-size: 2rem;
    color: var(--cyber-primary);
}

.character-info h3 {
    color: var(--cyber-primary);
    margin-bottom: 0.75rem;
}

.character-description {
    color: var(--cyber-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.character-specialization {
    color: var(--cyber-accent);
    font-weight: 500;
    margin-bottom: 1rem;
}

.character-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.skill-tag {
    background: rgba(0, 255, 136, 0.2);
    color: var(--cyber-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.character-tools {
    color: var(--cyber-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.select-character-btn {
    width: 100%;
    margin-top: auto;
}

.selection-actions {
    text-align: center;
}

/* Enhanced Terminal Styles */
.enhanced-terminal {
    background: #0c0c0c;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Fira Code', 'Courier New', monospace;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
}

.terminal-header-bar {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #444;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.control-dot.red { 
    background: linear-gradient(135deg, #ff5f56, #e04b42);
    border: 1px solid #d43f35;
}
.control-dot.yellow { 
    background: linear-gradient(135deg, #ffbd2e, #e6a71a);
    border: 1px solid #cc9500;
}
.control-dot.green { 
    background: linear-gradient(135deg, #27ca3f, #1fb032);
    border: 1px solid #179b28;
}

.terminal-title {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.terminal-tools-count {
    color: #00ff88;
    font-size: 0.75rem;
    background: rgba(0, 255, 136, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    font-weight: 500;
}

.terminal-output {
    background: #0c0c0c;
    color: #00ff88;
    padding: 1rem;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    font-family: 'Fira Code', 'Courier New', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.terminal-line {
    margin-bottom: 0;
    display: block;
    font-family: inherit;
}

.terminal-text {
    color: #00ff88;
    font-family: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terminal-command {
    color: #ffffff;
    font-weight: 500;
}

.terminal-prompt-line {
    color: #00ff88;
    font-weight: 600;
}

.terminal-error {
    color: #ff6b6b;
}

.terminal-warning {
    color: #ffd93d;
}

.terminal-success {
    color: #6bcf7f;
}

.terminal-info {
    color: #74c0fc;
}

.terminal-separator {
    border-bottom: 1px solid #333;
    margin: 0.5rem 0;
    opacity: 0.5;
}

.terminal-input-line {
    background: #0c0c0c;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-top: 1px solid #333;
    position: relative;
}

.terminal-prompt {
    color: #00ff88;
    margin-right: 0.5rem;
    font-weight: 600;
    font-family: 'Fira Code', 'Courier New', monospace;
    white-space: nowrap;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875rem;
    flex: 1;
    outline: none;
    caret-color: #00ff88;
}

.terminal-input::selection {
    background: rgba(0, 255, 136, 0.3);
}

.terminal-cursor {
    color: #00ff88;
    animation: blink 1s infinite;
    margin-left: 0.25rem;
    font-weight: bold;
}

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

/* Terminal command output formatting */
.terminal-output .command-output {
    color: #e0e0e0;
    margin: 0.25rem 0;
}

.terminal-output .command-header {
    color: #74c0fc;
    font-weight: 600;
    margin: 0.5rem 0 0.25rem 0;
}

.terminal-output .command-result {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-left: 3px solid #00ff88;
    margin: 0.5rem 0;
    border-radius: 0 4px 4px 0;
}

.terminal-output .tool-info {
    color: #ffd93d;
    font-style: italic;
}

.terminal-output .scan-result {
    color: #6bcf7f;
    font-family: monospace;
}

.terminal-output .error-output {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #ff6b6b;
}

/* Terminal table formatting */
.terminal-table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5rem 0;
    font-family: monospace;
    font-size: 0.8rem;
}

.terminal-table th,
.terminal-table td {
    padding: 0.25rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.terminal-table th {
    color: #00ff88;
    font-weight: 600;
    background: rgba(0, 255, 136, 0.1);
}

.terminal-table td {
    color: #e0e0e0;
}

/* ASCII art and banners */
.terminal-ascii {
    color: #00ff88;
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1.2;
    margin: 0.5rem 0;
}

.terminal-banner {
    color: #74c0fc;
    font-weight: 600;
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    border: 1px solid #74c0fc;
    border-radius: 4px;
}

/* Mission Selector Styles */
.mission-selector {
    padding: 2rem;
}

.mission-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mission-header h2 {
    color: var(--cyber-primary);
    margin-bottom: 0.5rem;
}

.no-character-message {
    text-align: center;
    padding: 3rem;
    background: rgba(0, 20, 40, 0.5);
    border: 2px dashed rgba(0, 255, 136, 0.3);
    border-radius: 12px;
}

.no-character-message i {
    font-size: 3rem;
    color: var(--cyber-text-muted);
    margin-bottom: 1rem;
}

.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.mission-card {
    background: rgba(0, 20, 40, 0.9);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mission-card:hover {
    border-color: var(--cyber-primary);
    transform: translateY(-2px);
}

.mission-card.selected {
    border-color: var(--cyber-accent);
    background: rgba(0, 255, 136, 0.05);
}

.mission-card.beginner { border-left: 4px solid #28a745; }
.mission-card.intermediate { border-left: 4px solid #ffc107; }
.mission-card.advanced { border-left: 4px solid #dc3545; }

.mission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.mission-header h3 {
    color: var(--cyber-primary);
    margin: 0;
}

.difficulty-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.difficulty-badge.beginner {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.difficulty-badge.intermediate {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.difficulty-badge.advanced {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.mission-description {
    color: var(--cyber-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.mission-tools h4,
.mission-objectives h4 {
    color: var(--cyber-primary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.tool-tag {
    background: rgba(0, 255, 136, 0.1);
    color: var(--cyber-primary);
    padding: 0.125rem 0.375rem;
    border-radius: 8px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.mission-objectives ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--cyber-text-muted);
}

.mission-objectives li {
    margin-bottom: 0.25rem;
}

.mission-reward {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyber-accent);
    font-weight: 500;
    margin: 1rem 0;
}

.mission-actions {
    margin-top: 1rem;
}

.start-mission-btn {
    width: 100%;
}

/* Player Stats Styles */
.player-stats-component {
    background: rgba(0, 20, 40, 0.9);
    border: 1px solid var(--cyber-primary);
    border-radius: 8px;
    padding: 1.5rem;
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.player-avatar {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--cyber-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-avatar i {
    font-size: 1.5rem;
    color: var(--cyber-primary);
}

.player-info h3 {
    color: var(--cyber-primary);
    margin: 0 0 0.5rem 0;
}

.level-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.level {
    color: var(--cyber-accent);
    font-weight: 500;
}

.xp-bar {
    width: 150px;
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-primary), var(--cyber-accent));
    transition: width 0.3s ease;
}

.xp-text {
    font-size: 0.75rem;
    color: var(--cyber-text-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 6px;
}

.stat-icon {
    color: var(--cyber-primary);
}

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

.stat-value {
    font-weight: 600;
    color: var(--cyber-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--cyber-text-muted);
}

.skills-section h4 {
    color: var(--cyber-primary);
    margin-bottom: 1rem;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 6px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    color: var(--cyber-primary);
    font-weight: 500;
}

.skill-points {
    color: var(--cyber-accent);
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-primary), var(--cyber-accent));
    transition: width 0.3s ease;
}

/* Mission Briefing Modal */
.mission-briefing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.mission-briefing-modal {
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid var(--cyber-primary);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.briefing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.briefing-header h2 {
    color: var(--cyber-primary);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--cyber-text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.briefing-content h3 {
    color: var(--cyber-primary);
    margin-bottom: 1rem;
}

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

.briefing-section h4 {
    color: var(--cyber-primary);
    margin-bottom: 0.5rem;
}

.briefing-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Notifications */
.success-message,
.level-up-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--cyber-primary);
    border-radius: 8px;
    padding: 1rem;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.success-content,
.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--cyber-primary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* User badges */
.user-badge {
    background: rgba(0, 255, 136, 0.2);
    color: var(--cyber-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.character-badge {
    background: rgba(255, 107, 0, 0.2);
    color: var(--cyber-accent);
    border-color: var(--cyber-accent);
}

/* Dashboard card container */
.dashboard-card-container {
    margin-bottom: 1.5rem;
}

/* Virtual Lab Manager Styles */
.virtual-lab-manager {
    padding: 2rem;
    background: rgba(0, 20, 40, 0.9);
    border-radius: 12px;
    border: 1px solid var(--cyber-primary);
}

.lab-header {
    text-align: center;
    margin-bottom: 2rem;
}

.lab-header h2 {
    color: var(--cyber-primary);
    margin-bottom: 0.5rem;
}

.lab-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.lab-stats .stat-item {
    text-align: center;
}

.lab-stats .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cyber-accent);
}

.lab-stats .stat-label {
    font-size: 0.875rem;
    color: var(--cyber-text-muted);
}

.lab-controls {
    display: flex;
    gap: 1rem;
    align-items: end;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    color: var(--cyber-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-control {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 4px;
    padding: 0.5rem;
    color: var(--cyber-primary);
    font-size: 0.875rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--cyber-primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.vm-card {
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.vm-card:hover {
    border-color: var(--cyber-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

.vm-card.beginner {
    border-left: 4px solid #28a745;
}

.vm-card.intermediate {
    border-left: 4px solid #ffc107;
}

.vm-card.advanced {
    border-left: 4px solid #dc3545;
}

.vm-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.vm-info h3 {
    color: var(--cyber-primary);
    margin: 0 0 0.25rem 0;
}

.vm-category {
    color: var(--cyber-text-muted);
    font-size: 0.75rem;
    text-transform: capitalize;
}

.vm-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.vm-status.available {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.vm-status.running {
    background: rgba(0, 255, 136, 0.2);
    color: var(--cyber-primary);
    border: 1px solid var(--cyber-primary);
}

.vm-status.stopped {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid #6c757d;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

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

.vm-description {
    margin-bottom: 1rem;
}

.vm-description p {
    color: var(--cyber-text-muted);
    line-height: 1.5;
    margin: 0;
}

.vm-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyber-text-muted);
    font-size: 0.875rem;
}

.spec-item i {
    color: var(--cyber-primary);
    width: 16px;
}

.vm-tools {
    margin-bottom: 1rem;
}

.vm-tools h4 {
    color: var(--cyber-primary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.vm-tools .tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.vm-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.launch-vm-btn {
    flex: 1;
}

.vm-info-btn {
    flex: 0 0 auto;
}

.difficulty-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.difficulty-badge.beginner {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.difficulty-badge.intermediate {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.difficulty-badge.advanced {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Active Sessions */
.no-active-sessions {
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(0, 255, 136, 0.3);
    border-radius: 12px;
}

.no-active-sessions i {
    font-size: 3rem;
    color: var(--cyber-text-muted);
    margin-bottom: 1rem;
}

.no-active-sessions h3 {
    color: var(--cyber-primary);
    margin-bottom: 0.5rem;
}

.active-sessions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.active-sessions-header h3 {
    color: var(--cyber-primary);
    margin: 0;
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.session-card {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--cyber-primary);
    border-radius: 8px;
    padding: 1rem;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.session-header h4 {
    color: var(--cyber-primary);
    margin: 0;
}

.session-info {
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.info-item .label {
    color: var(--cyber-text-muted);
}

.info-item .value {
    color: var(--cyber-primary);
    font-family: monospace;
}

.session-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.session-actions .btn {
    flex: 1;
    min-width: 80px;
}

/* VM Launch Modal */
.vm-launch-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.launch-modal-content {
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid var(--cyber-primary);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
}

.launch-header {
    text-align: center;
    margin-bottom: 2rem;
}

.launch-header h3 {
    color: var(--cyber-primary);
    margin-bottom: 0.5rem;
}

.launch-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-primary), var(--cyber-accent));
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: var(--cyber-primary);
    font-size: 0.875rem;
    text-align: center;
}

.launch-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.launch-specs .spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyber-text-muted);
    font-size: 0.875rem;
}

/* VM Interface Modal */
.vm-interface-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.vm-interface-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 1rem;
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid var(--cyber-primary);
    border-radius: 12px;
    overflow: hidden;
}

.vm-interface-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--cyber-primary);
}

.vm-title h3 {
    color: var(--cyber-primary);
    margin: 0;
}

.vm-ip {
    color: var(--cyber-text-muted);
    font-family: monospace;
    font-size: 0.875rem;
}

.vm-controls {
    display: flex;
    gap: 0.5rem;
}

.vm-screen {
    flex: 1;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.vm-desktop {
    width: 100%;
    height: 100%;
    position: relative;
}

.desktop-background {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    position: relative;
}

.desktop-icons {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    gap: 1rem;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.desktop-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.desktop-icon span {
    color: #ffffff;
    font-size: 0.75rem;
    text-align: center;
}

.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid #444;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.start-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    color: var(--cyber-primary);
    cursor: pointer;
}

.taskbar-items {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.taskbar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.taskbar-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.system-tray {
    margin-left: auto;
    color: #ffffff;
    font-size: 0.875rem;
}

.vm-status-bar {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--cyber-primary);
    font-size: 0.875rem;
}

.vm-status-bar .status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyber-text-muted);
}

.vm-status-bar .status-item i {
    color: var(--cyber-primary);
}

/* VM Notifications */
.vm-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid;
    z-index: 1002;
    animation: slideIn 0.3s ease;
}

.vm-notification.success {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

.vm-notification.error {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.vm-notification.info {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--cyber-primary);
    color: var(--cyber-primary);
}

.vm-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Video Library Styles */
.video-library {
    padding: 2rem;
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.library-header h2 {
    color: var(--cyber-primary);
    margin: 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: rgba(0, 20, 40, 0.9);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    border-color: var(--cyber-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid var(--cyber-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-overlay:hover {
    background: rgba(0, 255, 136, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Settings Page Styles */
.settings-page-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 2rem;
    min-height: 600px;
}

.settings-sidebar {
    background: rgba(0, 20, 40, 0.9);
    border: 1px solid var(--cyber-primary);
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
}

.settings-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 4px;
    color: var(--cyber-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    margin-bottom: 0.5rem;
}

.settings-nav-btn:hover,
.settings-nav-btn.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--cyber-primary);
    color: var(--cyber-primary);
}

/* VM Terminal Modal */
.vm-terminal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.vm-terminal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 2rem;
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid var(--cyber-primary);
    border-radius: 12px;
    overflow: hidden;
}

.vm-terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--cyber-primary);
}

.vm-terminal-container {
    flex: 1;
    min-height: 500px;
}

/* Header Component Styles */
.cyber-header-component {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(0, 40, 80, 0.95));
    border-bottom: 2px solid var(--cyber-primary);
    padding: 1rem 2rem;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2rem;
    color: var(--cyber-primary);
    animation: matrix-glow 2s ease-in-out infinite alternate;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cyber-primary);
    margin: 0;
    font-family: 'Orbitron', sans-serif;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--cyber-text-muted);
    margin: 0;
}

.status-indicators {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--cyber-text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: var(--cyber-success);
}

.status-badge {
    background: rgba(0, 255, 136, 0.2);
    color: var(--cyber-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    font-size: 0.75rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn, .action-btn {
    background: transparent;
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--cyber-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.nav-btn:hover, .action-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--cyber-primary);
}

.action-btn {
    padding: 0.5rem;
    position: relative;
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--cyber-warning);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.settings-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 20, 40, 0.95);
    border: 1px solid var(--cyber-primary);
    border-radius: 4px;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--cyber-text-muted);
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(0, 255, 136, 0.1);
    color: var(--cyber-primary);
}

.logout-btn {
    color: var(--cyber-warning);
    border-color: rgba(255, 107, 0, 0.3);
}

.logout-btn:hover {
    background: rgba(255, 107, 0, 0.1);
    border-color: var(--cyber-warning);
}

/* Profile Modal */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid var(--cyber-primary);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: var(--cyber-primary);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--cyber-text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

.profile-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid var(--cyber-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar i {
    font-size: 1.5rem;
    color: var(--cyber-primary);
}

.profile-details h4 {
    color: var(--cyber-primary);
    margin: 0 0 0.25rem 0;
}

.profile-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--cyber-text-muted);
}

.stat-value {
    display: block;
    font-weight: bold;
    color: var(--cyber-primary);
}

/* Header Notifications */
.header-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid;
    z-index: 1002;
    animation: slideIn 0.3s ease;
}

.header-notification.success {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

.header-notification.info {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--cyber-primary);
    color: var(--cyber-primary);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}