/* Plugin de Agendamento - Estilos Frontend */

/* Container principal */
.agendamento-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.agendamento-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.agendamento-form-header h2 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.agendamento-form-header p {
    color: #7f8c8d;
    margin: 0;
    font-size: 16px;
}

/* Formulário */
.agendamento-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

/* Botão de envio */
.form-actions {
    text-align: center;
    margin-top: 20px;
}

.btn-submit {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

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

/* Mensagens */
.agendamento-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

/* Lista de agendamentos */
.agendamentos-lista {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.lista-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.lista-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.lista-filters select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

/* Grid de agendamentos */
.agendamentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.agendamento-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.agendamento-id {
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

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

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

.status-cancelado {
    background: #f8d7da;
    color: #721c24;
}

.card-body {
    padding: 20px;
}

.agendamento-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
}

.info-item i {
    width: 16px;
    color: #6c757d;
}

.observacoes {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.observacoes strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
}

.observacoes p {
    margin: 0;
    color: #6c757d;
    line-height: 1.5;
}

.card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.data-criacao {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Estado vazio */
.no-agendamentos {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-agendamentos i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #bdc3c7;
}

.no-agendamentos h3 {
    margin: 0 0 10px 0;
    color: #495057;
}

.no-agendamentos p {
    margin: 0;
    color: #6c757d;
}

.lista-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 14px;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .agendamentos-grid {
        grid-template-columns: 1fr;
    }
    
    .lista-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .agendamento-form-container {
        margin: 10px;
        padding: 15px;
    }
    
    .agendamentos-lista {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .agendamento-form-header h2 {
        font-size: 24px;
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* Notificação de Produto Agendável no Carrinho - Canto Inferior Direito */
.agendavel-cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.agendavel-cart-notification.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.agendavel-notification-content {
    position: relative;
    padding: 20px 25px;
    background: linear-gradient(135deg, #d2691e 0%, #ff8c42 100%);
    border-radius: 12px;
    color: #fff;
}

.agendavel-notification-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #fff;
}

.agendavel-notification-content p strong {
    display: inline;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.agendavel-notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.agendavel-notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.agendavel-notification-close:focus {
    outline: none;
}

/* Responsividade para notificação */
@media (max-width: 768px) {
    .agendavel-cart-notification {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
    
    .agendavel-cart-notification.show {
        transform: translateY(0);
    }
    
    .agendavel-cart-notification {
        transform: translateY(150px);
    }
}

@media (max-width: 480px) {
    .agendavel-notification-content {
        padding: 18px 20px;
    }
    
    .agendavel-notification-content p {
        font-size: 14px;
        padding-right: 10px;
    }
}
