/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Body Styles */
body {
    background: #88abff;
    padding: 20px;
}

/* Main Wrapper */
#wrapped {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
    max-width: 1200px;
    margin: 0 auto; /* Center content */
    list-style: none;
    padding: 0;
}

/* Add New Note */
.add-box {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.add-box:hover {
    transform: scale(1.05);
}

.add-box .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 80px;
    font-size: 40px;
    color: #88abff;
    border-radius: 50%;
    border: 2px dashed #88abff;
    margin-bottom: 10px;
}

.add-box p {
    color: #555;
    font-size: 16px;
    font-weight: bold;
}

/* Notes */
.notes {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
}

.notes:hover {
    transform: scale(1.05);
}

.notes .title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.notes .content {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.notes .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.notes .date {
    font-size: 12px;
    color: #999;
}

.notes .settings-icon {
    font-size: 18px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.notes .settings-icon:hover {
    color: #555;
}

.bottom .menu {
    position: absolute;
    bottom: -70px; /* Position the menu below the icon */
    right: 0;
    display: none; /* Initially hidden */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 5px 0;
    z-index: 10;
}

.bottom .menu li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.bottom .menu li:hover {
    background: #f0f0f0;
    color: #555;
}

.bottom:hover .menu {
    display: block;
}

/* Popup Box Styles */
.popup-box {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup {
    position: relative;
    max-width: 400px;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.popup .content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popup header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    /* background: #88abff; */
    color: black;
    border-radius: 8px;
}

.popup header p {
    margin: 0;
    font-weight: bold;
}

.popup header i {
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.popup header i:hover {
    color: #333;
}

.popup form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup form input,
.popup form textarea {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.popup form input:focus,
.popup form textarea:focus {
    border-color: #88abff;
}

.popup form button {
    padding: 10px;
    background-color: #88abff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup form button:hover {
    background-color: #4b79a1;
}
