/* ==========================================
   ARQUIVO: admin.css - Estilos da Área Administrativa
   Descrição: CSS específico para o painel administrativo
   Autor: HairCut Barbearia
   Data: 2024
   ========================================== */

/* ==========================================
   MOBILE FIRST - Estilos base para mobile
   ========================================== */

/* Reset específico para o admin */
.admin-panel {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* ==========================================
   LAYOUT RESPONSIVO - Mobile-First
   ========================================== */

/* Container principal - Mobile */
.container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Sidebar - Oculto em mobile */
.admin-sidebar-card {
    position: sticky;
    top: 1rem;
    height: fit-content;
}

/* Cards de estatísticas - Mobile */
.admin-stat-card {
    min-height: 80px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Cards clicáveis - Efeito hover melhorado */
.clickable-card {
    cursor: pointer !important;
    user-select: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

/* Garantir cursor pointer em todos os elementos dentro do card clicável */
.clickable-card,
.clickable-card * {
    cursor: pointer !important;
}

.clickable-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
    opacity: 0.95;
}

.clickable-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.admin-stat-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-stat-card .card-text {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Botões responsivos */
.btn-sm {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

/* Tabelas responsivas */
.table-responsive {
    border-radius: 0.5rem;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Scroll suave em outros navegadores */
    /* Scroll suave no iOS */
}

/* Garantir que as tabelas tenham scroll horizontal */
.table-responsive table {
    min-width: 600px;
    /* Largura mínima para forçar scroll */
    white-space: nowrap;
}

/* Colunas de ação sempre visíveis */
.table-responsive .btn-group {
    white-space: nowrap;
}

/* Botões de ação em mobile */
.table-responsive .btn {
    min-width: 32px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Modais responsivos */
.modal-dialog {
    margin: 0.5rem;
}

.modal-dialog.modal-lg {
    max-width: calc(100% - 1rem);
}

/* Formulários mobile */
.form-control,
.form-select {
    font-size: 16px;
    /* Evita zoom no iOS */
}

/* Cards de seção */
.admin-section {
    min-height: 400px;
}

/* ==========================================
   MELHORIAS MOBILE - Experiência do usuário
   ========================================== */

/* Navegação mobile melhorada */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Cards de estatísticas mobile */
@media (max-width: 767px) {
    .admin-stat-card .card-body {
        padding: 0.75rem;
    }

    .admin-stat-card .card-title {
        font-size: 1.25rem;
    }

    .admin-stat-card .card-text {
        font-size: 0.75rem;
    }

    .admin-stat-card i {
        font-size: 1.25rem;
    }
}

/* Tabelas mobile - Scroll horizontal otimizado */
@media (max-width: 767px) {
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .table-responsive table {
        min-width: 600px;
        /* Largura reduzida para melhor visualização */
        margin-bottom: 0;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 0.4rem 0.5rem;
        /* Padding reduzido */
        vertical-align: middle;
        border-bottom: 1px solid #dee2e6;
        white-space: nowrap;
        /* Evita quebra de linha */
    }

    .table-responsive th {
        background-color: #f8f9fa;
        font-weight: 600;
        font-size: 0.8rem;
        /* Fonte menor */
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .table-responsive td {
        font-size: 0.8rem;
        /* Fonte menor */
    }

    /* Botões de ação em mobile - Tamanho otimizado */
    .table-responsive .btn-group {
        display: flex;
        gap: 0.15rem;
        flex-wrap: nowrap;
        min-width: 70px;
    }

    .table-responsive .btn {
        min-width: 22px;
        height: 22px;
        padding: 0.1rem 0.25rem;
        font-size: 0.6rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.2rem;
    }

    /* Indicador de scroll */
    .table-responsive::after {
        content: "← Deslize para ver mais →";
        display: block;
        text-align: center;
        padding: 0.4rem;
        font-size: 0.7rem;
        color: #6c757d;
        background-color: #f8f9fa;
        border-top: 1px solid #dee2e6;
    }
}

/* Botões de ação mobile */
.btn-group-mobile {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.btn-group-mobile .btn {
    flex: 1;
    min-width: 60px;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* ==========================================
   BOTÕES DE AÇÃO EM TABELAS - Mobile
   ========================================== */

/* Garantir que os botões de ação sejam sempre visíveis */
.table-responsive .btn-group {
    white-space: nowrap;
    min-width: 80px;
    /* Largura reduzida para os botões */
}

.table-responsive .btn-group .btn {
    min-width: 24px;
    height: 24px;
    padding: 0.15rem 0.3rem;
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.15rem;
    border-radius: 0.25rem;
}

.table-responsive .btn-group .btn:last-child {
    margin-right: 0;
}

/* Estilo específico para botões de editar e excluir */
.table-responsive .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.table-responsive .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.table-responsive .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* Hover effects para botões */
.table-responsive .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   OTIMIZAÇÕES ADICIONAIS PARA MOBILE
   ========================================== */

/* Garantir que as colunas tenham largura adequada */
@media (max-width: 767px) {

    .table-responsive th:first-child,
    .table-responsive td:first-child {
        min-width: 120px;
        /* Largura mínima para nome */
    }

    .table-responsive th:last-child,
    .table-responsive td:last-child {
        min-width: 80px;
        /* Largura mínima para ações */
        max-width: 80px;
        /* Largura máxima para ações */
    }

    /* Ajustar colunas intermediárias */
    .table-responsive th:nth-child(2),
    .table-responsive td:nth-child(2) {
        min-width: 100px;
    }

    .table-responsive th:nth-child(3),
    .table-responsive td:nth-child(3) {
        min-width: 80px;
    }
}

/* Melhorar contraste dos botões */
.table-responsive .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    font-weight: 600;
}

.table-responsive .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
    font-weight: 600;
}

/* Garantir que os ícones sejam visíveis */
.table-responsive .btn i {
    font-size: 0.7rem;
    line-height: 1;
}

/* Modais mobile */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-content {
        border-radius: 0.5rem;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* Formulários mobile */
@media (max-width: 767px) {
    .form-label {
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .form-control,
    .form-select {
        font-size: 16px;
        /* Evita zoom no iOS */
        padding: 0.5rem 0.75rem;
    }

    .form-control-sm,
    .form-select-sm {
        font-size: 14px;
        padding: 0.375rem 0.5rem;
    }
}

/* Cards de clientes mobile */
.cliente-card-mobile {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cliente-card-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cliente-card-mobile .card-body {
    padding: 1rem;
}

.cliente-card-mobile .avatar-cliente {
    flex-shrink: 0;
}

.cliente-card-mobile h6 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cliente-card-mobile .row {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

.cliente-card-mobile .row>div {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.cliente-card-mobile .btn {
    min-height: 38px;
    font-size: 0.875rem;
}

.cliente-card-mobile i {
    width: 20px;
    text-align: center;
}

/* Cards de barbeiros mobile */
.barbeiro-card-mobile {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #191C24 !important;
    /* Fundo escuro */
    color: #ffffff !important;
    /* Texto branco por padrão */
}

.barbeiro-card-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.barbeiro-card-mobile .card-body {
    padding: 1rem;
}

.barbeiro-card-mobile .avatar-barbeiro {
    flex-shrink: 0;
}

.barbeiro-card-mobile .avatar-barbeiro img {
    border: 2px solid #EB1616;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.barbeiro-card-mobile h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #ffffff !important;
    /* Branco para contraste com fundo escuro */
}

/* Textos dos cards de barbeiros mobile - Branco para contraste */
.barbeiro-card-mobile .text-muted {
    color: #e0e0e0 !important;
    /* Cinza claro ao invés de escuro */
}

.barbeiro-card-mobile strong {
    color: #ffffff !important;
    /* Labels em branco */
}

.barbeiro-card-mobile span:not(.badge) {
    color: #ffffff !important;
    /* Textos em branco */
}

.barbeiro-card-mobile a {
    color: #ffffff !important;
    /* Links em branco */
    text-decoration: underline;
}

.barbeiro-card-mobile a:hover {
    color: #EB1616 !important;
    /* Hover em vermelho */
}

/* Especialidade em destaque */
.barbeiro-card-mobile .text-primary {
    color: #EB1616 !important;
    /* Vermelho para especialidade */
}

/* Ícones também em branco */
.barbeiro-card-mobile i {
    color: #ffffff !important;
}

.barbeiro-card-mobile .text-primary i {
    color: #EB1616 !important;
    /* Ícone da especialidade em vermelho */
}

.barbeiro-card-mobile .row {
    margin-bottom: 0.5rem;
}

.barbeiro-card-mobile .row>div {
    padding: 0.25rem 0;
}

.barbeiro-card-mobile .btn {
    min-height: 38px;
    font-size: 0.875rem;
    padding: 0.5rem;
}

.barbeiro-card-mobile i {
    font-size: 0.9rem;
}

/* Cards de agendamentos mobile */
.agendamento-card-mobile {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agendamento-card-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.agendamento-card-mobile .card-body {
    padding: 1rem;
}

.agendamento-card-mobile h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #191C24;
}

.agendamento-card-mobile .row {
    margin-bottom: 0.5rem;
}

.agendamento-card-mobile .row>div {
    padding: 0.25rem 0;
}

.agendamento-card-mobile .btn {
    min-height: 38px;
    font-size: 0.875rem;
    padding: 0.5rem;
}

.agendamento-card-mobile i {
    font-size: 0.9rem;
}

.agendamento-card-mobile .status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Cards de agendamentos recentes mobile */
@media (max-width: 767px) {
    #agendamentosRecentes .list-group-item {
        padding: 0.75rem;
    }

    #agendamentosRecentes .list-group-item h6 {
        font-size: 0.875rem;
    }

    #agendamentosRecentes .list-group-item small {
        font-size: 0.75rem;
    }

    #agendamentosRecentes .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Espaçamento mobile */
@media (max-width: 767px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .mb-4 {
        margin-bottom: 1.5rem !important;
    }

    .mb-3 {
        margin-bottom: 1rem !important;
    }
}

/* ==========================================
   BREAKPOINTS - Tablet e Desktop
   ========================================== */

@media (min-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .admin-stat-card .card-title {
        font-size: 1.75rem;
    }

    .admin-stat-card .card-text {
        font-size: 0.9rem;
    }

    .modal-dialog {
        margin: 1.75rem auto;
    }

    .modal-dialog.modal-lg {
        max-width: 800px;
    }
}

@media (min-width: 992px) {
    .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .admin-stat-card .card-title {
        font-size: 2rem;
    }

    .admin-stat-card .card-text {
        font-size: 1rem;
    }
}

/* ==========================================
   NAVEGAÇÃO - Menu administrativo
   ========================================== */
.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand small {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* ==========================================
   SIDEBAR - Menu lateral
   ========================================== */
.list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.list-group-item i {
    width: 20px;
    text-align: center;
}

/* ==========================================
   SEÇÕES - Área de conteúdo
   ========================================== */
.admin-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.admin-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   CARDS - Estatísticas e conteúdo
   ========================================== */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    font-weight: 600;
}

/* ==========================================
   TABELAS - Listagem de dados
   ========================================== */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* ==========================================
   BADGES - Status e contadores
   ========================================== */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
}

.badge.bg-primary {
    background-color: var(--bs-primary) !important;
}

.badge.bg-success {
    background-color: var(--bs-success) !important;
}

.badge.bg-info {
    background-color: var(--bs-info) !important;
}

.badge.bg-warning {
    background-color: var(--bs-warning) !important;
}

.badge.bg-danger {
    background-color: var(--bs-danger) !important;
}

/* ==========================================
   BOTÕES - Ações e controles
   ========================================== */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* ==========================================
   MODAIS - Formulários de edição
   ========================================== */
.modal-content {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 0.75rem 0.75rem 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 0.75rem 0.75rem;
}

/* ==========================================
   FORMULÁRIOS - Inputs e controles
   ========================================== */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-select {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* ==========================================
   ALERTAS - Notificações e mensagens
   ========================================== */
.alert {
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1edff;
    color: #0c5460;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ==========================================
   LOADING - Indicadores de carregamento
   ========================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ==========================================
   STATUS - Indicadores de status
   ========================================== */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-agendado {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-confirmado {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.status-concluido {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

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

/* ==========================================
   AÇÕES - Botões de ação nas tabelas
   ========================================== */
.action-buttons {
    display: flex;
    gap: 0.25rem;
}

.action-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* ==========================================
   GRÁFICOS - Estilos para Chart.js
   ========================================== */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* ==========================================
   FILTROS - Área de filtros
   ========================================== */
.filters-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* ==========================================
   RESPONSIVIDADE - Ajustes para mobile
   ========================================== */
@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }

    .col-lg-3 {
        margin-bottom: 1rem;
    }

    .table-responsive {
        font-size: 0.8rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        margin-bottom: 0.25rem;
    }

    .card-body {
        padding: 1rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand h1 {
        font-size: 1.2rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
}

/* ==========================================
   ANIMAÇÕES - Efeitos visuais
   ========================================== */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================
   ATUALIZAÇÃO AUTOMÁTICA - Notificações
   ========================================== */
.auto-update-notification {
    animation: slideInRight 0.3s ease-out;
}

.auto-update-notification .alert {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Indicador de atualização automática ativa */
.auto-refresh-active {
    position: relative;
}

.auto-refresh-active::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================
   AGENDAMENTOS RECENTES - Estilos específicos
   ========================================== */
#agendamentosRecentes .list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
    transition: all 0.3s ease;
}

#agendamentosRecentes .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

#agendamentosRecentes .list-group-item:last-child {
    border-bottom: none;
}

#agendamentosRecentes .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

#agendamentosRecentes .text-success {
    font-size: 1.1rem;
}

/* ==========================================
   UTILITÁRIOS - Classes auxiliares
   ========================================== */
.text-truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cursor-pointer {
    cursor: pointer;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ==========================================
   DARK MODE - Tema escuro (opcional)
   ========================================== */
@media (prefers-color-scheme: dark) {
    .admin-panel {
        background-color: #1a1a1a;
        color: #ffffff;
    }

    .card {
        background-color: #2d2d2d;
        color: #ffffff;
    }

    .table {
        color: #ffffff;
    }

    .table-hover tbody tr:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* ==========================================
   PREVIEW SIMPLES DA FOTO
   ========================================== */

/* Preview da foto - estilos básicos do Bootstrap */
#fotoPreview {
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

#fotoPreview:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}