@font-face {
    font-family: 'sofiapro';
    src: url('../fonts/sofiapro-400.woff2') format('opentype');
}

body, html {
  font-family: 'sofiapro';
  margin: 0;
  padding: 0;
  height: 100%;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

header {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

h1 {
    margin: 0;
    font-size: 1.5rem;
}

.logout-button {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    margin-left: 30px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.logout-button:hover {
    background-color: white;
    color: #007bff;
}

#admin-profile-selector-container {
    width: 100%;
}

#admin-profile-selector {
    width: 100%;
    padding: 5px;
    border-radius: 5px;
    border: none;
}



.filter-button .fa-sliders-h, .fa-ticket-alt {
  font-size: 24px; /* Tamaño del icono */
  color: #333; /* Color del icono */

}

.filter-icon {
  width: 24px; /* Ajusta el tamaño del icono según sea necesario */
  height: 24px;
}

header h1 {
  font-size: 1.4rem;
  margin: 0;
  text-align: left; /* Alineación del título a la izquierda */
}

.raffles-button, .filter-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  margin: 0 10px;
  padding: 10px; /* Aumentar el padding para que el botón sea más grande */
  border-radius: 50%; /* Hace que el botón sea redondo */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px; /* Ancho fijo para el botón */
  height: 45px; /* Altura fija para el botón */
  background-color: #f0f0f0;  
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Añade una sombra suave */
}




/* Títulos */
h2, h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
}


.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Botón de filtro alineado a la derecha */
}

main {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px;
  background-color: white;
}

#content{
  background-color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.bottom-nav {
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-bottom: 2px solid #007aff;
    box-shadow: 0px 20px 10px rgba(0, 0, 0, 0.2);
}

.nav-btn {
    background-color: transparent;
    border: none;
    color: #007aff;
    font-size: 30px; /* Tamaño de los iconos en la barra de navegación */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav-btn i {
    margin-bottom: 5px;
}

.nav-btn.active {
    color: #ff9500; /* Color cuando el botón está activo */
}


/* Offer List Styles */
#offer-list {
    margin-top: 20px;
}

.news-item img{
    width:  200px;
    height: 200px;
}

.offer-item, .news-item {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fafafa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.offer-item h3, .news-item h3 {
    margin: 0;
    color: #007bff;
}

.offer-item p, .news-item p {
    margin: 10px 0;
    color: #555;
}

.offer-date {
    font-weight: bold;
    color: #333;
}

.offer-actions {
    margin-top: 10px;
}

/* Ocultar el contenedor de pantalla completa por defecto */
.hidden {
    display: none;
}

.fullscreen-view.active {
    display: flex;
}

/* Vista de Pantalla Completa */
.fullscreen-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: none; /* Oculto por defecto */
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
}

.fullscreen-view.active {
    display: flex;
}

/* Encabezado de la Vista */
.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #007BFF;
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* Espaciado debajo del encabezado */
}

.fullscreen-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Estilos generales del formulario */
.fullscreen-form {
    padding: 20px;
    background-color: #f9f9f9; /* Fondo claro para el formulario */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra ligera */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fullscreen-form label {
    margin-top: 15px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.fullscreen-form input[type="text"],
.fullscreen-form input[type="url"],
.fullscreen-form input[type="date"],
.fullscreen-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}

.fullscreen-form textarea {
    resize: vertical;
    min-height: 100px; /* Altura mínima para el área de texto */
}

.fullscreen-form input[type="checkbox"] {
    padding: 10px;
}

.fullscreen-form .checkbox-group {
    align-items: center;

}


/* Responsividad */
@media (max-width: 600px) {
    .fullscreen-header h2 {
        font-size: 1.5rem;
    }

    .close-btn {
        font-size: 1.5rem;
    }

    .fullscreen-form {
        padding: 20px;
    }

    .save-btn {
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 1.2rem;
    }
}


/* Estilo básico para todos los botones */
button {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 5px 0;
}

/* Botón primario - Usado para acciones importantes como "Añadir Oferta" */
button.add-btn {
    background-color: #007BFF;
    color: #fff;
    margin-bottom: 15px;
}

button.add-btn:hover {
    background-color: #0056b3;
}

button.add-btn:active {
    background-color: #004494;
    transform: scale(0.98);
}

/* Botón secundario - Usado para acciones como "Editar", "Clonar", etc. */
button.secondary-btn {
    background-color: #6c757d;
    color: #fff;
}

button.secondary-btn:hover {
    background-color: #5a6268;
}

button.secondary-btn:active {
    background-color: #545b62;
    transform: scale(0.98);
}

/* Botón de advertencia - Usado para acciones destructivas como "Eliminar" */
button.danger-btn {
    background-color: #dc3545;
    color: #fff;
}

button.danger-btn:hover {
    background-color: #c82333;
}

button.danger-btn:active {
    background-color: #bd2130;
    transform: scale(0.98);
}

/* Botones dentro de listas o tablas - Tamaño reducido y más compactos */
button.list-btn {
    font-size: 1rem;
    padding: 8px 16px;
    margin: 2px 5px;
    border-radius: 5px;
}

/* Iconos opcionales en los botones */
button i {
    margin-right: 8px;
}



/* Estilo básico para la sección del perfil */
#profile {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

/* Encabezado de la sección */
#profile h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Estilos generales del formulario */
#profile-form {
    display: flex;
    flex-direction: column;
}

#profile-form label {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: bold;
}

#profile-form input[type="text"],
#profile-form input[type="email"],
#profile-form input[type="url"],
#profile-form input[type="tel"],
#profile-form input[type="instagram-url"],
#profile-form input[type="imageUrl"],
#profile-form textarea,
#profile-form select {
    padding: 12px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 2px solid #ccc;
    margin-bottom: 20px;
    box-sizing: border-box;
    width: 100%;
    transition: border-color 0.3s ease;
}

#profile-form input[type="text"]:focus,
#profile-form input[type="email"]:focus,
#profile-form input[type="url"]:focus,
#profile-form input[type="tel"]:focus,
#profile-form input[type="instagram-url"]:focus,
#profile-form input[type="imageUrl"]:focus,
#profile-form textarea:focus,
#profile-form select:focus {
    border-color: #007BFF;
    outline: none;
}

#profile-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Estilo del botón de actualización */
#profile-form button[type="submit"] {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#profile-form button[type="submit"]:hover {
    background-color: #218838;
}

#profile-form button[type="submit"]:active {
    background-color: #1e7e34;
    transform: scale(0.98);
}

/* Responsividad */



/* Estilo para el botón de logout */
.logout-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.logout-button i {
    margin-right: 8px;
}

.logout-button:hover {
    background-color: #c82333;
}

.logout-button:active {
    background-color: #bd2130;
    transform: scale(0.98);
}

.badge {
    display: inline-flex;
    padding: 0.3em 0.6em;
    border-radius: 0.25em;
    color: white;
    font-size: 0.85em;
      align-items: center;
  justify-content: right;
}

.badge-approved {
    background-color: green;
}

.badge-pending {
    background-color: orange;
}

.badge-draft {
    background-color: orange;
}

.badge-rejected {
    background-color: red;
}

.offer-item button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.date-selection {
    text-align: center;
    margin: 30px 0;
}

.date-picker {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

label {
    font-size: 18px;
}

input[type="date"] {
    padding: 10px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.button-primary {
    padding: 12px 24px;
    font-size: 18px;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

.button-primary:hover {
    background-color: #218838;
}
/* Date Selection */
.date-selection {
    text-align: center;
    margin-bottom: 20px;
}

.date-picker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.date-picker label {
    font-size: 16px;
    font-weight: bold;
}

.date-picker input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.button-primary {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button-primary:hover {
    background-color: #218838;
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background-color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.stat-card p {
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
}

/* Chart Container */
.chart-container {
    margin-top: 40px;
    text-align: center;
}

canvas {
    max-width: 100%;
    height: 400px;
}

/* Estilos para el selector de plantillas */
.template-select {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border-radius: 8px;
    border: 2px solid #ccc;
    margin-bottom: 20px;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    appearance: none; /* Elimina el estilo por defecto del navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.template-select:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.template-select:hover {
    border-color: #999;
}

/* Estilo para las opciones del select */
.template-select option {
    padding: 12px;
    font-size: 1rem;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 600px) {
    .template-select {
        font-size: 1rem;
        padding: 10px;
    }
}

/* Estilos para el contenedor de acciones de oferta */
.offer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.offer-actions .add-btn {
    flex: 0 0 auto; /* Evita que el botón se estire */
}

.offer-actions .template-select {
    flex: 1; /* Permite que el select ocupe el espacio restante */
    margin-left: 15px; /* Espacio entre el botón y el select */
}

.offer-actions {
    flex-direction: column;
    align-items: stretch;
}

.offer-actions .add-btn,
.offer-actions .template-select {
    width: 100%;
    margin-left: 0;
    margin-bottom: 10px;
}

.new-profile-button {
  margin-left: 10px;
  padding: 5px 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.new-profile-button:hover {
  background-color: #45a049;
}

/* Estilos para el contenedor del selector de perfiles */
#admin-profile-selector-container {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

/* Estilos para el selector de perfiles */
#admin-profile-selector {
  appearance: none;
  background-color: #f8f9fa;
  border: 2px solid #007bff;
  border-radius: 20px;
  padding: 8px 30px 8px 15px;
  font-size: 14px;
  color: #007bff;
  cursor: pointer;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23007bff' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

#admin-profile-selector:hover, #admin-profile-selector:focus {
  border-color: #0056b3;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Estilos para el botón de añadir perfil */
.new-profile-button {
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.new-profile-button:hover {
  background-color: #218838;
  transform: scale(1.1);
}

/* Ajustes para la barra superior */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 15px;
}

/* Ajustes para el botón de logout */
.logout-button {
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-button:hover {
  background-color: #c82333;
}

.logout-button i {
  margin-right: 5px;
}

.remaining-offers-container {
    background-color: #f0f8ff;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.remaining-offers-icon {
    font-size: 2rem;
    color: #007bff;
    margin-right: 15px;
}

.remaining-offers-content {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.remaining-offers-text {
    font-size: 1.1rem;
    color: #333;
    margin-right: 10px;
}

.remaining-offers-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    margin-right: 5px;
}

.remaining-offers-limit {
    font-size: 1rem;
    color: #666;
}

.remaining-news-container {
    background-color: #f0f8ff;
    border: 2px solid #007bff;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.remaining-news-icon {
    font-size: 2rem;
    color: #007bff;
    margin-right: 15px;
}

.remaining-news-content {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.remaining-news-text {
    font-size: 1.1rem;
    color: #333;
    margin-right: 10px;
}

.remaining-news-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    margin-right: 5px;
}

.remaining-news-limit {
    font-size: 1rem;
    color: #666;
}

.news-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.news-actions .add-btn {
    flex: 0 0 auto;
}

@media (max-width: 600px) {
    .news-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .news-actions .add-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Estilos para la página de registro */
.signup-container {
    margin: 0 auto;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.signup-container h2{
    font-size: 1.5em;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background-color: white;
    padding: 20px 0;

}

.form-section h3 {
    margin-top: 0;
    color: #343a40;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
}

.form-section h3 i {
    color: #007bff;
}


.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #495057;
}

.form-group  input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 10px;

}

.plan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.plan-option {
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-option:hover {
    background-color: #e9ecef;
}

.plan-option input[type="radio"] {
    display: none;
}

.plan-option label {
    display: block;
    cursor: pointer;
}

.plan-option.selected {
    background-color: #cce5ff;
}

.stripe-element {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

#card-errors {
    color: #dc3545;
    margin-top: 10px;
}

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

footer {
    text-align: center;
    margin-top: 20px;
    color: #6c757d;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .plan-options {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el historial de facturación */
.billing-history {
    margin-top: 2rem;
}

.billing-history table {
    width: 100%;
    border-collapse: collapse;
}

.billing-history th, .billing-history td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.billing-history th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.billing-history tr:nth-child(even) {
    background-color: #f9f9f9;
}

.billing-history a {
    color: #007bff;
    text-decoration: none;
}

.billing-history a:hover {
    text-decoration: underline;
}

/* Estilos para la pestaña de facturación */
#billing {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.billing-header h2 {
    color: #007bff;
    font-size: 24px;
}

.billing-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.summary-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex: 1;
    margin: 0 10px;
}

.summary-card h3 {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 10px;
}

.summary-card p {
    color: #007bff;
    font-size: 24px;
    font-weight: bold;
}

.billing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.billing-table th, .billing-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

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

.billing-table tr:last-child td {
    border-bottom: none;
}

.billing-table tr:hover {
    background-color: #f1f3f5;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-paid {
    background-color: #28a745;
    color: white;
}

.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.download-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #0056b3;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .billing-summary {
        flex-direction: column;
    }

    .summary-card {
        margin: 10px 0;
    }

    .billing-table {
        font-size: 14px;
    }
}

/* Estilos para la sección de facturación */
.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.current-plan {
    text-align: left;
}

.billing-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.summary-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.billing-table {
    width: 100%;
    border-collapse: collapse;
}

.billing-table th, .billing-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

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

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
}

.status-paid {
    background-color: #28a745;
    color: white;
}

.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.plan-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.plan-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    margin: 1rem 0;
}

.plan-features {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.plan-features li {
    margin-bottom: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-small {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 1rem;
}

/* Estilos para la sección de facturación */
.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}


.billing-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.summary-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.billing-table {
    width: 100%;
    border-collapse: collapse;
}

.billing-table th, .billing-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

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

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: bold;
}

.status-paid {
    background-color: #28a745;
    color: white;
}

.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.plan-option {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.plan-option:hover, .plan-option.selected {
    border-color: #007bff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.plan-option input[type="radio"] {
    display: none;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    margin: 1rem 0;
}

.plan-features {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.plan-features li {
    margin-bottom: 0.5rem;
}

.payment-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}


.form-group label {
    display: block;
    font-weight: bold;
}

.card-element {
    padding: 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
}

#card-errors {
    color: #dc3545;
    margin-top: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-small {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 1rem;
}

/* Estilos para el estado del cupón */
.offer-status {
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: capitalize;
}

.status-draft {
    background-color: #ffc107;
    color: #000;
}

.status-pending {
    background-color: #17a2b8;
    color: #fff;
}

.status-approved {
    background-color: #28a745;
    color: #fff;
}

/* Estilos para los botones de acción */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.save-btn, .save-and-review-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.save-btn {
    background-color: #007bff;
    color: white;
}

.save-and-review-btn {
    background-color: #28a745;
    color: white;
}

.save-btn:hover {
    background-color: #0056b3;
}

.save-and-review-btn:hover {
    background-color: #218838;
}

/* Ajuste en el encabezado de la vista completa */
.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#fullscreen-title {
    flex-grow: 1;
}

.offer-status {
    margin-right: 20px;
}

.offer-type-selector {
    justify-content: space-between;
    margin-bottom: 20px;
}

.offer-type-selector label {
    flex: 1;
    margin: 0 5px;
}

.offer-type-selector input[type="radio"] {
    display: none;
}

.offer-type-button {
    display: block;
    padding: 10px;
    text-align: center;
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.offer-type-selector input[type="radio"]:checked + .offer-type-button {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.offer-type-button i {
    margin-right: 5px;
}

#smart-offer-input {
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 20px;
}

#generate-smart-offer {
    margin-top: 10px;
}

/* Estilos para los campos de fecha */
.date-input-group {
    position: relative;
}

.date-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.date-input-wrapper input[type="date"] {
    width: 100%;
    padding: 10px;
    padding-right: 30px; /* Espacio para el icono */
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
}

.date-input-wrapper .fa-calendar-alt {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
    pointer-events: none; /* Permite hacer clic a través del icono */
}

/* Estilo para cuando el campo de fecha está enfocado */
.date-input-wrapper input[type="date"]:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Estilo para el calendario nativo del navegador (puede variar según el navegador) */
.date-input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.offer-type-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 -20px 30px -20px; /* Márgenes negativos para extender el ancho completo */
    padding: 20px;
    background: #f8f9ff;
}

.offer-type-option {
    width: 100%;
    position: relative;
    cursor: pointer;
}

.offer-type-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.offer-type-icon {
    font-size: 2em;
    color: #666;
    min-width: 40px;
    display: flex;
    justify-content: center;
}

.offer-type-content {
    flex: 1;
    min-width: 0; /* Evita que el contenido desborde */
}

.offer-type-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 1.1em;
}

.offer-type-description {
    font-size: 0.9em;
    color: #666;
    margin: 0;
    white-space: normal; /* Permite que el texto se ajuste */
    overflow-wrap: break-word; /* Rompe palabras largas si es necesario */
}

.offer-type-input:checked + .offer-type-card {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

.offer-type-input:checked + .offer-type-card .offer-type-icon {
    color: #007bff;
}

.offer-type-input:checked + .offer-type-card::before {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #007bff;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 480px) {
    .offer-type-selector {
        margin: 0 -15px 20px -15px;
        padding: 15px;
    }

    .offer-type-card {
        padding: 15px;
    }

    .offer-type-icon {
        font-size: 1.5em;
    }
}

/* Estilos para la sección de facturación */
.plan-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

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

.stat-icon {
    font-size: 2.0rem;
    color: #fff;
}

.stat-info h3 {
    color: #666;
    font-size: 1.2rem;
    margin: 0;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: bold;
    color: #2575fc;
}

.no-plan-message {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 2rem;
}

.no-plan-message h2 {
    color: #666;
    margin-bottom: 1rem;
}

.error-message {
    color: #dc3545;
    text-align: center;
    padding: 1rem;
    margin: 1rem;
}

/* Estilos para la sección de usuarios */
.profile-sections {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

.users-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.users-header h3 {
    margin: 0;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.user-action-btn {
    background: none;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 5px;
}

.change-password-btn {
    color: #2575fc;
}

.change-password-btn:hover {
    background: rgba(37, 117, 252, 0.1);
}

.delete-user-btn {
    color: #dc3545;
}

.delete-user-btn:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.no-users-message {
    text-align: center;
    color: #666;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Estilos para la previsualización de cupones */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.preview-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.close-preview {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.preview-container {
    margin-top: 20px;
}

.preview-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.preview-btn:hover {
    background-color: #218838;
}

.remaining-coupons-info {
    margin-bottom: 2rem;
    padding: 1rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    color: white;
    font-size: 1.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.stat-total {
    color: #999;
    font-size: 0.8rem;
}

/* Estilos para el toggle de uso único */
.single-use-toggle {
    margin: 15px 0;
}

.toggle-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.toggle-wrapper label {
    font-weight: 500;
    color: #333;
    margin: 0;
}

.toggle-container {
    position: relative;
    display: inline-block;
}

.toggle-input {
    display: none;
}

.toggle-label {
    display: block;
    width: 60px;
    height: 32px;
    border-radius: 16px;
    background: #e9ecef;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.toggle-button {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-text-on,
.toggle-text-off {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.toggle-text-on {
    left: 8px;
    color: white;
    opacity: 0;
}

.toggle-text-off {
    right: 8px;
    color: #666;
    opacity: 1;
}

.toggle-input:checked + .toggle-label {
    background: #2575fc;
}

.toggle-input:checked + .toggle-label .toggle-button {
    transform: translateX(28px);
}

.toggle-input:checked + .toggle-label .toggle-text-on {
    opacity: 1;
}

.toggle-input:checked + .toggle-label .toggle-text-off {
    opacity: 0;
}

/* Animación al hacer hover */
.toggle-label:hover .toggle-button {
    box-shadow: 0 0 8px rgba(37, 117, 252, 0.4);
}

/* Estilo para cuando está deshabilitado */
.toggle-input:disabled + .toggle-label {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Estilos para el selector de fechas */
.date-selection {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

.date-range-picker {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.date-field {
    flex: 1;
    min-width: 200px;
    max-width: calc(50% - 30px); /* Ajustar el ancho máximo */
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.date-field:hover {
    border-color: #2575fc;
}

.date-field:focus-within {
    border-color: #2575fc;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.1);
}

.date-field i {
    color: #6c757d;
    font-size: 1.2em;
}

.date-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.date-input-group label {
    font-size: 0.8em;
    color: #6c757d;
    margin-bottom: 2px;
}

.date-input-group input[type="date"] {
    border: none;
    background: transparent;
    color: #333;
    font-size: 1em;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    min-width: 0; /* Prevenir que el input se desborde */
}

.date-input-group input[type="date"]:focus {
    outline: none;
}

.date-separator {
    width: 20px;
    height: 2px;
    background: #dee2e6;
    position: relative;
}

.date-separator::before,
.date-separator::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #dee2e6;
    border-radius: 50%;
    top: -2px;
}

.date-separator::before {
    left: -3px;
}

.date-separator::after {
    right: -3px;
}

.fetch-stats-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.fetch-stats-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 117, 252, 0.2);
}

.fetch-stats-btn i {
    font-size: 1.1em;
}

/* Responsive */
@media (max-width: 768px) {
    .date-range-picker {
        flex-direction: column;
        gap: 10px;
    }

    .date-field {
        width: 100%;
        max-width: 100%;
    }

    .date-separator {
        display: none;
    }

    .fetch-stats-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Personalización del calendario nativo */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    color: transparent;
    cursor: pointer;
    height: 20px;
    width: 20px;
    margin-right: -10px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 0.7;
}

/* Stats Summary */
.stats-summary {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-item i {
    font-size: 24px;
    color: #2575fc;
    background: rgba(37, 117, 252, 0.1);
    padding: 12px;
    border-radius: 10px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* Coupons Table */
.coupons-detail {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.coupons-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.coupons-table th,
.coupons-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.coupons-table th {
    font-weight: 600;
    color: #666;
    background: #f8f9fa;
}

.coupons-table td {
    color: #333;
}

.coupon-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.coupon-title {
    font-weight: 500;
    color: #333;
}

.coupon-description {
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item {
        min-width: calc(50% - 15px);
    }

    .coupons-table {
        display: block;
        overflow-x: auto;
    }
}

.sort-up {
    margin-bottom: -3px;
}

.coupons-table th:hover .sort-icon {
    color: #666;
}

.sort-down {
    margin-top: -3px;
}

.sort-icon.active {
    color: #2575fc;
}

.sort-icon {
    font-size: 12px;
}

/* Estilos para el botón de estadísticas */
.stats-btn {
    background: transparent;
    border: none;
    color: #2575fc;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.stats-btn:hover {
    background: rgba(37, 117, 252, 0.1);
}

/* Modal de estadísticas */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
    overflow-y: auto;
}

.chart-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    height: 400px;
}

.chart-container h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 300px;
    }
}

/* Estilos para el contador de caracteres */
.char-counter {
    font-size: 0.8em;
    color: #6c757d;
    margin-left: 8px;
    font-weight: normal;
}

.form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    border-color: #2575fc;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(37, 117, 252, 0.25);
}

/* Estilo cuando se alcanza el límite */
.form-group input[type="text"]:invalid,
.form-group textarea:invalid {
    border-color: #dc3545;
}

/* Estilos para la sección de usuarios */
.profile-users-section {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-add-user {
    background: #48C9B0;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.users-list {
    display: grid;
    gap: 15px;
}

.user-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info i {
    font-size: 24px;
    color: #48C9B0;
}

.user-details h4 {
    margin: 0;
    color: #333;
}

.user-details p {
    margin: 5px 0 0;
    color: #666;
    font-size: 0.9em;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-delete {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-edit i {
    color: #2196F3;
}

.btn-delete i {
    color: #F44336;
}

.btn-edit:hover, .btn-delete:hover {
    transform: scale(1.1);
}

.no-users {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
}

.section-divider {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #dee2e6;
}

#profile-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-save {
    background: #48C9B0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    font-size: 1em;
}

.btn-save:hover {
    background: #3ba18a;
}

.status-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.status-indicator {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: normal;
}

.status-indicator.enabled {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-indicator.disabled {
    background-color: #ffebee;
    color: #c62828;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #48C9B0;
}

input:focus + .slider {
    box-shadow: 0 0 1px #48C9B0;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}