:root { --bg: #202124; --card: #2d2e30; --text: #e8eaed; --primary: #f1c40f; }
body { background-color: var(--bg); color: var(--text); font-family: 'Segoe UI', sans-serif; display: flex; justify-content: center; padding: 40px; margin: 0; }
.notes-app { width: 100%; max-width: 800px; }

.note-input { background: var(--card); padding: 15px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.4); margin-bottom: 30px; display: flex; flex-direction: column; gap: 10px; transition: background 0.3s ease; }
.note-input input, .note-input textarea { background: transparent; border: none; color: white; outline: none; width: 100%; }
.note-input input { font-weight: bold; font-size: 1.1rem; }
.note-input textarea { resize: none; min-height: 60px; font-size: 0.9rem; color: #ccc; }

.input-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; }
.color-palette { display: flex; gap: 8px; }
.color-opt { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: 0.2s; }
.color-opt.active { border-color: var(--primary); transform: scale(1.1); }

.add-btn { background: var(--primary); border: none; padding: 6px 16px; border-radius: 4px; font-weight: bold; cursor: pointer; }

.notes-grid { column-count: 2; column-gap: 15px; }
.note-card { 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    break-inside: avoid; 
    position: relative; 
    border: 1px solid rgba(255,255,255,0.05); 
    transition: transform 0.2s;
}
.note-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.note-card h4 { margin: 0 0 8px 0; font-size: 1rem; }
.note-card p { font-size: 0.9rem; color: #ddd; margin: 0; white-space: pre-wrap; }
.note-card .meta { font-size: 0.7rem; color: rgba(255,255,255,0.3); margin-top: 12px; }

.note-delete { position: absolute; top: 10px; right: 10px; cursor: pointer; opacity: 0; transition: 0.2s; }
.note-card:hover .note-delete { opacity: 1; }