/* CSS específico para o módulo de agenda */

/* Header da agenda */
.agenda-header {
    background: linear-gradient(135deg, #2E7D6E, #1F3B4D);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(1.1);
}

.logo i {
    color: #CBA135;
    font-size: 1.5rem;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(203, 161, 53, 0.2);
    color: white;
}

/* Seção principal */
.agenda-main {
    padding: 60px 0;
    background: #F2E9DA;
    min-height: calc(100vh - 80px);
}

.agenda-header-content {
    text-align: center;
    margin-bottom: 50px;
}

.agenda-header-content .section-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.agenda-header-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #1F3B4D;
    margin-bottom: 15px;
}

.agenda-header-content p {
    font-size: 1.2rem;
    color: #1F3B4D;
    opacity: 0.8;
}

/* Container principal da agenda */
.agenda-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar */
.agenda-sidebar {
    background: white;
    border-radius: 20px;
    padding: 30px;
    height: fit-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(46, 125, 110, 0.1);
}

.therapist-info {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(46, 125, 110, 0.1);
    margin-bottom: 30px;
}

.therapist-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2E7D6E, #CBA135);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 2rem;
}

.therapist-details h3 {
    color: #1F3B4D;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.therapist-details p {
    color: #2E7D6E;
    margin-bottom: 10px;
    font-weight: 500;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #CBA135;
    font-size: 14px;
}

.rating span {
    color: #1F3B4D;
    font-weight: 500;
    margin-left: 8px;
}

/* Tipos de serviço */
.service-types {
    margin-bottom: 30px;
}

.service-types h4 {
    color: #1F3B4D;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #F2E9DA;
}

.service-item:hover {
    background: rgba(46, 125, 110, 0.05);
    border-color: rgba(46, 125, 110, 0.2);
}

.service-item.active {
    background: rgba(46, 125, 110, 0.1);
    border-color: #2E7D6E;
}

.service-info h5 {
    color: #1F3B4D;
    margin-bottom: 3px;
    font-size: 1rem;
}

.service-info p {
    color: #1F3B4D;
    opacity: 0.7;
    font-size: 0.85rem;
}

.service-price {
    color: #2E7D6E;
    font-weight: 700;
    font-size: 1rem;
}

/* Informações de contato */
.contact-info h4 {
    color: #1F3B4D;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #1F3B4D;
    font-size: 0.9rem;
}

.contact-item i {
    color: #2E7D6E;
    width: 16px;
}

/* Área do calendário */
.agenda-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(46, 125, 110, 0.1);
}

/* Header do calendário */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.calendar-header h2 {
    color: #1F3B4D;
    font-size: 1.8rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #2E7D6E;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #CBA135;
    transform: scale(1.1);
}

/* Grid do calendário */
.calendar-grid {
    margin-bottom: 30px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    padding: 15px 10px;
    font-weight: 600;
    color: #2E7D6E;
    background: rgba(46, 125, 110, 0.1);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(46, 125, 110, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.calendar-day {
    background: white;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    color: #1F3B4D;
    font-weight: 500;
}

.calendar-day:hover {
    background: rgba(46, 125, 110, 0.1);
}

.calendar-day.other-month {
    color: #ccc;
    background: #f9f9f9;
}

.calendar-day.today {
    background: #2E7D6E;
    color: white;
    font-weight: 700;
}

.calendar-day.selected {
    background: #CBA135;
    color: white;
    font-weight: 700;
}

.calendar-day.available::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #2E7D6E;
    border-radius: 50%;
}

.calendar-day.unavailable {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

/* Slots de horário */
.time-slots {
    border-top: 1px solid rgba(46, 125, 110, 0.1);
    padding-top: 30px;
    margin-top: 30px;
}

.time-slots h3 {
    color: #1F3B4D;
    margin-bottom: 15px;
}

.selected-date {
    background: rgba(46, 125, 110, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #1F3B4D;
    font-weight: 600;
    text-align: center;
}

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

.time-slot {
    padding: 15px 20px;
    border: 2px solid rgba(46, 125, 110, 0.2);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: #1F3B4D;
    font-weight: 500;
}

.time-slot:hover {
    border-color: #2E7D6E;
    background: rgba(46, 125, 110, 0.05);
}

.time-slot.selected {
    background: #2E7D6E;
    color: white;
    border-color: #2E7D6E;
}

.time-slot.unavailable {
    background: #f5f5f5;
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
}

/* Formulário de agendamento */
.booking-form {
    border-top: 1px solid rgba(46, 125, 110, 0.1);
    padding-top: 30px;
    margin-top: 30px;
}

.booking-form h3 {
    color: #1F3B4D;
    margin-bottom: 20px;
}

.booking-summary {
    background: linear-gradient(135deg, rgba(46, 125, 110, 0.1), rgba(203, 161, 53, 0.1));
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid rgba(46, 125, 110, 0.2);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #1F3B4D;
}

.summary-item:last-child {
    margin-bottom: 0;
    font-weight: 700;
    border-top: 1px solid rgba(46, 125, 110, 0.2);
    padding-top: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #1F3B4D;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid rgba(46, 125, 110, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2E7D6E;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-secondary {
    background: #f5f5f5;
    color: #1F3B4D;
    border: 2px solid rgba(46, 125, 110, 0.2);
}

.btn-secondary:hover {
    background: rgba(46, 125, 110, 0.1);
    border-color: #2E7D6E;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 30px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #1F3B4D;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #1F3B4D;
}

.modal-body {
    padding: 30px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #2E7D6E;
    margin-bottom: 20px;
}

.modal-body p {
    color: #1F3B4D;
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-footer {
    padding: 0 30px 30px;
    text-align: center;
}

/* Responsividade */
@media (max-width: 1024px) {
    .agenda-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .agenda-sidebar {
        order: 2;
    }
    
    .agenda-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .agenda-main {
        padding: 40px 0;
    }
    
    .agenda-content {
        padding: 25px;
    }
    
    .agenda-sidebar {
        padding: 25px;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .calendar-day {
        height: 50px;
        font-size: 0.9rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .time-slot {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .weekday {
        padding: 10px 5px;
        font-size: 0.8rem;
    }
    
    .calendar-day {
        height: 40px;
        font-size: 0.8rem;
    }
    
    .agenda-header-content h1 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Footer - Melhorado para links visíveis */
.footer {
    background: #1F3B4D;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: #CBA135;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-brand p {
    opacity: 0.9;
    margin-bottom: 5px;
    color: #F2E9DA;
}

.footer-links h4,
.footer-contact h4 {
    color: #CBA135;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #F2E9DA;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
    display: inline-block;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: #CBA135;
    opacity: 1;
    border-bottom-color: #CBA135;
    transform: translateX(5px);
}

.footer-links a:visited {
    color: #F2E9DA;
}

.footer-links a:visited:hover {
    color: #CBA135;
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.9;
    color: #F2E9DA;
}

.footer-contact i {
    color: #CBA135;
    margin-right: 8px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(203, 161, 53, 0.3);
    padding-top: 30px;
    text-align: center;
    color: #F2E9DA;
    opacity: 0.8;
}

/* Estados de loading */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2E7D6E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
