/* ===================================================================== */
/*         Estilos Inspirados en la "Blood Sugar Log App"                */
/* ===================================================================== */

/* Variables de Color para fácil personalización */
:root {
    --bg-outer: #fff5f5; /* Blanco con un toque de rosa */
    --bg-app-start: #2a2141; /* Indigo oscuro */
    --bg-app-end: #5c255c;   /* Magenta/Púrpura oscuro */
    --input-bg: rgba(0, 0, 0, 0.2); /* Fondo de input de vidrio */
    --input-border: rgba(255, 255, 255, 0.15);
    --accent-glow-red: #ff4d6d;  /* Rojo/Coral para el brillo del contenedor */
    --accent-glow-green: #70e0c1; /* Verde menta para el brillo del botón */
    --accent-button-bg: #ff6b6b; /* Color coral del botón "EASY" */
    --text-primary: #f8fafc;
    --text-secondary: rgba(248, 250, 252, 0.6);
    --text-glow-cyan: #90e0ef; /* Cian pálido para el brillo del título */
}


/* General Body Styles */
body {
    font-family: 'Inter', 'Poppins', sans-serif;
    overflow-x: hidden;
    background-color: var(--bg-outer);
    color: var(--text-primary);
}

/* Font Imports */
h1, h2, h3, .font-orbitron {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* Background Animations - Para el contenedor principal de la app */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient-shift {
    background: linear-gradient(-45deg, var(--bg-app-start), var(--bg-app-end));
    background-size: 400% 400%;
    animation: gradient-shift 20s ease infinite;
}

/* Pulse Glow - Adaptado para el brillo rojo del contenedor */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 30px 5px rgba(255, 77, 109, 0.5); }
    50% { box-shadow: 0 0 60px 15px rgba(255, 77, 109, 0.8); }
    100% { box-shadow: 0 0 30px 5px rgba(255, 77, 109, 0.5); }
}

.animate-pulse-glow {
    animation: pulse-glow 5s infinite alternate;
}

/* Text Animations (sin cambios) */
@keyframes fade-in-up { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { animation: fade-in-up 1s ease-out forwards; }


/* Card Styles - Para el contenedor del formulario "Add New" */
.glass-effect {
    background: rgba(42, 33, 65, 0.4); /* Un fondo ligeramente más sólido que los inputs */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px; /* Esquinas muy redondeadas */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Unificamos .feature-card con .glass-effect */
.feature-card {
    background: rgba(42, 33, 65, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
}

/* Text Style - Para el título "Add New" con brillo */
.text-glow {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--text-glow-cyan);
}

/* Button Styles */
/* Botón principal "EASY" con brillo verde */
.btn-primary {
    border-radius: 9999px;
    padding: 0.8rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-primary);
    background-color: var(--accent-button-bg);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 35px var(--accent-glow-green), 0 0 50px rgba(112, 224, 193, 0.5);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 45px var(--accent-glow-green), 0 0 70px rgba(112, 224, 193, 0.7);
}

/* Botón de cerrar 'X' */
.btn-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
    color: var(--text-secondary);
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-close:hover {
    background-color: rgba(0,0,0,0.5);
    color: var(--text-primary);
}

/* Form Input Styles - Con efecto de vidrio esmerilado */
input[type="text"],
input[type="email"],
textarea,
.form-select { /* Clase genérica para select/dropdown */
    background-color: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid var(--input-border);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    font-size: 1rem;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
.form-select:focus {
    border-color: var(--text-glow-cyan);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 0 15px rgba(144, 224, 239, 0.4);
    background-color: rgba(0, 0, 0, 0.3);
    outline: none;
}