* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background:
            radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 30%),
            radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 28%),
            linear-gradient(180deg, #07111f 0%, #0b1728 100%);
    color: #f8fafc;
    min-height: 100vh;
}

.app {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.header {
    margin-bottom: 18px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.subtitle {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
}

.input-card {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    margin-bottom: 18px;
}

textarea {
    width: 100%;
    min-height: 132px;
    border: none;
    background: transparent;
    color: #f8fafc;
    resize: none;
    outline: none;
    font-size: 16px;
    line-height: 1.6;
    padding: 0;
}

textarea::placeholder {
    color: #64748b;
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.btn-mic {
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.28);
}

.btn-save {
    flex: 1;
    height: 56px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.26);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: default;
}

.section-title {
    margin: 22px 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.note-item {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.note-text {
    font-size: 15px;
    line-height: 1.65;
    color: #f8fafc;
    white-space: pre-wrap;
    word-break: break-word;
}

.note-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #94a3b8;
}

.empty-note {
    background: rgba(15, 23, 42, 0.62);
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    padding: 24px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.status-text {
    margin-top: 12px;
    font-size: 13px;
    color: #93c5fd;
    min-height: 20px;
}

@media (max-width: 480px) {
    .app {
        padding: 18px 14px 32px;
    }

    .logo {
        font-size: 24px;
    }

    .input-card {
        border-radius: 20px;
        padding: 16px;
    }

    .btn-mic {
        width: 58px;
        height: 58px;
    }

    .btn-save {
        height: 52px;
    }
}