/**
 * W_Customer Profile Styles
 * 
 * @package W_Customer
 * @version 1.0.0
 * @author W System Team
 */

/* ===== CUSTOMER PROFILE CARD ===== */
.w-customer-profile {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.customer-profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.customer-profile-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Avatar Section */
.customer-avatar-section {
    text-align: center;
    padding: 30px 20px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.customer-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    margin-bottom: 15px;
}

/* Basic Info Section */
.customer-basic-info {
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.customer-name {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.customer-email,
.customer-phone {
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Points & Tier Section */
.customer-points-tier {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.points-display,
.tier-display {
    text-align: center;
}

.points-label,
.tier-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.points-value {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
}

.tier-value {
    font-size: 18px;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
}

.tier-bronze { background: #cd7f32; }
.tier-silver { background: #c0c0c0; }
.tier-gold { background: #ffd700; }
.tier-platinum { background: #e5e4e2; color: #333; }
.tier-diamond { background: #b9f2ff; color: #333; }

/* Recent Bookings Section */
.customer-recent-bookings {
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.customer-recent-bookings h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.bookings-list {
    max-height: 200px;
    overflow-y: auto;
}

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

.booking-item:last-child {
    border-bottom: none;
}

.booking-service {
    font-weight: 500;
    color: #333;
}

.booking-date {
    color: #666;
    font-size: 14px;
}

.booking-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d4edda; color: #155724; }
.status-completed { background: #d1ecf1; color: #0c5460; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* Actions Section */
.customer-actions {
    padding: 20px 25px;
    text-align: center;
}

.customer-actions .btn {
    margin: 0 5px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .w-customer-profile {
        padding: 10px;
    }
    
    .customer-points-tier {
        flex-direction: column;
        gap: 15px;
    }
    
    .booking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .customer-actions .btn {
        display: block;
        margin: 5px 0;
        width: 100%;
    }
}

/* ===== ERROR STATES ===== */
.w-customer-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    text-align: center;
    margin: 20px 0;
}

/* ===== LOADING STATES ===== */
.customer-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.customer-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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