/* Estilos personalizados para el Sistema de Clínica Dental */

/* Ajustes generales */
body {
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f7fb;
}

/* Mejoras de contraste para Tabler */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.btn-primary {
    background-color: #0061f2;
    border-color: #0061f2;
}

.btn-primary:hover {
    background-color: #0053d9;
    border-color: #0053d9;
}

.btn-success {
    background-color: #00ac69;
    border-color: #00ac69;
}

.text-muted {
    color: #525f7f !important;
}

/* Mejoras para la demo */
.demo-warning {
    background-color: #ffab2b;
    color: #000;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.demo-notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 5px solid #ffda6a;
}

.demo-badge {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 9999;
    background-color: rgba(244, 161, 0, 0.9);
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
}

/* Botones deshabilitados para la demo */
.btn-demo-disabled {
    opacity: 0.7;
    position: relative;
}

.btn-demo-disabled:before {
    content: "DEMO";
    position: absolute;
    font-size: 8px;
    background-color: #f4a100;
    color: #000;
    padding: 2px 4px;
    border-radius: 2px;
    top: -5px;
    right: -5px;
    font-weight: bold;
}

/* Modal personalizado */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    color: #0061f2;
    font-weight: 600;
}

/* Ajustes para DataTables */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #cfd7e6;
    border-radius: 4px;
    padding: 4px 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #0061f2;
    color: white !important;
    border: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #0053d9;
    color: white !important;
    border: none;
}

/* Ajustes para Select2 */
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #cfd7e6;
    min-height: 38px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-top: 3px;
}

/* Ajustes para FullCalendar */
.fc-event {
    cursor: pointer;
    border-radius: 3px;
    padding: 3px;
}

.fc-daygrid-event {
    white-space: normal;
}

.fc-today {
    background-color: rgba(0, 97, 242, 0.1) !important;
}

/* Ajustes para avatars */
.avatar-letters {
    font-weight: bold;
    color: white;
}

/* Página de login */
.login-card {
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Barra de navegación */
.navbar-light .navbar-nav .nav-link.active {
    background-color: rgba(0, 97, 242, 0.1);
    color: #0061f2;
    font-weight: bold;
}

/* Dashboard */
.subheader {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.6;
    color: #8792a2;
}

/* Mejora de la barra de búsqueda */
.table-search input.form-control,
.table-custom-wrapper .table-search input {
    padding: 0.5rem 0.5rem;
    margin: 0 0.3rem;
    width: calc(100% - 2rem);
}

.table-custom-wrapper .table-top-controls {
    padding: 0 0.5rem;
}

/* Efecto hover para filas de tablas */
.table tbody tr:hover {
    background-color: rgba(0, 97, 242, 0.05);
    transition: background-color 0.2s ease;
}

/* Mejora para botones dropdown en tablas */
.table .dropdown-menu {
    min-width: 8rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.table .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.table .dropdown-item:hover {
    background-color: rgba(0, 97, 242, 0.1);
}