@import url('https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/intro.js/7.2.0/introjs.min.css');

:root {
    /* Cor Principal: Laranja Vibrante */
    --primary-color: #ff4900;
    --secondary-color: #ffffff;
    --text-color-primary: #ffffff;
    --bg-color-dark: #1f1f1f;
    /* Fundo de Card com opacidade para Glassmorphism */
    --card-bg-opacity: rgba(0, 0, 0, 0.2);
    --border-color-subtle: rgba(255, 255, 255, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color-dark);
    color: var(--text-color-primary);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div {
    color: var(--text-color-primary);
    /* Sombra para melhorar a legibilidade em fundos transparentes/escuros */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* --- ESTILO CORRIGIDO DA SIDEBAR (GLASSMORPHISM) --- */
#sidebar {
    background: rgba(26, 32, 44, 0.01);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color-subtle);
    /* Sombra mais forte para o glassmorphism */
    box-shadow: 0 0 32px 0 rgba(0, 0, 0, 0.5);
}

.sidebar-item {
    color: var(--text-color-primary);
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-item:hover,
.sidebar-item.active {
    /* Fundo laranja semi-transparente no hover/ativo */
    background-color: rgba(194, 113, 8, 0.3);
    color: #fff;
}

#logout-btn {
    color: #f87171;
}

#logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #fc8181;
}

/* --- ESTILO DE CARDS (GLASSMORPHISM) --- */
.card {
    background-color: var(--card-bg-opacity);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color-subtle);
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- ESTILOS DE FORMULÁRIO --- */
.form-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color-subtle);
    color: var(--text-color-primary);
    border-radius: 0.5rem;
}

.form-input option {
    /* Opções precisam ser escuras em fundo claro */
    color: #1a202c;
    background-color: #ffffff;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    /* Sombra de foco na cor primária */
    box-shadow: 0 0 0 2px rgba(194, 113, 8, 0.5);
}

/* --- BOTÕES --- */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-primary:hover {
    /* A cor de hover é a mesma, mas garante a transição */
    background-color: #ff4900;
}

.btn-primary:active {
    /* Efeito de clique */
    transform: scale(0.98);
}

/* --- SLIDER HERO (GLASSMORPHISM) --- */
.hero-slider-container {
    max-height: 250px;
    width: 100%;
    grid-column: 1 / -1;
    position: relative;
    z-index: 0;
    margin-bottom: 22px;
}

.hero-slider {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    /* Adiciona o glassmorphism ao slide */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
}

.swiper-pagination-bullet-active {
    background: #fff !important;
}

/* --- KANBAN BOARD --- */
.kanban-board {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    /* Scrollbar personalizado na cor primária */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.2);
}

.kanban-board::-webkit-scrollbar {
    height: 8px;
}

.kanban-board::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.kanban-board::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.kanban-board::-webkit-scrollbar-thumb:hover {
    background-color: #ff4900;
}

.kanban-column {
    flex: 0 0 320px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color-subtle);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tasks-container {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: grab;
    user-select: none;
    transition: background-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.task-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Estilos de Conteúdo de Tarefa */
.task-card h4 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.task-card .mentee-name {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border-color-subtle);
    padding-top: 0.5rem;
}

.task-card-content {
    word-wrap: break-word;
}

.task-card-content a {
    color: #facc15;
    text-decoration: underline;
}

.task-card-content h3 {
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color-subtle);
    padding-bottom: 0.25rem;
}

.task-content .edit-btn {
    opacity: 0;
    transition: opacity 0.2s;
    padding: 0.25rem;
    line-height: 1;
}

.task-card:hover .task-content .edit-btn {
    opacity: 1;
}

/* --- MODAIS (GLASSMORPHISM) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Desfoque de fundo no overlay */
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background-color: var(--bg-color-dark);
    border: 1px solid var(--border-color-subtle);
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* Estilos de Comentários no Modal */
#task-comments-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color-subtle);
}

.comment {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

/* --- CARDS DE AÇÃO (PULSANDO) --- */
.card-action {
    background-color: var(--card-bg-opacity);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color-subtle);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.card-action:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Destaque especial para o Card da Trilha */
a.card-action[href="/task/timeline/timeline.html"] {
    background-color: #ff4900 !important;
    border: none !important;
    color: #fff;
    box-shadow: 0 2px 6px rgba(255, 73, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.card-action[href="/task/timeline/timeline.html"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(255, 73, 0, 0.35);
}

/* --- FILTROS DE BOTÕES --- */
.filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: background-color 0.2s, color 0.2s;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    background-color: transparent;
}

.filter-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    /* Ativo usa a cor primária */
    background-color: var(--primary-color);
    color: white;
}

/* Estilo para os botões de filtro de status */
.filter-status-btn {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s, color 0.2s;
    background-color: transparent;
    color: #ccc;
}

.filter-status-btn.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.filter-status-btn:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}


/* --- CARDS DE AGENDAMENTO --- */
.appointment-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--border-color-subtle);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Fundo escuro sutil (diferente do card geral) */
    background-color: #2D3748;
}

.status-badge {
    border-radius: 9999px;
    color: white;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
}

.appointment-action-btn {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    color: white;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.875rem;
}

.appointment-action-btn:hover {
    transform: scale(1.05);
    filter: brightness(110%);
}

.reschedule-btn {
    background-color: #2563EB;
}

.cancel-btn {
    background-color: #DC2626;
}

/* --- RESPONSIVIDADE --- */
@media (min-width: 640px) {
    .appointment-card {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 768px) {

    /* Kanban vertical em mobile */
    .kanban-board {
        flex-direction: column;
        gap: 2rem;
        padding: 0;
    }

    .kanban-column {
        flex: 1 1 auto;
    }

    .hero-slider-container {
        max-height: 200px;
    }
}

/* --- NOTIFICAÇÕES (BELL) --- */
#notification-bell {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background-color: #ef4444;
    border-radius: 50%;
    border: 1.5px solid var(--bg-color-dark);
}

#notification-panel {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color-subtle);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.notification-item.unread {
    background-color: rgba(0, 0, 0, 0.35);
}


/* --- ESTILOS PERSONALIZADOS PARA O TOUR (INTRO.JS) --- */
body .introjs-tooltip {
    position: relative !important;
    background-color: rgba(45, 55, 72, 0.01);
    /* Glassmorphism no Tooltip */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    max-width: 350px;
    font-size: 0.95rem;
}

/* Botão Pular (Skip) CORRIGIDO */
body .introjs-skipbutton {
    position: absolute !important;
    top: 0.75rem;
    right: 1rem;
    color: #a0aec0 !important;
    background: none !important;
    box-shadow: none !important;
    font-size: 0.875rem !important;
    font-weight: normal !important;
    padding: 0.25rem;
    transition: color 0.2s;
    text-decoration: none;
}

/* Botões de navegação */
body .introjs-button {
    background-color: var(--primary-color);
    color: white !important;
    text-shadow: none;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body .introjs-disabled {
    background-color: #4a5568 !important;
    color: #a0aec0 !important;
    cursor: not-allowed;
    box-shadow: none;
}

/* Barra de progresso e numeração */
body .introjs-progressbar {
    background-color: var(--primary-color) !important;
}

body .introjs-helperNumberLayer {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* --- ESTILOS PERSONALIZADOS PARA NOTIFICAÇÃO TOAST (SWEETALERT2) --- */
.swal2-toast.custom-toast {
    background: rgba(45, 55, 72, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.swal2-toast.custom-toast .swal2-icon.swal2-warning {
    color: #ff4900 !important;
    border-color: #ff4900 !important;
}

/* --- ESTILOS PARA O BOTÃO FIXO "FAZER TOUR" --- */
body #start-tour-btn-fixed {
    position: fixed;
    bottom: 2.5rem;
    left: 1.5rem;
    z-index: 50;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    background-color: #ff4900 !important;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease-in-out;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

body #start-tour-btn-fixed:hover {
    background-color: rgba(163, 94, 5, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}

/* --- CORREÇÃO POSIÇÃO BOTÃO TOUR DURANTE INTRO.JS --- */
body #start-tour-btn-fixed.introjs-showElement,
body #start-tour-btn-fixed.introjs-relativePosition,
body #start-tour-btn-fixed.introjs-fixParent {
    position: fixed !important;
    bottom: 2.5rem !important;
    left: 1.5rem !important;
    z-index: 9999991 !important;
    /* Redefine a cor e estilo para evitar conflitos */
    background-color: rgba(194, 113, 8, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}


/* --- ESTILOS DE POPUP GERAL (SWEETALERT2 DARK MODE) --- */
.swal2-popup.swal2-dark-mode-custom {
    background-color: #2d3748 !important;
    color: #e2e8f0 !important;
    border: 1px solid #4a5568 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3) !important;
}

.swal2-title.swal2-title-custom {
    color: #63b3ed !important;
    font-size: 1.5em !important;
    margin-bottom: 0.8em !important;
}

/* Estilo para o scrollbar no tema escuro (conteúdo do popup) */
.swal2-html-container-custom>div {
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #2d3748;
}

/* Estilos para os Botões do SweetAlert2 */
.swal2-confirm.swal2-confirm-button-custom {
    background-color: #10B981 !important;
    color: white !important;
    font-weight: bold !important;
    transition: background-color 0.2s ease-in-out !important;
}

.swal2-cancel.swal2-cancel-button-custom {
    background-color: #EF4444 !important;
    color: white !important;
    font-weight: bold !important;
    transition: background-color 0.2s ease-in-out !important;
}

/* --- ANIMAÇÃO E NEWS PANEL --- */
@keyframes pulse-slow {

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

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 2.5s infinite ease-in-out;
}

/* Painel de Status (Notícias) com Destaque */
#status-panel {
    padding: 2rem !important;
    background-color: var(--card-bg-opacity);
    backdrop-filter: blur(4px);
    /* Borda de destaque na cor primária */
    border: 2px solid var(--primary-color) !important;
    border-radius: 1rem;
    /* Efeito "glow" laranja sutil */
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#status-panel h2 {
    color: var(--primary-color) !important;
}

/* Slides do Swiper dentro do Status Panel */
#status-panel .swiper-container.mySwiper {
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.swiper-slide {
    width: 100% !important;
    height: 100% !important;
    position: relative;
    z-index: 10;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    /* Borda de slide sutil laranja */
    border: 1px solid rgba(255, 87, 34, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.swiper-pagination-bullet-active {
    /* Bullet ativo na cor primária (laranja) */
    background: var(--primary-color) !important;
    width: 20px !important;
    border-radius: 5px !important;
}

.testimonial-slide {
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=1742&auto-format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .06);
    min-height: 220px;
}

@media (min-width: 1024px) {
    .testimonial-slide {
        padding: 36px;
        min-height: 260px;
    }
}

/* --- WIDGET DE FREQUÊNCIA --- */
.progress-bar-container {
    background-color: #374151; /* Cor de fundo da barra */
}

.progress-bar {
    background-color: #10b981; /* Verde para frequência alta */
    /* Cores ajustadas via JS: low, medium, high */
}

.progress-bar.low {
    background-color: #ef4444; /* Vermelho */
}

.progress-bar.medium {
    background-color: #f59e0b; /* Amarelo/Laranja */
}

.progress-bar.high {
    background-color: #10b981; /* Verde */
}

#attendance-details-toggle svg {
    transform: rotate(0deg);
}

#attendance-details-toggle.open svg {
    transform: rotate(180deg);
}

/* --- AGENDAMENTO DE HORÁRIOS --- */

/* Estilos para slots de tempo desabilitados */
.time-slot.disabled {
    background-color: #4a5568; /* Cinza mais escuro */
    color: #a0aec0; /* Texto mais claro */
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.time-slot.disabled::after {
    content: '\1F512'; /* Emoji de cadeado */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #e2e8f0;
    opacity: 0.5;
}

.time-slot.disabled:hover {
    background-color: #4a5568; /* Mantém a cor no hover */
}

.day-tab.active {
    background-color: #FBBF24; 
    color: #1F2937; 
    border-color: #FBBF24;
}

.time-slot.active {
    background-color: #FBBF24; 
    color: #1F2937;
    border-color: #FBBF24;
}