:root {
    --primary: #2563eb;
    --danger: #ef4444;
    --success: #22c55e;
    --bg: #f8fafc;
    --text: #1e293b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    overflow: hidden; /* App feel */
}

.screen {
    display: none;
    height: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.screen.active { display: flex; }

/* HOME */
#screen-home { justify-content: center; text-align: center; }

.mic-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    font-size: 3rem;
    color: white;
    margin: 40px 0;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transition: transform 0.1s, background 0.3s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mic-button:active, .mic-button.recording {
    transform: scale(1.1);
    background: #ef4444;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
}

.nav-btn {
    margin-top: auto;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1rem;
    padding: 20px;
}

/* REVIEW */
#screen-review { justify-content: center; }
.card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    border: none;
    font-size: 1.2rem;
    font-family: inherit;
    resize: none;
    height: 150px;
    outline: none;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.actions { display: flex; gap: 10px; width: 100%; }
.actions button {
    flex: 1;
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
}
.btn-cancel { background: #fee2e2; color: var(--danger); }
.btn-confirm { background: #dcfce7; color: var(--success); }

/* LIST */
#screen-list header { width: 100%; display: flex; align-items: center; margin-bottom: 20px; }
.back-btn { background: none; border: none; font-size: 1rem; cursor: pointer; }
#list-container { width: 100%; overflow-y: auto; flex: 1; }

.task-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}
.task-urgent { border-left: 5px solid var(--danger); }
.task-normal { border-left: 5px solid var(--primary); }
.task-low { border-left: 5px solid #94a3b8; }

.task-date { font-size: 0.8rem; color: #64748b; margin-top: 5px; }

/* Utility */
.loading { opacity: 0.5; pointer-events: none; }