:root {
    --b: #f1f5f9;
    --t: #334155;
    --w: #fff;
    --a: #6366f1
}

body {
    background: #e5e7eb;
    min-height: 100vh;
    padding: 40px 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center
}

* {
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif
}

.top-bar {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, .9);
    padding: 20px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05)
}

h1 {
    color: #1e293b;
    margin: 0
}

.btn-add {
    background: var(--a);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer
}

.btn-add:hover {
    background: #4f46e5
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1100px
}

.note-card {
    background: #fff9c4;
    padding: 24px;
    height: 280px;
    border-radius: 2px;
    box-shadow: 2px 5px 10px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    border-top: 10px solid rgba(0, 0, 0, .05)
}

.note-card:hover {
    z-index: 10;
    cursor: move;
    box-shadow: 5px 10px 20px rgba(0, 0, 0, .15)
}

.pink {
    background: #fce4ec
}

.blue {
    background: #e3f2fd
}

.green {
    background: #e8f5e9
}

.text-area {
    flex: 1;
    background: 0 0;
    border: none;
    outline: none;
    resize: none;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #455a64
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    border-top: 1px dashed rgba(0, 0, 0, .1);
    padding-top: 15px
}

.color-dots {
    display: flex;
    gap: 5px
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, .1)
}

.dot.yellow {
    background: #fff9c4
}

.dot.pink {
    background: #fce4ec
}

.dot.blue {
    background: #e3f2fd
}

.btn-del {
    background: 0 0;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: .5
}

.btn-del:hover {
    opacity: 1
}

.designer-copyright {
    margin-top: auto;
    padding: 20px;
    font-size: .8rem;
    color: #94a3b8;
    font-weight: 500
}

.designer-copyright span {
    color: #3b82f6;
    font-weight: 700
}

.action-buttons {
    display: flex;
    gap: 10px
}

.btn-clear {
    background: 0 0;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-weight: 600
}

.search-input {
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-left: 20px;
    outline: none
}

.note-info {
    font-size: .6rem;
    margin-top: 10px;
    opacity: .5
}

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

.btn-download {
    border: none;
    background: 0 0;
    cursor: pointer;
    font-size: 1rem;
    opacity: .5
}

.btn-download:hover {
    opacity: 1
}

.no-match-msg {
    grid-column: 1/-1;
    text-align: center;
    opacity: .5
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    .top-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        margin-bottom: 30px;
        gap: 15px;
        border-radius: 15px;
    }

    .top-bar h1 {
        text-align: center;
        font-size: 1.8rem;
    }

    .search-input {
        margin-left: 0 !important;
        width: 100%;
        padding: 12px 15px;
        font-size: 1rem;
        box-sizing: border-box;
    }

    .action-buttons {
        justify-content: center;
        width: 100%;
        gap: 12px;
    }

    .btn-add, .btn-clear {
        flex: 1;
        text-align: center;
        padding: 12px;
        font-size: 1rem;
    }

    .notes-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .notes-grid {
        grid-template-columns: 1fr;
    }
    
    .note-card {
        height: auto;
        min-height: 240px;
    }
}