body, button, textarea {
    cursor: url('https://cdn.custom-cursor.com/db/6014/32/cursor.png'), auto;
}

body {
    font-family: 'Courier New', monospace;
    background: #fef9e7;
    color: #1a1a1a;
    padding: 20px;
    max-width: 800px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

/* Animated floating shapes */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 228, 196, 0.4), transparent 60%),
                radial-gradient(circle at 80% 40%, rgba(255, 218, 185, 0.4), transparent 60%),
                radial-gradient(circle at 50% 80%, rgba(255, 222, 173, 0.4), transparent 60%);
    background-size: 200% 200%;
    animation: floatBackground 15s infinite alternate ease-in-out;
    z-index: -1;
}

@keyframes floatBackground {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(-50px, -50px) scale(1.2); }
}

h1 {
    text-align: center;
    font-size: 2em;
    color: #2c2c2c;
    margin-bottom: 20px;
}
textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    font-size: 16px;
    background: #fffdf6;
    border: 2px solid #ccc;
    border-radius: 5px;
    color: #1a1a1a;
    caret-color: #1a1a1a;
    resize: none;
}
button {
    background: #1a1a1a;
    color: #fef9e7;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    margin: 5px 2px;
}
button:hover {
    background: #333;
}
.entries {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}
.card {
    background: #fffdf6;
    border: 2px solid #1a1a1a;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    max-height: 100px;
    overflow: hidden;
    transition: 0.3s;
}
.card.expanded {
    max-height: 500px;
    overflow-y: auto;
}
.date {
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}
.actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
}
.actions button {
    padding: 4px 8px;
    font-size: 12px;
    background: #fef9e7;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
}
.actions button:hover {
    background: #ddd;
}
/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}
.modal-box {
    background: #fffdf6;
    padding: 20px;
    width: 80%;
    max-height: 80%;
    overflow: auto;
    border-radius: 8px;
    border: 2px solid #1a1a1a;
    position: relative;
}
.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    cursor: pointer;
    font-size: 18px;
}
#leaveModal .modal-box {
    text-align: center;
    font-size: 16px;
}
#leaveModal button {
    margin: 10px;
    padding: 8px 15px;
}
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.modal {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
