/* LatePoint Magic Link Manager - Estilos */

.latepoint-magic-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.latepoint-magic-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.latepoint-magic-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.latepoint-magic-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.latepoint-magic-header p {
    margin: 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

.latepoint-booking-info {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.latepoint-booking-info h2,
.latepoint-booking-info h3 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.booking-details {
    display: grid;
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4facfe;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.detail-item strong {
    color: #555;
    font-weight: 600;
}

.status-approved {
    background: #4caf50;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-pending {
    background: #ff9800;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-cancelled {
    background: #f44336;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-completed {
    background: #2196f3;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.latepoint-actions {
    padding: 30px;
}

.latepoint-actions h2 {
    color: #333;
    margin: 0 0 25px 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
}

.btn-reschedule {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-reschedule:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

.btn-cancel {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

.btn-primary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.reschedule-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
    border: 2px solid #e9ecef;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reschedule-form h3,
.reschedule-form h4 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

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

.latepoint-messages {
    padding: 0 30px 30px;
}

.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 500;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Estilos para o shortcode */
.latepoint-magic-shortcode {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.latepoint-magic-shortcode .latepoint-booking-info {
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.latepoint-magic-shortcode .latepoint-actions {
    padding: 25px;
}

.latepoint-magic-shortcode .action-buttons {
    flex-direction: column;
    align-items: center;
}

.latepoint-magic-shortcode .btn {
    width: 100%;
    max-width: 300px;
}

/* Responsividade */
@media (max-width: 768px) {
    .latepoint-magic-page {
        padding: 10px;
    }
    
    .latepoint-magic-container {
        border-radius: 15px;
    }
    
    .latepoint-magic-header {
        padding: 30px 20px;
    }
    
    .latepoint-magic-header h1 {
        font-size: 2rem;
    }
    
    .latepoint-booking-info,
    .latepoint-actions {
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .latepoint-magic-header h1 {
        font-size: 1.8rem;
    }
    
    .latepoint-magic-header p {
        font-size: 1rem;
    }
    
    .reschedule-form {
        padding: 20px;
    }
}



/* ============================================================================
   ESTILOS PARA FORMULÁRIO DE SOLICITAÇÃO DE MAGIC LINK
   ============================================================================ */

.latepoint-request-link-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

.latepoint-request-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.latepoint-request-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.latepoint-request-header p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.latepoint-request-form {
    padding: 30px;
}

.latepoint-request-form .form-group {
    margin-bottom: 25px;
}

.latepoint-request-form label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.label-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.latepoint-request-form input[type="email"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.latepoint-request-form input[type="email"]:focus {
    outline: none;
    border-color: #4facfe;
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
    transform: translateY(-2px);
}

.field-help {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.btn-request {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Loading State */
.loading-state {
    padding: 40px 30px;
    text-align: center;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-state p {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

/* Results Container */
.results-container {
    padding: 30px;
}

.success-message {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 20px;
}

.message-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.success-message h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.success-message p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Multiple Bookings */
.multiple-bookings h3 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.multiple-bookings > p {
    color: #666;
    margin: 0 0 25px 0;
    font-size: 1rem;
    line-height: 1.5;
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.booking-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4facfe;
    transition: all 0.3s ease;
}

.booking-card:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
}

.booking-info h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.booking-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.booking-details .detail {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.booking-details .status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.booking-details .status.status-approved {
    background: #4caf50;
}

.booking-details .status.status-pending {
    background: #ff9800;
}

.btn-manage {
    padding: 10px 20px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-manage:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
    text-decoration: none;
    color: white;
}

/* Try Again Button */
.try-again-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.try-again-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Messages for Request Form */
.latepoint-request-link-container .latepoint-messages {
    padding: 0 30px 30px;
}

.latepoint-request-link-container .message {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    animation: slideDown 0.4s ease-out;
}

.latepoint-request-link-container .message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.latepoint-request-link-container .message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsividade para o formulário de solicitação */
@media (max-width: 768px) {
    .latepoint-request-link-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .latepoint-request-header {
        padding: 25px 20px;
    }
    
    .latepoint-request-header h2 {
        font-size: 1.5rem;
    }
    
    .latepoint-request-form {
        padding: 25px 20px;
    }
    
    .results-container {
        padding: 25px 20px;
    }
    
    .booking-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .booking-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .btn-manage {
        align-self: stretch;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .latepoint-request-header h2 {
        font-size: 1.3rem;
    }
    
    .latepoint-request-header p {
        font-size: 0.9rem;
    }
    
    .latepoint-request-form input[type="email"] {
        padding: 12px 16px;
    }
    
    .btn-request {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Animações adicionais */
.booking-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.booking-card:nth-child(1) { animation-delay: 0.1s; }
.booking-card:nth-child(2) { animation-delay: 0.2s; }
.booking-card:nth-child(3) { animation-delay: 0.3s; }
.booking-card:nth-child(4) { animation-delay: 0.4s; }
.booking-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de hover melhorados */
.latepoint-request-form input[type="email"]:hover {
    border-color: #4facfe;
    background: white;
}

.btn-request:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

.btn-request:active {
    transform: translateY(0);
}

/* Indicador de campo obrigatório */
.latepoint-request-form input[type="email"]:invalid {
    border-color: #dc3545;
}

.latepoint-request-form input[type="email"]:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Melhorias de acessibilidade */
.latepoint-request-form input[type="email"]:focus,
.btn-request:focus,
.btn-manage:focus {
    outline: 2px solid #4facfe;
    outline-offset: 2px;
}

/* Estados de loading para botões */
.btn-request.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-request.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

