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

body {
    font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;
    background: #0a0a0f;
    color: #c8c8d0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px;
}

.container {
    max-width: 560px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 32px;
}

header h1 {
    font-size: 1.6rem;
    color: #e0e0e8;
    font-weight: 600;
    letter-spacing: -0.5px;
}

header .icon {
    font-style: normal;
}

.subtitle {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #606070;
}

label {
    display: block;
    font-size: 0.75rem;
    color: #808090;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.form-group {
    margin-bottom: 20px;
}

textarea, input[type="text"], input[type="password"], select {
    width: 100%;
    background: #12121a;
    border: 1px solid #252530;
    color: #d0d0d8;
    padding: 12px 14px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

textarea:focus, input:focus, select:focus {
    border-color: #4a6fa5;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23606070' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.char-count {
    text-align: right;
    font-size: 0.7rem;
    color: #505060;
    margin-top: 4px;
}

.toggle-btn {
    background: none;
    border: 1px dashed #303040;
    color: #707080;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    width: 100%;
    text-align: left;
    margin-bottom: 12px;
    transition: border-color 0.2s, color 0.2s;
}

.toggle-btn:hover {
    border-color: #4a6fa5;
    color: #a0a0b0;
}

#passphrase-section-create input {
    margin-bottom: 8px;
}

.primary-btn {
    width: 100%;
    padding: 14px;
    background: #1a3a5c;
    border: 1px solid #2a5a8c;
    color: #b0c8e8;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.primary-btn:hover {
    background: #1e4570;
}

.primary-btn:active {
    transform: scale(0.98);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.danger-btn {
    padding: 10px 16px;
    background: #3a1a1a;
    border: 1px solid #5c2a2a;
    color: #e88080;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
}

.danger-btn:hover {
    background: #4a2020;
}

.danger-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.secondary-btn {
    padding: 10px 16px;
    background: #1a1a24;
    border: 1px solid #303040;
    color: #909098;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
}

.secondary-btn:hover {
    background: #222230;
}

.info-box {
    margin-top: 24px;
    padding: 16px;
    background: #0e0e16;
    border: 1px solid #1a1a28;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #606070;
    line-height: 1.6;
}

.info-box strong {
    color: #808090;
}

.info-box ul {
    margin-top: 8px;
    padding-left: 18px;
}

.info-box li {
    margin-bottom: 4px;
}

.success-box {
    padding: 24px;
    background: #0e1a0e;
    border: 1px solid #1a3a1a;
    border-radius: 8px;
}

.success-box h2 {
    font-size: 1rem;
    color: #80c080;
    margin-bottom: 8px;
}

.link-box {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.link-box input {
    flex: 1;
    font-size: 0.75rem;
    background: #0a0a12;
}

.link-box .primary-btn {
    width: auto;
    padding: 10px 20px;
    white-space: nowrap;
}

.status {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 4px;
    margin: 12px 0;
}

.status.pending {
    background: #1a1a0e;
    border: 1px solid #3a3a1a;
    color: #c0c080;
}

.status.viewed {
    background: #0e1a0e;
    border: 1px solid #1a3a1a;
    color: #80c080;
}

.status.expired {
    background: #1a0e0e;
    border: 1px solid #3a1a1a;
    color: #c08080;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.warning-box {
    padding: 24px;
    background: #1a1408;
    border: 1px solid #3a2a10;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.warning-box h2 {
    font-size: 1rem;
    color: #e0c060;
    margin-bottom: 12px;
}

.warning-box p {
    font-size: 0.85rem;
    color: #a09870;
    margin-bottom: 8px;
    line-height: 1.5;
}

.error {
    background: #1a0e0e;
    border: 1px solid #3a1a1a;
    color: #e08080;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-align: center;
}

.error-box {
    background: #1a0e0e;
    border: 1px solid #3a1a1a;
    color: #e08080;
    padding: 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
}

.error-text {
    color: #e08080;
    font-size: 0.8rem;
    margin-top: 6px;
}

.hint {
    font-size: 0.8rem;
    color: #808090;
    margin-bottom: 10px;
    font-style: italic;
}

.destroyed-notice {
    margin-top: 16px;
    font-size: 0.8rem;
    color: #c08050;
    text-align: center;
}

.footer-link {
    margin-top: 32px;
    text-align: center;
}

.footer-link a {
    color: #505068;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-link a:hover {
    color: #7070a0;
}

.hidden {
    display: none !important;
}

#secret-content {
    margin-bottom: 12px;
}

#passphrase-section .form-group {
    padding: 24px;
    background: #12121a;
    border: 1px solid #252530;
    border-radius: 8px;
}

#passphrase-section .primary-btn {
    margin-top: 12px;
}

@media (max-width: 480px) {
    body { padding: 20px 12px; }
    header h1 { font-size: 1.3rem; }
    .actions { flex-direction: column; }
    .link-box { flex-direction: column; }
    .link-box .primary-btn { width: 100%; }
}
