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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    background-image: url('https://picsum.photos/1920/1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.container {
    padding: 20px;
}

.add-note {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.add-note:hover {
    background-color: rgba(76, 175, 80, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

.notes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 60px 20px 20px;
}

.note {
    position: absolute;
    width: 300px;
    min-height: 280px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    user-select: none;
    display: flex;
    flex-direction: column;
}

.note-header {
    height: 20px;
    background-color: #f5f5f5;
    border-radius: 10px 10px 0 0;
    cursor: move;
}

.note-content {
    flex-grow: 1;
    padding: 15px;
    outline: none;
    border: none;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    background: transparent;
    cursor: text;
    user-select: text;
}

.note-footer {
    padding: 8px 15px;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.note-time {
    color: #888;
}

.delete-note {
    background: none;
    border: none;
    color: #ff5252;
    cursor: pointer;
    font-size: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
}

.delete-note:hover {
    background-color: rgba(255, 82, 82, 0.1);
    transform: scale(1.1);
}

.note.dragging {
    opacity: 0.8;
    z-index: 1000;
    cursor: grabbing;
}

.delete-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    text-align: center;
    min-width: 300px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.modal-button {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.confirm-delete {
    background-color: #ff5252;
    color: white;
}

.confirm-delete:hover {
    background-color: #ff1744;
}

.cancel-delete {
    background-color: #e0e0e0;
    color: #333;
}

.cancel-delete:hover {
    background-color: #bdbdbd;
}