body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f5f5f5;
  color: #333;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

.site-header .left {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: 15px;
}

.top-links a {
  margin-left: 15px;
  text-decoration: none;
  color: #0066cc;
  font-weight: bold;
}

.entries-container {
  padding: 20px;
  max-width: 800px;
  margin: auto;
}

.entry-card {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.entry-img {
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.fecha {
  color: #777;
  font-size: 0.9em;
}

.paginacion {
  text-align: center;
  margin-top: 30px;
}

.paginacion a {
  background: #0066cc;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  margin: 0 5px;
  text-decoration: none;
}

.paginacion span {
  display: inline-block;
  margin: 0 10px;
}

.footer {
  background: #ffffff;
  padding: 15px;
  text-align: center;
  font-size: 0.9em;
  color: #666;
  border-top: 1px solid #ddd;
}
/* Estilos para mensajes */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 16px 0;
    border: 1px solid transparent;
    animation: slideIn 0.3s ease-out;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    font-size: 15px;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    font-size: 16px;
    font-weight: 600;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    font-size: 15px;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    font-size: 15px;
}

/* Para hacer los iconos más grandes */
.alert::before {
    margin-right: 10px;
    font-size: 18px;
}

.alert-error::before {
    content: '❌';
}

.alert-success::before {
    content: '🎉';
}

.alert-warning::before {
    content: '⚠️';
}

.alert-info::before {
    content: 'ℹ️';
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras al formulario */
#message {
    min-height: 60px;
    display: flex;
    align-items: center;
}

/* Estilo para input con error */
.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
}

/* Estados del botón */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}