:root {
    /* Ocean Depths Palette */
    --primary: #0984E3;
    /* Blue */
    --primary-hover: #076aba;
    --secondary: #74B9FF;
    /* Light Blue */
    --accent: #00CEC9;
    /* Teal */
    --accent-hover: #00b3b0;
    --background: #0A1628;
    /* Deep Ocean Navy */
    --surface: #12233D;
    /* Lighter Navy */

    --success: #00b894;
    --warning: #fdcb6e;
    --error: #ff7675;

    --glass-bg: rgba(18, 35, 61, 0.65);
    --glass-border: rgba(116, 185, 255, 0.15);

    --text-main: #dfe6e9;
    --text-muted: #8395a7;
}

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 2rem;
}

.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 15% 10%, rgba(0, 206, 201, 0.05), transparent 30%),
        radial-gradient(circle at 85% 90%, rgba(9, 132, 227, 0.08), transparent 40%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.25rem;
}

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

/* Layout */
.layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Utilities */
.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}

.full-width {
    width: 100%;
}

.text-muted {
    color: var(--text-muted);
}

.text-error {
    color: var(--error) !important;
}

.text-sm {
    font-size: 0.85rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-mono {
    font-family: 'Fira Code', monospace;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Forms */
.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.helper-text {
    font-size: 0.75rem;
    color: var(--warning);
    margin-top: 0.4rem;
    opacity: 0.8;
}

.input-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 8px;
    outline: none;
    transition: 0.2s;
    font-size: 0.95rem;
}

.input-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 206, 201, 0.2);
}

textarea.input-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.timestamp-row {
    display: flex;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.primary-btn {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(9, 132, 227, 0.3);
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.outline-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.outline-btn:hover {
    border-color: var(--accent);
    background: rgba(0, 206, 201, 0.1);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Output Boxes */
.output-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    color: var(--secondary);
    min-height: 50px;
    word-break: break-all;
    white-space: pre-wrap;
    font-size: 0.9rem;
}

.verify-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.status-indicator.neutral {
    background: var(--text-muted);
}

.status-indicator.success {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-indicator.error {
    background: var(--error);
    box-shadow: 0 0 8px var(--error);
}

.status-indicator.warning {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.code-snippet-wrap {
    position: relative;
    background: #000;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.code-snippet-wrap pre {
    margin: 0;
    padding: 1rem;
    overflow-x: auto;
    color: #a8b2d1;
    line-height: 1.5;
}

.code-snippet-wrap .copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-main);
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    opacity: 1;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
}