/* Premium Minimalist Design System */
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500&display=swap');

:root {
    --bg-color: #0a0a0a;
    --card-bg: #121212;
    --border-color: #222222;
    --text-primary: #ededed;
    --text-secondary: #a0a0a0;
    --accent-green: #00ff66;
    --accent-red: #ff3333;
    --font-mono: 'Geist Mono', monospace;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: -0.02em;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 900px;
    padding: 40px 24px;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.logo {
    font-weight: 500;
    font-size: 16px;
}

.status-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.status-badge.online {
    color: var(--accent-green);
    border-color: rgba(0, 255, 102, 0.2);
}

/* Cards & Layout */
.workspace {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.card h2 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Form Inputs */
.input-group {
    display: flex;
    gap: 12px;
}

input[type="password"], textarea {
    flex: 1;
    background: #181818;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    padding: 14px;
    outline: none;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

input[type="password"]:focus, textarea:focus {
    border-color: #444444;
    background: #1c1c1c;
}

textarea {
    width: 100%;
    height: 140px;
    resize: none;
    line-height: 1.6;
}

label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Buttons */
button {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 2px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 0 24px;
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px;
    width: 100%;
    margin-top: 12px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: #444444;
}

/* Operational States */
.key-status {
    margin-top: 16px;
    font-size: 11px;
    padding: 8px;
    border-radius: 2px;
    text-align: center;
}

.status-empty {
    background: rgba(255, 51, 51, 0.05);
    color: var(--accent-red);
    border: 1px solid rgba(255, 51, 51, 0.1);
}

.status-active {
    background: rgba(0, 255, 102, 0.05);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 102, 0.1);
}

.card.disabled {
    opacity: 0.25;
    pointer-events: none;
    filter: grayscale(1);
}

.pane-container {
    display: flex;
    gap: 24px;
}

.pane {
    flex: 1;
}

@media (max-width: 768px) {
    .pane-container {
        flex-direction: column;
    }
}


/* Additional Layout elements for File Handling & Previews */
.input-block {
    margin-bottom: 16px;
}

.file-picker {
    width: 100%;
    background: #181818;
    border: 1px solid var(--border-color);
    padding: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
    border-radius: 2px;
    cursor: pointer;
}

.preview-zone {
    background: #141414;
    border: 1px solid var(--border-color);
    min-height: 180px;
    padding: 16px;
    border-radius: 2px;
    word-break: break-all;
    overflow-y: auto;
    max-height: 300px;
}

.muted-text {
    color: #555555;
    font-size: 11px;
}

.decrypted-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #333;
    border-radius: 2px;
    margin-top: 8px;
}

.decrypted-meta {
    border-bottom: 1px dashed #333;
    padding-bottom: 8px;
    margin-bottom: 12px;
    color: var(--accent-green);
    font-size: 11px;
}