/* Estilos generales para la aplicación de Estaciones Meteorológicas */

/* Estilos para el body y layout general */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Estilos para el contenedor principal */
.container {
    padding: 20px;
}

/* Estilos para las cards */
.card {
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: none;
    overflow: hidden;
}

/* Estilos para el header de las cards */
.card-header {
    background: linear-gradient(135deg, #A84332 0%, #C67F4E 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

/* Estilos para el body de las cards */
.card-body {
    padding: 30px;
}

/* Estilos para botones */
.btn {
    border-radius: 8px;
    font-weight: bold;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2F5D8C 0%, #C67F4E 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #244a70 0%, #a86a42 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Estilos para inputs */
.form-control {
    border-radius: 8px;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2F5D8C;
    box-shadow: 0 0 0 0.2rem rgba(47, 93, 140, 0.25);
}

.form-floating > label {
    padding-left: 15px;
}

/* Estilos para formularios */
.input-group {
    margin-bottom: 20px;
}

/* Estilos para modales */
.modal-content {
    border-radius: 15px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #A84332 0%, #C67F4E 100%);
    color: white;
    border: none;
}

/* Estilos para tablas */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.table-hover tbody tr:hover {
    background-color: rgba(47, 93, 140, 0.05);
}

/* Estilos para la barra de navegación */
.navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 10px 15px !important;
}

/* Estilos para los spinners */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Estilos para las alertas */
.alert {
    border-radius: 8px;
    border: none;
}

/* Estilos para los tooltips */
.tooltip-inner {
    border-radius: 6px;
    padding: 8px 12px;
}

/* Estilos para el footer */
.footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

/* Estilos para el pie de página del dashboard */
.footer-pie {
    position: fixed;
    bottom: 0;
    left: 250px; /* Ancho del sidebar */
    right: 0;
    background-color: white;
    border-top: 1px solid #dee2e6;
    z-index: 1000;
    font-size: 14px;
    color: #868686;
}

.text-desarrollador {
    color: #868686;
    font-size: 14px;
}

.whatsapp-link {
    color: #25D366; /* Color oficial de WhatsApp */
}

.whatsapp-link:hover {
    color: #128C7E; /* Color de WhatsApp más oscuro en hover */
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
    .footer-pie {
        left: 0;
        font-size: 12px;
    }

    .text-desarrollador {
        font-size: 12px;
        display: block;
        margin-bottom: 5px;
    }
}

/* Estilos para las imágenes de cámaras */
.camera-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    object-fit: contain;
}

/* Estilos específicos para la página de login */
.login-body-page {
    background: linear-gradient(135deg, #A84332 0%, #C67F4E 50%, #2F5D8C 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: white;
}

.login-header {
    background: linear-gradient(135deg, #A84332 0%, #C67F4E 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-body {
    padding: 40px;
}

.btn-login {
    background: linear-gradient(135deg, #2F5D8C 0%, #C67F4E 100%);
    border: none;
    padding: 12px;
    font-weight: bold;
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

/* Estilos para el sidebar */
.sidebar {
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #A84332 0%, #C67F4E 100%);
    color: white;
    width: 250px;
    overflow-y: auto;
    box-shadow: 3px 0 10px rgba(0,0,0,0.1);
}

/* Clases de fondo para menú activo */
.bg-active-menu {
    background-color: rgba(174, 79, 56, 0.64) !important;
    --bs-bg-opacity: 1;
}

/* Clase para el cuerpo del carrusel */
.bodycarrusel {
    padding: 0 !important;
}

/* Clase para el header del carrusel */
.headercarrusel {
    background: #fff !important;
    color: #000 !important;
}

.main-content {
    margin-left: 250px;
    min-height: 100vh;
    padding: 20px;
}

/* Estilos para el dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2F5D8C;
}

.stat-title {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Estilos para las tarjetas de estadísticas del dashboard principal */
.card-stats {
    cursor: pointer;
}

/* Estilos para la galería de imágenes */
.gallery-container {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));*/
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-info {
    padding: 15px;
}

.gallery-title {
    margin: 0;
    font-weight: bold;
    color: #343a40;
}

.gallery-date {
    margin: 5px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .login-body {
        padding: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
}