/* Boscos Pet Data - Frontend Styles */

.bpd-pets-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.bpd-pets-container h2 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

.bpd-no-pets {
    text-align: center;
    padding: 3rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.bpd-no-pets p {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 1.1rem;
}

.bpd-pets-list {
    margin-bottom: 2rem;
}

.bpd-pet-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.bpd-pet-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.bpd-pet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.bpd-pet-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.bpd-pet-actions {
    display: flex;
    gap: 0.5rem;
}

.bpd-pet-actions .button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Botón de editar suscripción */
.bpd-edit-subscription-btn {
    background: #2196F3 !important;
    color: white !important;
    border: none !important;
}

.bpd-edit-subscription-btn:hover {
    background: #1976D2 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33,150,243,0.3);
}

.bpd-pet-details {
    color: #666;
}

.bpd-pet-details p {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
}

.bpd-pet-details strong {
    color: #333;
}

/* Información de suscripciones */
.bpd-pet-subscriptions {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.bpd-pet-subscriptions p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #1976D2;
}

.bpd-subscriptions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bpd-subscriptions-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.bpd-subscriptions-list li:last-child {
    border-bottom: none;
}

.subscription-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

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

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

.subscription-next-payment {
    font-size: 0.8rem;
    color: #6c757d;
}

.bpd-add-pet-btn {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto 0;
    text-align: center;
    text-decoration: none;
}

.bpd-add-pet-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76,175,80,0.3);
}

.bpd-pet-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bpd-form-title {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.bpd-form-row {
    margin-bottom: 1.5rem;
}

.bpd-form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.bpd-form-row input,
.bpd-form-row select,
.bpd-form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.bpd-form-row input:focus,
.bpd-form-row select:focus,
.bpd-form-row textarea:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76,175,80,0.1);
}

.bpd-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.bpd-form-actions .button {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.bpd-submit-btn {
    background: #4caf50;
    color: #fff;
    border: none;
}

.bpd-submit-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76,175,80,0.3);
}

.bpd-cancel-btn {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
}

.bpd-cancel-btn:hover {
    background: #e0e0e0;
    border-color: #bbb;
    transform: translateY(-2px);
}

#bpd-messages {
    margin-top: 1rem;
}

.bpd-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .bpd-pets-container {
        padding: 1rem;
    }
    
    .bpd-pet-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .bpd-pet-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .bpd-form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .bpd-form-actions .button {
        width: 100%;
        max-width: 300px;
    }
}

/* WooCommerce My Account Integration */
.woocommerce-MyAccount-content .bpd-pets-container {
    padding: 0;
}

.woocommerce-MyAccount-content .bpd-pets-container h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Order and Subscription Pet Data */
.bpd-order-pet-data,
.bpd-subscription-pet-data {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #4caf50;
}

.bpd-order-pet-data h3,
.bpd-subscription-pet-data h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.bpd-order-pet-data p,
.bpd-subscription-pet-data p {
    margin: 0.25rem 0;
    color: #666;
}

/* Pet Selector in Admin */
.bpd-pet-selector {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.bpd-pet-selector h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.bpd-pet-selector select {
    width: 100%;
    max-width: 300px;
    margin-bottom: 1rem;
}

.bpd-pet-selector .button {
    background: #4caf50;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.bpd-pet-selector .button:hover {
    background: #45a049;
}

/* Estilos para botón de eliminar desactivado */
.bpd-delete-pet-btn:disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    border-color: #ccc !important;
}

.bpd-delete-pet-btn:disabled:hover {
    background: #ccc !important;
    color: #666 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Tooltip para botón desactivado */
.bpd-delete-pet-btn[title]:hover:disabled {
    position: relative;
}

.bpd-delete-pet-btn[title]:hover:disabled::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.bpd-delete-pet-btn[title]:hover:disabled::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
} 