/* Variables */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #2ecc71;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --error-color: #e74c3c;
    --water-color: rgba(52, 152, 219, 0.7);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 50%, #207cca 51%, #7db9e8 100%);
    color: var(--light-color);
    min-height: 100vh;
    overflow-x: hidden;
}

.water-background {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: hidden;
}

.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0.5;
    animation: rise var(--time) var(--delay) infinite ease-in;
    width: var(--size);
    height: var(--size);
    left: var(--position);
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }
    50% {
        transform: translateX(var(--distance));
    }
    100% {
        bottom: 100vh;
        transform: translateX(0);
    }
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    color: var(--dark-color);
    text-align: center;
}

.logo {
    margin-bottom: 2rem;
}

.logo svg {
    width: 60px;
    height: 60px;
    fill: var(--primary-color);
    margin-bottom: 1rem;
}

.logo h1 {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

/* Form Elements */
.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1.5rem;
}

.btn-login:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Links and Error */
.links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.error {
    color: var(--error-color);
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .logo svg {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .water-background {
        padding: 1rem;
    }
    
    .login-container {
        padding: 1.25rem;
    }
    
    .input-group input,
    .btn-login {
        padding: 10px 12px;
    }
}
/* Password Strength Meter */
.password-strength {
    margin-top: 0.5rem;
}

.strength-meter {
    height: 5px;
    background: #ddd;
    border-radius: 3px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

#passwordHelp {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* Confirm Message */
#confirmMessage {
    font-size: 0.8rem;
    margin-top: 0.3rem;
}
/* Estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

.water-background {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    overflow: hidden;
}

.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(5px);
    animation: rise var(--time) var(--delay) infinite;
    left: var(--position);
    width: var(--size);
    height: var(--size);
    opacity: 0;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        bottom: var(--distance);
        transform: translateX(100px);
        opacity: 0;
    }
}

/* Contenedor del dashboard */
.dashboard-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: white;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Selector de dirección */
.address-selector {
    margin-bottom: 2rem;
}

.address-selector label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.address-selector select {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    color: #333;
    cursor: pointer;
}

/* Tarjetas de resumen */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.card-content p {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.card-content small {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Secciones del dashboard */
.dashboard-section {
    margin-bottom: 2rem;
}

.dashboard-section h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.dashboard-section h2 svg {
    fill: white;
}

.table-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
}

thead {
    background: rgba(255, 255, 255, 0.2);
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Botón de cerrar sesión */
.logout-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    th, td {
        padding: 0.75rem;
    }
}
/* Del archivo style.css */
.water-background {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.dashboard-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: white;
    text-align: center; /* Añadido para centrar el mensaje */
}