/* 
 * Estilos do Frontend - Agendamento de Consulta Online
 * Arquivo: assets/css/frontend.css
 */

.aco-booking-container {
    max-width: 600px;
    margin: 0 auto 40px;
    background: #ffffff;
    overflow: hidden;
}

.aco-booking-header {
    background: #fff;
    padding: 24px;
    border-bottom: 1px solid #e5e5e5;
	display: none;
}

.aco-booking-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.aco-booking-info {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.aco-booking-instructions {
    background: #fff !important;
    border-left: 0px solid #0073aa !important;
    padding: 0px !important;
    margin-bottom: 25px !important;
    border-radius: 0px !important;
	font-size: 15px !important;
}

.aco-booking-body {
    padding: 32px;
	background: #F6FAFF;
	border-radius: 20px !important;
}

.aco-form-group {
    margin-bottom: 20px;
}

.aco-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 8px;
}

.aco-form-label .required {
    color: #212121;
}

.aco-form-input,
.aco-form-select {
    width: 100%;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
	border: 1px solid #ABBACD !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
}

.aco-form-input:focus,
.aco-form-select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.aco-form-select {
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Calendário */
.aco-calendar-container {
    border: 1px solid #E7EFFA;
    border-radius: 20px;
    padding: 16px;
    background: #E7EFFA;
}

.aco-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.aco-calendar-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.aco-calendar-nav {
    display: flex;
    gap: 8px;
}

.aco-calendar-nav button {
    width: 32px !important;
    height: 32px !important;
    border: none !important;
    background: #fff !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
}

.aco-calendar-nav button:hover {
    background: #2196F3;
    color: white;
}

.aco-calendar-nav-btn {
	padding: 0px !important;
	border-radius: 100px !important;
	border: none !important;
	line-height: 40px !important;
}
.aco-calendar-nav-btn:focus {
	background:#0073aa !important;
}
.aco-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.aco-calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 8px 0;
}

.aco-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.aco-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: #0000;
    color: #333;
	font-weight: 600;
}

.aco-calendar-day:not(.disabled):not(.empty):hover {
    background: #d5dde9;
    transform: scale(1.05);
}

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

.aco-calendar-day.empty {
    cursor: default;
    background: transparent;
}

.aco-calendar-day.selected {
    background: #2196F3;
    color: white;
    font-weight: 600;
}

.aco-calendar-day.today {
    border-color: #2196F3;
}

/* Horários */
.aco-time-slots {
    margin-top: 16px;
}

.aco-time-slots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.aco-time-slots-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.aco-time-slots-nav {
    display: flex;
    gap: 8px;
}

.aco-time-nav-btn {
    background: transparent;
    border: none !important;
    color: #2196F3;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    transition: all 0.2s ease;
    border-radius: 100px !important;
	padding: 0px !important;
	width: 35px !important;
	height: 35px !important;
}

.aco-time-nav-btn:hover {
    background: #005177 !important;
}

.aco-time-nav-btn:focus {
    background: #005177 !important;
}

.aco-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.aco-time-slot {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    background: white;
}

.aco-time-slot:hover {
    border-color: #2196F3;
    background: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.aco-time-slot.selected {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.aco-time-slot.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #e5e5e5;
}

.aco-time-slot.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Detalhes do Agendamento */
.aco-booking-details {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.aco-booking-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
}

.aco-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.aco-detail-label {
    color: #666;
}

.aco-detail-value {
    font-weight: 600;
    color: #333;
}

.aco-price-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

.aco-price-row .aco-detail-value {
    font-size: 18px;
    color: #2196F3;
}

/* Botão de Submit */
.aco-submit-btn {
    width: 100% !important;
    padding: 14px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aco-submit-btn:hover {
	background: #2196F3 !important;
	color: #fff !important;
    transform: translateY(-0px);
    box-shadow: 0 0px 0px rgba(33, 150, 243, 0.3);
}

.aco-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mensagens */
.aco-alert {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.aco-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.aco-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.aco-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading */
.aco-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.aco-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: acoSpin 1s linear infinite;
    margin: 0 auto;
}

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

/* Meus Agendamentos */
.aco-my-bookings {
    max-width: 1000px;
    margin: 0 auto 40px;
}

.aco-my-bookings h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.aco-bookings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.aco-bookings-table thead {
    background: #f8f9fa;
}

.aco-bookings-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    border-bottom: 2px solid #e5e5e5;
}

.aco-bookings-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #666;
}

.aco-bookings-table tbody tr:hover {
    background: #f8f9fa;
}

.aco-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.aco-status-pending {
    background: #fff3cd;
    color: #856404;
}

.aco-status-confirmed {
    background: #d4edda;
    color: #155724;
}

.aco-status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.aco-status-cancelled,
.aco-status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Responsividade */
@media (max-width: 768px) {
    .aco-booking-container {
        border-radius: 0;
        box-shadow: none;
    }
    
    .aco-booking-header,
    .aco-booking-body {
        padding: 16px;
    }
    
    .aco-time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .aco-bookings-table {
        font-size: 12px;
    }
    
    .aco-bookings-table th,
    .aco-bookings-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .aco-time-slots-grid {
        grid-template-columns: 1fr;
    }
    
    .aco-bookings-table {
        display: block;
        overflow-x: auto;
    }
}