body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
    position: relative;
}
/* Background image with blur effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1455390582262-044cdead277a?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    z-index: -1;
}

/* Transparent overlay (to improve readability) */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

/* Dark mode adjustments */
body.dark-mode::after {
    background-color: rgba(0, 0, 0, 0.7);
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
h1 {
    align-items: center;
    font-size: 2rem;
    color: #333;}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
#profile-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
    }

.hidden {
    display: none;
}

#profile-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.form-group {
    margin-bottom: 15px;
}

label {
display: block;
margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#save-profile-btn {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#save-profile-btn:hover {
    background-color: #218838;

}
#profile-btn{
    background-color: #4CAF50;
    color: white;
}

#add-btn {
    background-color: #4CAF50;
    color: white;
}

#theme-btn {
    background-color: #555;
    color: white;
}
#logout-btn {
    background-color: #4CAF50;
    color: white;
}

#search {
    padding: 8px;
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    min-height: 100px;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#save-btn {
    background-color: #2196F3;
    color: white;
}

#cancel-btn {
    background-color: #f44336;
    color: white;
}

.entries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.entry-card {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background-color: #fafafa;
}

.entry-card h3 {
    margin: 0 0 0.5rem;
}

.entry-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.entry-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-right: 0.5rem;
}
.entry-details {
    margin-top: 2rem;
    padding: 1rem;
    border-top: 2px solid #ccc;
    background-color: #f5f5f5;
}

.entry-full h2 {
    margin-top: 0;
}

.entry-full p {
    margin: 0.5rem 0;
}

.edit-btn {
    background-color: #FFC107;
}

.delete-btn {
    background-color: #f44336;
    color: white;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #222;
    color: #eee;
}

body.dark-mode .form-container,
body.dark-mode .entry-card {
    background-color: #333;
    color: #eee;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: #444;
    color: #eee;
    border-color: #555;
}
footer {
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid #ccc;
    background-color: #f8f8f8;
    font-size: 0.9rem;
    color: #444;
    transition: background-color 0.3s, color 0.3s;
}

footer p {
    margin: 0.3rem 0;
}
body.dark-mode footer {
    background-color: #222;
    color: #ccc;
    border-top: 1px solid #444;
} 
footer .social-links {
    margin-top: 0.5rem;
}

footer .social-links a {
    margin: 0 0.5rem;
    color: #444;
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s;
}

footer .social-links a:hover {
    color: #0077cc;
}

#back-to-top {
    margin-top: 1rem;
    background: #0077cc;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#back-to-top:hover {
    background: #005fa3;
}

/* Dark mode adjustments */
body.dark-mode footer {
    background-color: #222;
    color: #ccc;
    border-top: 1px solid #444;
}

body.dark-mode .social-links a {
    color: #ccc;
}

body.dark-mode .social-links a:hover {
    color: #66ccff;
}

body.dark-mode #back-to-top {
    background: #555;
    color: white;
}

body.dark-mode #back-to-top:hover {
    background: #777;
}
