/* styles.css */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 20px;
    background: #f4f4f9;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background: #2C3E50;
    color: #ECF0F1;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    color: #2C3E50;
    font-size: 2.5rem;
    margin: 0;
}

body.dark-mode header h1 {
    color: #ECF0F1;
}

header p {
    color: #666;
    font-size: 1.2rem;
    margin: 0;
}

body.dark-mode header p {
    color: #BDC3C7;
}

#themeToggle {
    background: #3498DB;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

#themeToggle:hover {
    background: #2980B9;
    transform: scale(1.05);
}

body.dark-mode #themeToggle {
    background: #1ABC9C;
}

body.dark-mode #themeToggle:hover {
    background: #16A085;
}

textarea {
    width: 90%;
    max-width: 500px;
    height: 120px;
    margin-bottom: 10px;
    padding: 10px;
    box-sizing: border-box;
    border: 2px solid #BDC3C7;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

body.dark-mode textarea {
    background: #34495E;
    color: #ECF0F1;
    border-color: #1ABC9C;
}

textarea:focus {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#charCount {
    text-align: right;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

body.dark-mode #charCount {
    color: #BDC3C7;
}

button {
    width: 90%;
    max-width: 500px;
    background-color: #3498DB;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s;
}

button:hover {
    background-color: #2980B9;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

body.dark-mode button {
    background-color: #1ABC9C;
}

body.dark-mode button:hover {
    background-color: #16A085;
}

#entriesContainer {
    width: 90%;
    max-width: 500px;
    margin-top: 20px;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body.dark-mode #entriesContainer {
    background: #34495E;
    color: #ECF0F1;
}

.entry {
    background: #ECF0F1;
    border: 1px solid #BDC3C7;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    animation: fadeIn 0.5s ease-out;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .entry {
    background: #2C3E50;
    border-color: #1ABC9C;
    color: #ECF0F1;
}

.entry:hover {
    background: #DDEFF1;
    cursor: pointer;
}

body.dark-mode .entry:hover {
    background: #34495E;
}

.entry button {
    background: #E74C3C;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.entry button:hover {
    background: #C0392B;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

body.dark-mode footer {
    color: #BDC3C7;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }

    textarea, button {
        width: 100%;
    }
}
