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

body {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px 10px;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f5af19, #f12711);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-icon {
    -webkit-text-fill-color: initial;
}

.subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    margin-top: 6px;
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #f5af19, #f12711);
    color: #fff;
    box-shadow: 0 4px 15px rgba(241, 39, 17, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 39, 17, 0.45);
}

.btn-danger {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-danger:hover {
    background: rgba(255, 59, 48, 0.2);
    color: #ff6b6b;
    border-color: rgba(255, 59, 48, 0.3);
}

.note-count {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Container */
#container {
    position: relative;
    min-height: 60vh;
    padding: 20px;
}

/* Notes */
.note {
    position: absolute;
    width: 260px;
    min-height: 180px;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    cursor: move;
    transition: box-shadow 0.2s ease, transform 0.1s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: noteIn 0.3s ease;
}

@keyframes noteIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.note:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.note .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.06);
}

.note .header .note-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.note .delete {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.note .delete:hover {
    background: rgba(255, 59, 48, 0.2);
    color: #e53935;
}

.note .content {
    flex: 1;
    padding: 14px;
    font-size: 0.92rem;
    line-height: 1.6;
    outline: none;
    color: rgba(0, 0, 0, 0.8);
    min-height: 100px;
    word-wrap: break-word;
}

.note .content:empty::before {
    content: "Type your note here...";
    color: rgba(0, 0, 0, 0.3);
}

.note .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.35);
}

/* Color picker */
.color-picker {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    overflow: hidden;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

/* Color presets */
.color-presets {
    display: flex;
    gap: 5px;
    align-items: center;
}

.color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.15s ease;
    padding: 0;
    background: none;
}

.color-dot:hover {
    transform: scale(1.2);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.3);
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Credits */
.credits {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
}

.credits a {
    color: #f5af19;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.credits a:hover {
    color: #f12711;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.6rem;
    }

    .note {
        width: 220px;
        min-height: 150px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}
