@import url('https://cdn.jsdelivr.net/npm/xterm@5.3.0/css/xterm.min.css');

:root {
    --bg: #05060a;
    --panel: #0b1324;
    --primary: #00ffc6;
    --accent: #0c7bdc;
    --danger: #ff4d6d;
    --text: #e2f3ff;
    --muted: #8aa2be;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, rgba(0, 255, 198, 0.05), transparent 55%), var(--bg);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
}

header {
    background: rgba(5, 6, 10, 0.85);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0, 255, 198, 0.2);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

main {
    width: min(1100px, 90vw);
    margin: 2rem auto 4rem;
}

.panel {
    background: var(--panel);
    border: 1px solid rgba(0, 255, 198, 0.15);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.panel + .panel {
    margin-top: 2rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

button,
.btn {
    background: linear-gradient(120deg, var(--accent), var(--primary));
    color: #041224;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 255, 198, 0.3);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
select,
textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 198, 0.25);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: var(--text);
}

.flash {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.flash.success { border: 1px solid rgba(0, 255, 198, 0.5); background: rgba(0, 255, 198, 0.1); }
.flash.warning { border: 1px solid rgba(255, 193, 7, 0.5); background: rgba(255, 193, 7, 0.1); }
.flash.danger { border: 1px solid rgba(255, 76, 108, 0.5); background: rgba(255, 76, 108, 0.1); }

.score-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(4, 18, 36, 0.9);
}

.media-grid {
    display: grid;
    gap: 1rem;
}

.media-grid audio,
.media-grid video {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 255, 198, 0.2);
    background: #000;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.15rem 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    color: var(--muted);
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

.nav-link-active {
    background: linear-gradient(120deg, var(--accent), var(--primary));
    color: #041224;
    box-shadow: 0 8px 20px rgba(0, 255, 198, 0.25);
}

.form-scenario label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-scenario input[type="text"],
.form-scenario textarea {
    width: 100%;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
}

.form-scenario textarea {
    min-height: 220px;
}

.form-inline {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.form-inline label {
    flex: 1;
    min-width: 200px;
}

.form-auth {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-auth label {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.form-auth input {
    margin-bottom: 0.9rem;
    width: 100%;
}

.console-wrapper {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .console-wrapper {
        grid-template-columns: 1fr 1.1fr;
    }
}

.terminal-card {
    border: 1px solid rgba(0, 255, 198, 0.2);
    border-radius: 1rem;
    background: #02040a;
    box-shadow: inset 0 0 40px rgba(0, 255, 198, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.terminal-toolbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem 1rem 0 0;
}

.terminal-toolbar .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
    display: inline-block;
}

.terminal-toolbar .indicator.yellow { background: #ffbd2e; }
.terminal-toolbar .indicator.green { background: #27c93f; }

.terminal-title {
    margin-left: auto;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.terminal-window {
    flex: 1;
    padding: 1rem;
    overflow: hidden;
}

.command-hint {
    color: var(--danger);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.05rem 0.4rem;
    border-radius: 0.35rem;
}

.copyable-command {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.4rem;
    padding: 0.15rem 0.4rem;
}

.copyable-command button {
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}

.copyable-command button:hover {
    color: var(--primary);
}

.copyable-command button.copied {
    color: var(--primary);
}

[...truncated for brevity...]

.voicemail-library-card {
    border: 1px solid rgba(0, 255, 198, 0.1);
    border-radius: 1rem;
    padding: 1.25rem;
    background: rgba(3, 5, 12, 0.8);
}

.voicemail-library-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.voicemail-library-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.6rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

.voicemail-wave {
    display: grid;
    gap: 0.35rem;
}

.voicemail-library-entry {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.voicemail-library-label {
    font-weight: 600;
    cursor: pointer;
}

.voicemail-library-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.voicemail-library-audio {
    width: 100%;
    max-width: 360px;
    height: 32px;
}

.voicemail-delete-link {
    color: var(--muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.voicemail-delete-link:hover {
    color: var(--danger);
}

.voicemail-wave-track {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
}

.voicemail-wave-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(120deg, var(--accent), var(--primary));
}

.voicemail-wave-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--muted);
}

.voicemail-wave-label {
    cursor: pointer;
}

.phish-card {
    border: 1px solid rgba(0, 255, 198, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    background: rgba(2, 4, 10, 0.9);
    display: grid;
    gap: 1rem;
}

.phish-voice-card {
    border: 1px solid rgba(0, 255, 198, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    background: rgba(5, 10, 18, 0.95);
    display: grid;
    gap: 1rem;
}

.phish-voice-card select,
.phish-voice-card audio {
    width: 100%;
}

.phish-voice-card audio {
    max-width: 100%;
}

.phish-form {
    display: grid;
    gap: 1rem;
}

.phish-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.phish-attachment {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.phish-attachment.ready {
    border-color: rgba(0, 255, 198, 0.4);
    background: rgba(0, 255, 198, 0.08);
}

.phish-attachment.missing {
    border-color: rgba(255, 77, 109, 0.4);
    background: rgba(255, 77, 109, 0.08);
}

.phish-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.phish-log {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.95rem;
}

.voicemail-card {
    margin-top: 2rem;
    display: grid;
    gap: 1.5rem;
}

.payload-panel h1,
.console-wrapper h1 {
    margin-top: 0;
}

.voicemail-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.voicemail-form textarea {
    min-height: 170px;
    resize: vertical;
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

.voicemail-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.voicemail-status {
    color: var(--muted);
    font-size: 0.9rem;
}

.voicemail-advanced {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(4, 18, 36, 0.65);
}

.voicemail-advanced summary {
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.voicemail-advanced-grid {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

@media (min-width: 700px) {
    .voicemail-advanced-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

