/* Pet Loyalty System - Elementor Widgets Styles */

/* General Styles */
.pet-loyalty-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Dashboard Container */
.pet-dashboard-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.pet-profiles-title, .user-panel-title {
    margin: 0 0 20px 0;
    font-weight: 600;
    font-size: 24px;
    color: #2c3e50;
}

.selected-pet-name {
    font-weight: 500;
    margin-bottom: 10px;
    color: #e74c3c;
    font-size: 18px;
}

.add-pet-button {
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.add-pet-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Pet Profile Card */
.pet-profile-card, .pet-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.pet-profile-card:hover, .pet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.pet-profile-card::before, .pet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.pet-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
    border: 4px solid #ecf0f1;
    transition: all 0.3s ease;
}

.pet-photo:hover {
    border-color: #3498db;
    transform: scale(1.05);
}

.pet-name {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
}

.pet-details {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.pet-details div {
    margin-bottom: 5px;
    font-weight: 500;
}

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

.pet-action-btn, .edit-pet, .delete-pet {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 14px;
}

.pet-action-btn.edit, .edit-pet {
    background: #3498db;
    color: white;
}

.pet-action-btn.edit:hover, .edit-pet:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.pet-action-btn.delete, .delete-pet {
    background: #e74c3c;
    color: white;
}

.pet-action-btn.delete:hover, .delete-pet:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Points Display */
.points-display {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
    margin: 10px 0;
}

.points-card, .pets-selection-card, .progress-card {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.points-card:hover, .pets-selection-card:hover, .progress-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.points-card h3, .pets-selection-card h3, .progress-card h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

/* Progress Bar */
.progress-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 10px;
    transition: width 0.8s ease;
    position: relative;
}


.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #7f8c8d;
}

/* Space Profile Widget */
.pet-space-profile-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.space-section {
    position: relative;
    min-height: 400px;
}

.space-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a237e;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    color: #ffffff;
    font-size: 12px;
}

.rocket-container {
    position: absolute;
    top: 20px;
    left: 20px;
}

.rocket-icon {
    color: #ffffff;
    font-size: 24px;
}

.rocket-trail {
    position: absolute;
    top: 10px;
    left: 15px;
    color: #ff9800;
    font-size: 12px;
}

.orange-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: #ff9800;
    border-radius: 50% 50% 0 0;
    transform: translateY(30%);
}

.agent-text, .pet-name, .agent-id {
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.agent-text {
    font-size: 14px;
}

.pet-name {
    font-size: 24px;
    font-weight: bold;
    margin: 5px 0;
}

.agent-id {
    font-size: 12px;
}

.agent-id:last-child {
    font-size: 18px;
    font-weight: bold;
}

.pet-photo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: #0d47a1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.squadron-text {
    color: white;
    font-size: 12px;
}

.data-section {
    padding: 30px;
    background: #ffffff;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ff9800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-icon {
    color: #ffffff;
    font-size: 24px;
}

.data-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: bold;
    color: #1a237e;
}

.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.data-label {
    color: #ff9800;
    font-weight: 500;
}

.data-value {
    color: #1a237e;
    font-weight: 500;
}

.mission-section {
    margin-top: 30px;
}

.mission-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: #ff9800;
}

.mission-text {
    margin: 0 0 20px 0;
    line-height: 1.5;
    color: #1a237e;
}

.mission-progress-container {
    position: relative;
}

.mission-progress-bar {
    width: 100%;
    height: 20px;
    background: #ffffff;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.mission-progress-fill {
    height: 100%;
    background: #ff9800;
    border-radius: 10px;
    position: relative;
}

.progress-paw {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #ff9800;
}

/* Pet Registration Modal */
.pet-loyalty-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.pet-loyalty-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.pet-loyalty-modal .modal-content {
    position: relative;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.pet-loyalty-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-weight: bold;
    z-index: 10;
}

.pet-loyalty-modal .modal-close:hover {
    color: #ff6b35;
    background: #fff;
    border-color: #ff6b35;
    transform: scale(1.1);
}

.pet-loyalty-modal h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.pet-loyalty-modal .form-fields {
    display: grid;
    gap: 20px;
}

.pet-loyalty-modal .field-group {
    display: flex;
    flex-direction: column;
}

.pet-loyalty-modal .field-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.pet-loyalty-modal .field-group input,
.pet-loyalty-modal .field-group select {
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.pet-loyalty-modal .field-group input:focus,
.pet-loyalty-modal .field-group select:focus {
    outline: none;
    border-color: #3498db;
}

.pet-loyalty-modal .field-group input[type="file"] {
    padding: 8px;
    border: 2px dashed #e1e8ed;
    background: #f8f9fa;
    cursor: pointer;
}

.pet-loyalty-modal .field-group input[type="file"]:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.pet-loyalty-modal .field-group .description {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
    font-style: italic;
}

.pet-loyalty-modal .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.pet-loyalty-modal .submit-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pet-loyalty-modal .submit-button:hover {
    background: #229954;
    transform: translateY(-2px);
}

.pet-loyalty-modal .cancel-button {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pet-loyalty-modal .cancel-button:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* Messages */
.pet-loyalty-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .pet-dashboard-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .pet-profile-card, .pet-card {
        padding: 20px;
    }
    
    .pet-name {
        font-size: 20px;
    }
    
    .points-display {
        font-size: 20px;
    }
    
    .pet-actions {
        flex-direction: column;
    }
    
    .pet-action-btn, .edit-pet, .delete-pet {
        width: 100%;
    }
    
    .pet-space-profile-container {
        flex-direction: column;
    }
    
    .space-section {
        min-height: 300px;
    }
    
    .pet-loyalty-modal .modal-content {
        margin: 20px;
        padding: 20px;
    }
    
    .pet-loyalty-modal .form-actions {
        flex-direction: column;
    }
    
    .pet-loyalty-modal .submit-button,
    .pet-loyalty-modal .cancel-button {
        width: 100%;
    }
}