:root {
            --primary-color: #131061;
            --primary-light: #2D2A8C;
            --primary-dark: #0A0833;
            --accent-color: #9fef00;
            --accent-hover: #85c200;
            --danger-color: #e74c3c;
            --danger-hover: #c0392b;
            --success-color: #2ecc71;
            --success-hover: #27ae60;
            --warning-color: #f39c12;
            --warning-hover: #e67e22;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    transition: opacity 0.3s ease-in-out;
}

.welcome-box {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    max-width: 1200px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.welcome-box h1 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 28px;
    position: relative;
    display: inline-block;
}

.welcome-box h1:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* Top Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.logo {
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.logo i {
    color: var(--accent-color);
    font-size: 22px;
}

.nsl-x-whitearrow-logo {
    height: 85px;
    width: auto;
    max-width: 350px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .nsl-x-whitearrow-logo {
        height: 28px;
        max-width: 150px;
    }
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.nav-btn {
    background-color: transparent;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-btn:hover {
    background-color: rgba(19, 16, 97, 0.05);
}

.btn-profile, .btn-password {
    color: var(--primary-color);
}

.btn-logout {
    color: var(--danger-color);
}

/* ===== POWERED BY BUTTON STYLES (Copy this section) ===== */
.powered-by-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(78, 77, 77, 0.9);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tanhoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    letter-spacing: 0.3px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.powered-by-button:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    color: #333;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.powered-by-button:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.85);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .powered-by-button {
        bottom: 16px;
        right: 16px;
        padding: 6px 12px;
        font-size: 10px;
    }
}

/* Dashboard Navigation */
.dashboard-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.nav-tab {
    padding: 12px 24px;
    cursor: pointer;
    position: relative;
    color: #777;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 8px 8px 0 0;
}

.nav-tab:hover {
    color: var(--primary-color);
    background-color: rgba(19, 16, 97, 0.03);
}

.nav-tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 4px 4px 0 0;
}

/* Toggle Dark Mode */
.dark-toggle {
    background: none;
    border: 2px solid #ccc;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    margin-left: 1rem;
}

.dark-toggle:hover {
    background-color: #f0f0f0;
}

/* Dashboard Content */
.dashboard-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-content.active {
    display: block;
    opacity: 1;
}

/* Main Dashboard Grid */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px; /* from 24px */
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: left;
    transition: all 0.3s;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: rgba(19, 16, 97, 0.02);
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.card-body {
    padding: 20px;
}

/* User Info Card */
.user-info {
    text-align: left;
    line-height: 1.6;
}

.user-info p {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.user-info p:last-child {
    border-bottom: none;
}

.user-info-card {
    grid-column: span 1;
}

.instance-card {
    grid-column: span 1;
}

/* Improved Kali Instance Card */
.kali-instance-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.kali-instance-actions .button {
    flex: 1;
}

/* Active Kali Session Controls */
.kali-session-controls {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.kali-session-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.kali-session-timer {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    font-family: monospace;
}

.kali-session-status {
    font-size: 0.9em;
    color: #666;
}

/* Countdown Display */
.countdown-display {
    font-size: 1.5em;
    font-weight: 700; /* from bold */
    color: var(--primary-color);
    margin: 20px 0;
    padding: 20px;
    background-color: rgba(19, 16, 97, 0.03);
    border-radius: 10px;
    animation: pulse 2s infinite;
    border-left: 5px solid var(--accent-color); /* from 4px */
}

/* Button Styles */
.button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin: 10px 5px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(159, 239, 0, 0.15);
    text-decoration: none;
}

.button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(159, 239, 0, 0.2);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(159, 239, 0, 0.1);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button.secondary-btn {
    background-color: #f0f0f0;
    color: #333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button.secondary-btn:hover {
    background-color: #e0e0e0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Status Display */
#status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    background-color: transparent;
}

/* Profile Content */
.user-profile-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
}

.form-control {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(19, 16, 97, 0.1);
}

.form-control:disabled {
    background-color: #f9f9f9;
    color: #777;
}

.form-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

/* VNC Container */
.vnc-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
}

.vnc-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* VNC Controls */
.vnc-controls {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    display: none;
}

.vnc-controls-toggle {
    background-color: rgba(19, 16, 97, 0.85);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    transition: all 0.2s;
    font-size: 18px;
}

.vnc-controls-toggle:hover {
    transform: scale(1.05);
    background-color: var(--primary-color);
}

.vnc-controls-menu {
    background-color: rgba(19, 16, 97, 0.85);
    color: white;
    border-radius: 12px;
    padding: 18px;
    width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: none;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.vnc-controls-header {
    text-align: center;
    margin-bottom: 15px;
}

.vnc-controls-timer {
    font-size: 2em;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.vnc-controls-label {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 5px;
}

.vnc-controls-status {
    text-align: center;
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.vnc-stop-btn {
    width: 100%;
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vnc-stop-btn:hover {
    background-color: var(--danger-hover);
    transform: translateY(-2px);
}

.vnc-stop-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(19, 16, 97, 0.02);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--accent-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--danger-color);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 18px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: rgba(19, 16, 97, 0.02);
}

/* Toast Notifications */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: white;
    color: #333;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 350px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.3s;
    border-left: 4px solid var(--primary-color);
    backdrop-filter: blur(5px);
}

.toast-success {
    border-left-color: var(--success-color);
}

.toast-success i {
    color: var(--success-color);
}

.toast-error {
    border-left-color: var(--danger-color);
}

.toast-error i {
    color: var(--danger-color);
}

.toast-warning {
    border-left-color: var(--warning-color);
}

.toast-warning i {
    color: var(--warning-color);
}

.toast-info {
    border-left-color: var(--primary-color);
}

.toast-info i {
    color: var(--primary-color);
}

/* Alert styles */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    font-size: 20px;
    line-height: 1.5;
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: #d35400;
    border-left: 4px solid #f39c12;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border-left: 4px solid #2ecc71;
}

.approval-message {
    margin-bottom: 20px;
    text-align: left;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 12px;
    background-color: rgba(159, 239, 0, 0.15);
    border-radius: 8px;
    margin-top: 10px;
    transition: all 0.2s;
    font-weight: 500;
}

.admin-link:hover {
    background-color: rgba(159, 239, 0, 0.3);
    transform: translateY(-2px);
}

.admin-link i {
    margin-right: 8px;
    color: var(--accent-color);
}

/* ===== FULL-WIDTH VICTIM MACHINES SECTION ===== */
.victim-machines-fullwidth {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 30px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.victim-machines-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.victim-machines-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.victim-machines-header h3 i {
    color: var(--accent-color);
    font-size: 28px;
}

.victim-machines-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
    font-weight: 500;
}

.victim-machines-body {
    padding: 30px;
}

/* Horizontal Flow Container */
.horizontal-flow-container {
    display: flex;
    gap: 30px;
    min-height: 400px;
}

.flow-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.column-header {
    margin-bottom: 25px;
    text-align: center;
}

.column-header h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.column-header h3 i {
    color: var(--accent-color);
}

.column-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* OS Selection Grid */
.os-selection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.large-os-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 3px solid #e9ecef;
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.large-os-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.large-os-card:hover::before {
    left: 100%;
}

.large-os-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(19, 16, 97, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.large-os-card.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(159, 239, 0, 0.08) 0%, rgba(159, 239, 0, 0.03) 100%);
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(159, 239, 0, 0.25);
}

.large-os-card.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #85c200 100%);
    color: var(--primary-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(159, 239, 0, 0.4);
}

.os-card-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.os-large-icon {
    font-size: 48px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.large-os-card:hover .os-large-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

.os-details {
    flex: 1;
    text-align: left;
}

.os-details h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.os-details p {
    margin: 0 0 12px 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

.os-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tag {
    background-color: rgba(19, 16, 97, 0.1);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Breadcrumb */
.selected-os-breadcrumb {
    background: linear-gradient(135deg, rgba(159, 239, 0, 0.1) 0%, rgba(159, 239, 0, 0.05) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

.breadcrumb-item i {
    color: var(--accent-color);
    font-size: 20px;
}

/* Module Selection Grid */
.module-selection-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    flex-grow: 1;
}

.large-module-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.large-module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.large-module-card:hover::before {
    left: 100%;
}

.large-module-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(19, 16, 97, 0.12);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.large-module-card.selected {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(159, 239, 0, 0.08) 0%, rgba(159, 239, 0, 0.03) 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(159, 239, 0, 0.18);
}

.large-module-card.selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #85c200 100%);
    color: var(--primary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(159, 239, 0, 0.4);
}

.module-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.module-number {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.module-card-body h4 {
    margin: 0 0 8px 0;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 16px;
    line-height: 1.3;
}

.module-description {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.module-topics {
    margin-top: 10px;
}

.topics-label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.topic-tag {
    background-color: rgba(19, 16, 97, 0.08);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

/* Difficulty Badges */
.difficulty-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.difficulty-easy { 
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.difficulty-medium { 
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.difficulty-advanced { 
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.difficulty-hard { 
    background: linear-gradient(135deg, #8b0000 0%, #660000 100%);
    color: white;
}

/* Launch Section */
.launch-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.launch-summary-card {
    background: linear-gradient(135deg, rgba(19, 16, 97, 0.05) 0%, rgba(19, 16, 97, 0.02) 100%);
    border: 2px solid rgba(19, 16, 97, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
}

.summary-header {
    text-align: center;
    margin-bottom: 20px;
}

.summary-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.summary-header h4 i {
    color: var(--success-color);
}

.summary-details {
    display: grid;
    gap: 15px;
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(19, 16, 97, 0.05);
}

.summary-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #85c200 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
}

.summary-info {
    flex: 1;
}

.summary-title {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 15px;
    margin-bottom: 2px;
}

.summary-subtitle {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Launch Actions */
.launch-button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.primary-launch-btn {
    background: linear-gradient(135deg, var(--success-color) 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.primary-launch-btn:hover {
    background: linear-gradient(135deg, #27ae60 0%, var(--success-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.35);
}

.primary-launch-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.15);
}

.secondary-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    border: 2px solid #dee2e6;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 14px;
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 16, 97, 0.1);
}

/* Active instances display */
.active-instances {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.active-instances h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}

.active-instances h4 i {
    color: var(--success-color);
}

/* Simplified victim instance display */
.victim-instance {
    background-color: rgba(46, 204, 113, 0.1);
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.victim-instance:hover {
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
    transform: translateY(-2px);
}

.victim-instance-info {
    flex: 1;
}

.victim-instance-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.victim-instance-ip {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--success-color);
    font-size: 18px;
    padding: 8px 12px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.victim-actions {
    display: flex;
    gap: 8px;
}

.victim-stop-btn {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.victim-stop-btn:hover {
    background-color: var(--danger-hover);
    transform: translateY(-2px);
}

/* No active instances message */
.no-instances {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.no-instances i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .welcome-box {
        padding: 20px;
    }

    .navbar {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-nav {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        gap: 8px;
    }

    .nav-tab {
        padding: 10px 16px;
    }

    .button {
        width: 100%;
        justify-content: center;
    }

    .kali-instance-actions {
        flex-direction: column;
    }

    .victim-instance {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .victim-actions {
        align-self: stretch;
    }

    .victim-stop-btn {
        width: 100%;
        justify-content: center;
    }

    /* Mobile responsive for victim machine flow */
    .horizontal-flow-container {
        flex-direction: column;
        gap: 20px;
    }

    .os-card-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .os-details {
        text-align: center;
    }

    .launch-button-container {
        flex-direction: column;
    }

    .primary-launch-btn,
    .secondary-btn {
        width: 100%;
        justify-content: center;
    }

    .summary-row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .victim-machines-header {
        padding: 20px;
    }

    .victim-machines-body {
            padding: 20px;
        }
}

@media screen and (max-width: 480px) {
    .victim-machines-fullwidth {
        margin: 20px -20px;
        border-radius: 0;
    }

    .large-os-card {
        padding: 20px 15px;
        min-height: 130px;
    }

    .large-module-card {
        padding: 15px;
    }

    .victim-machines-header h3 {
        font-size: 20px;
    }

    .victim-machines-header p {
        font-size: 14px;
    }
}