﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}


.or {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .or .or-line {
        border-bottom: 1px solid var(--bs-body-color);
        width: 100%;
        opacity: 0.2;
    }

    .or .or-text {
        padding: 0 0.625rem 0px 0.625rem;
        font-size: 0.75rem;
        line-height: 1.125rem;
        color: var(--bs-body-color);
        opacity: 0.7;
    }

.links-area {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.625rem;
}

.links-container {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

    .links-container .dot {
        height: 0.3125rem;
        width: 0.3125rem;
        margin: 0 0.1875rem;
        border-radius: 50%;
        background-color: var(--bs-body-color);
        opacity: 0.7;
    }

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: var(--bs-primary);
    z-index: -1;
}

.info-message {
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .info-message.info-panel {
        margin-bottom: 0.625rem;
    }

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    height: 4.3125rem;
    font-size: 1.875rem;
}

.title-content-text-secondary {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.icon-external-provider {
    width: 1rem;
    height: 1rem;
}

.icon-google {
    background-image: url("/images/account/providers/google-logo.svg")
}

.icon-facebook {
    background-image: url("/images/account/providers/facebook-logo.svg")
}

.icon-microsoft {
    background-image: url("/images/account/providers/microsoft-logo.svg")
}

.icon-twitter {
    background-image: url("/images/account/providers/x-logo.svg")
}

.compact-file-input {
    height: 32px !important;
    padding: 4px 8px !important;
    line-height: 1.2 !important;
    border-radius: 0.2em !important;
}

.btn-outline-danger {
    border-color: transparent !important;
}

/* Alinea el contenido del drawer footer hacia la izquierda */
.dxbl-drawer-footer {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-end;
    padding-left: 8px; /* margen desde el borde izquierdo */
    padding-bottom: 8px;
}

/* Asegura que el texto dentro también quede alineado a la izquierda */
.dxbl-drawer-footer .footer-content-left {
    text-align: left;
}

.app-footer-left {
    padding: 8px 4px;
    background-color: transparent;
}

.app-footer-left .footer-content-left {
    font-size: 11px; /* letras pequeñas */
    text-align: left;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

.dx-theme-generic .app-footer-left .footer-content-left,
.dx-theme-office-white .app-footer-left .footer-content-left,
.dx-theme-fluent-light .app-footer-left .footer-content-left {
    color: rgba(0, 0, 0, 0.55);
}

.app-footer-left strong {
    display: block;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
}

.dx-theme-generic .app-footer-left strong,
.dx-theme-office-white .app-footer-left strong,
.dx-theme-fluent-light .app-footer-left strong {
    color: rgba(0, 0, 0, 0.8);
}


@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: block;
    }
}

.navigation-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 5px;
    height: 30px; 
    box-sizing: border-box;
}

.navigation-drawer-header .logo {
    max-height: 55px;
    width: auto;
    object-fit: contain; 
}

@media (max-width: 768px) {
    .navigation-drawer-header .logo {
        max-height: 50px;
    }
}

.welcome-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8em;
}

.welcome-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
    .welcome-logo {
        max-width: 500px;
    }
}

.dxbl-apt-status-container {
    display: none !important;
}

.dxbl-apt-content {
    border: 1px #c0c0c0 solid !important;
    border-radius: 3px !important;
    box-shadow: 0 2px 3px rgba(0,0,0,0.15);
    background-color: #ffffff !important;
}

/* Diseño del panel Reports */
/* Reports Layout Simplificado */
.reports-container {
    display: flex;
    height: calc(100vh - 70px); /* Ajusta según tu header */
    width: 100%;
}

/* Estilo del Panel */
.reports-panel {
    position: relative;
    width: 350px; /* Ancho fijo para el panel */
    padding: 15px;
    background-color: white;
    box-shadow: -4px 0px 10px rgba(0,0,0,0.1); /* Sombra solo a la izquierda */
    height: 100%; /* Asegura que el panel ocupe toda la altura disponible */
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Asegura que el contenido se pueda desplazar si es necesario */
}

/* Panel de PDF */
.reports-pdf {
    flex: 1;
    background-color: #f8f9fa;
    overflow: hidden;
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
    background-color: white;
}

/* Header del Panel */
.panel-header {
    border-radius: 4px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Footer del Panel */
.panel-footer {
    margin-top: auto;
    padding: 15px;
    background-color: #f8f9fa;
    text-align: center;
    border-top: 1px solid #ddd;
}

/* Asegurando que el PDF ocupe el espacio restante en la pantalla */
.reports-pdf iframe {
    min-height: 500px; /* Ajusta la altura mínima */
    width: 100%;
}


/* Cursor pointer para tablas */
.dxbl-grid.cursor-pointer .dxbl-grid-table tbody tr {
    cursor: pointer !important;
}

.dxbl-grid.cursor-pointer .dxbl-grid-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
}

/* AlertMessage */
.modern-alert {
    min-width: 320px;
    max-width: 400px;
    border-radius: 5px;
    padding: 1rem 1.25rem;
    color: var(--alert-text);
    background-color: var(--alert-bg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    animation: fadeIn 0.4s ease, fadeOut 0.5s ease 3.5s forwards;
}

.alert-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon {
    font-size: 1.6rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.text {
    flex: 1;
}

.text .title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 0.8;
    margin: 0;
}

.text .message {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1; 
    margin: 0; 
}

/* Animaciones suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-15px);
    }
}

/* Animaciones suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-15px);
    }
}

/* Scrooll celda tabla */
.grid-text-scroll {
    max-height: 80px;
    overflow-y: auto;
    white-space: normal; /* Permite varias líneas */
}

/* Botones llamadas */
.btn-custom-green {
    background-color: #00a74e;
    color: #ffffff;
    border: none;
}

.btn-custom-green:hover {
    background-color: #029d4a !important;
}

.btn-custom-red {
    background-color: #db0c0c;
    color: #ffffff;
    border: none;
}

.btn-custom-red:hover {
    background-color: #d60404 !important;
}

.btn-custom-purple {
    background-color: #8201ae;
    color: #ffffff;
    border: none;
}

.btn-custom-purple:hover {
    background-color: #6d0092 !important;
}

.btn-custom-orange {
    background-color: #e08d08;
    color: #ffffff;
    border: none;
}

.btn-custom-orange:hover {
    background-color: #df8a02 !important;
}
.oculto {
    display: none;
}

/* ANIMACIÓN PARA FILTROS */
.filtros-collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    padding: 0;
    border: none;
    transition: all 0.3s ease-in-out;
}

.filtros-expanded {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 1rem;
    transition: all 0.3s ease-in-out;
}

/* Para móviles */
.responsive-popup .dxbl-popup-content {
    max-width: 100% !important;
}

/* Para móviles */
@media (max-width: 768px) {
    .responsive-popup {
        margin: 10px !important;
    }

    .responsive-popup .dxbl-popup-content {
        border-radius: 8px !important;
    }
}

/* Celda base */
.dxbl-sc-time-cell {
    min-height: 190px !important;
    position: relative !important;
    padding-bottom: 30px !important;
}

/* Contenedor de citas */
.dxsc-appointments-container {
    max-height: 135px !important;
    overflow: hidden !important;
    margin-bottom: 10px !important;
}

/* BOTÓN "Ver más" - estilos base */
.ver-mas-cita {
    display: inline-block;
    position: absolute;
    bottom: 5px !important;
    right: 8px !important;
    z-index: 100 !important;
    border: 1px solid rgba(0, 123, 255, 0.4);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Estado OCULTO - invisible */
.ver-mas-cita.ver-mas-oculto {
    opacity: 0;
    pointer-events: none;
    background-color: transparent;
    color: transparent !important;
    border-color: transparent;
    box-shadow: none;
}

/* Estado VISIBLE - se muestra */
.ver-mas-cita.ver-mas-visible {
    opacity: 1;
    pointer-events: all;
    background-color: rgba(255, 255, 255, 0.6);
    color: #007bff !important;
    border-color: rgba(0, 123, 255, 0.4);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3px);
}

.ver-mas-cita.ver-mas-visible:hover {
    background-color: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 123, 255, 0.6);
    color: #0056b3 !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.ver-mas-cita.ver-mas-visible:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ver-mas-cita i {
    margin-right: 3px;
}

/* Asegurar que las citas no se salgan del contenedor */
.dxsc-appointment {
    max-height: 100% !important;
}

/* POPUP MINIMALISTA PARA CITAS */
/* TARJETAS MÁS COMPACTAS */
.citas-minimalista .cita-item {
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    border-left: 3px solid #007bff !important;
    padding: 12px !important;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.citas-minimalista .cita-item:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-left-color: #0056b3 !important;
    background-color: rgb(245, 245, 245);
}

/* HEADER MÁS COMPACTO */
.citas-minimalista .cita-header {
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 6px !important;
    font-size: 0.9rem !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.citas-minimalista .cita-header i {
    color: #007bff;
    font-size: 0.85rem !important;
}

/* CONTENIDO MÁS APRETADO */
.citas-minimalista .cita-content {
    margin-bottom: 6px !important;
}

.citas-minimalista .cita-line {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px !important;
    font-size: 0.8rem !important;
    color: #555;
    line-height: 1.2 !important;
}

.citas-minimalista .cita-line i {
    width: 12px !important;
    color: #666;
    font-size: 0.75rem !important;
}

.citas-minimalista .cita-line strong {
    color: #333;
    font-weight: 500;
    font-size: 0.8rem !important;
}

/* ESPACIADO ENTRE TARJETAS */
.citas-minimalista .list-group {
    display: flex;
    flex-direction: column;
    gap: 8px !important;
    background: transparent;
    border: none;
}

/* REDUCIR PADDING DEL CONTENEDOR */
.citas-minimalista .p-3 {
    padding: 1rem !important;
    max-height: 70vh;
    overflow-y: auto;
}

/* Cambio de etiquetas citas */
/* Hora mas compacta */
.dxbl-sc-apt-time {
    font-size: 10px;
}

/* Descripcion mas pequeña */
.dxbl-sc-apt-description {
    font-size: 9px;
}

/* Reducir padding interno de las citas */
.dxbl-sc-apt-container .dxbl-apt-content {
    padding: 2px 4px;
}

/* Contenedor de texto mas compacto */
.dxbl-sc-content-wrapper {
    line-height: 1.2;
}