body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    background-color: var(--bg-color);
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

.theme-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px;
}

.theme-selector p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.theme-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.container {
    background: var(--container-bg-color);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 700px;
    margin: 20px;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 2rem;
}

.entry-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

#entry {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--entry-bg-color);
    color: var(--text-color);
}

input[type="file"] {
    margin-bottom: 10px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background-color: var(--button-bg-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--button-hover-bg-color);
}

.entries {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.entry {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: var(--entry-container-bg-color);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.entry:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.entry-date {
    font-size: 0.9rem;
    color: var(--date-color);
}

.entry-text {
    margin-top: 10px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.entry-image {
    margin-top: 10px;
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.delete-btn:hover {
    color: #c82333;
}

/* Temas */
:root {
    --bg-color: #f4f4f4;
    --container-bg-color: #ffffff;
    --text-color: #333333;
    --entry-bg-color: #ffffff;
    --button-bg-color: #007bff;
    --button-hover-bg-color: #0056b3;
    --entry-container-bg-color: #f9f9f9;
    --date-color: #666666;
}

body.dark {
    --bg-color: #121212;
    --container-bg-color: #1e1e1e;
    --text-color: #e0e0e0;
    --entry-bg-color: #1e1e1e;
    --button-bg-color: #ff5722;
    --button-hover-bg-color: #e64a19;
    --entry-container-bg-color: #2c2c2c;
    --date-color: #bdbdbd;
}

body.blue {
    --bg-color: #e3f2fd;
    --container-bg-color: #ffffff;
    --text-color: #0d47a1;
    --entry-bg-color: #ffffff;
    --button-bg-color: #1e88e5;
    --button-hover-bg-color: #1565c0;
    --entry-container-bg-color: #e3f2fd;
    --date-color: #0d47a1;
}

body.green {
    --bg-color: #e8f5e9;
    --container-bg-color: #ffffff;
    --text-color: #2e7d32;
    --entry-bg-color: #ffffff;
    --button-bg-color: #43a047;
    --button-hover-bg-color: #388e3c;
    --entry-container-bg-color: #e8f5e9;
    --date-color: #2e7d32;
}