/* Estilos específicos para a página de Agendamentos */

.schedule-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .schedule-container {
        grid-template-columns: 1fr;
    }
}

/* Calendário */
.calendar-section {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
}

.calendar-nav {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background-color: white;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.calendar-day:hover {
    background-color: var(--light-orange);
}

.calendar-day.today {
    background-color: var(--primary);
    color: white;
}

.calendar-day.selected {
    background-color: var(--secondary);
    color: white;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.has-events::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary);
}

.calendar-day.today.has-events::after {
    background-color: white;
}

/* Lista de Agendamentos */
.schedule-list-section {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.schedule-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.schedule-list-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.schedule-list-header h3 span {
    color: var(--primary);
}

.schedule-filter select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    font-size: 14px;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.schedule-filter select:focus {
    outline: none;
    border-color: var(--primary);
}

.schedule-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.schedule-item {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    background-color: var(--light-gray);
    transition: var(--transition);
}

.schedule-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.schedule-item.personal {
    border-left-color: var(--primary);
}

.schedule-item.group {
    border-left-color: var(--secondary);
}

.schedule-item.assessment {
    border-left-color: #4CD964;
}

.schedule-time {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.schedule-time i {
    margin-right: 8px;
}

.schedule-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.schedule-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.schedule-instructor {
    font-size: 14px;
    color: var(--gray);
}

.schedule-instructor i {
    margin-right: 5px;
}

.schedule-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-confirmed {
    background-color: rgba(76, 217, 100, 0.1);
    color: #4CD964;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: #FFC107;
}

.status-cancelled {
    background-color: rgba(108, 117, 125, 0.1);
    color: var(--gray);
}

.day-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.day-stat {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--light-gray);
}

.day-stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary);
}

.day-stat-label {
    font-size: 12px;
    color: var(--gray);
}

/* Próximos Agendamentos */
.upcoming-schedules {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.upcoming-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.upcoming-card {
    padding: 20px;
    border-radius: 10px;
    background-color: var(--light-gray);
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
}

.upcoming-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.upcoming-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.upcoming-card-date {
    font-weight: 600;
    color: var(--primary);
}

.upcoming-card-type {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background-color: rgba(42, 92, 170, 0.1);
    color: var(--secondary);
}

.upcoming-card-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.upcoming-card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.upcoming-card-time {
    font-size: 14px;
    color: var(--gray);
    display: flex;
    align-items: center;
}

.upcoming-card-time i {
    margin-right: 5px;
}

.upcoming-card-participants {
    font-size: 14px;
    color: var(--gray);
    display: flex;
    align-items: center;
}

.upcoming-card-participants i {
    margin-right: 5px;
}

/* Scrollbar personalizado */
.schedule-list::-webkit-scrollbar {
    width: 6px;
}

.schedule-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.schedule-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.schedule-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}