/* Account Page Styles */

/* Skeleton Loading Styles */
.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-user-name,
.skeleton-user-status,
.skeleton-nav-item,
.skeleton-section-title,
.skeleton-input,
.skeleton-button,
.skeleton-content {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-user-name {
    height: 24px;
    width: 120px;
    margin: 10px auto;
}

.skeleton-user-status {
    height: 16px;
    width: 100px;
    margin: 5px auto;
}

.skeleton-nav-item {
    height: 40px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-section-title {
    height: 28px;
    width: 200px;
    margin-bottom: 20px;
}

.skeleton-input {
    height: 40px;
    width: 100%;
    margin-bottom: 15px;
}

.skeleton-button {
    height: 40px;
    width: 120px;
    margin-top: 10px;
}

.skeleton-content {
    height: 300px;
    width: 100%;
}

@keyframes loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Profile Picture Section */
.profile-picture-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.current-picture {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.current-picture:hover {
    border-color: var(--accent-color, #007bff);
}

.current-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.current-picture:hover .picture-overlay {
    opacity: 1;
}

.picture-overlay i {
    font-size: 24px;
    margin-bottom: 5px;
}

.picture-overlay span {
    font-size: 12px;
    text-align: center;
}

.picture-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-upload,
.btn-remove-picture {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-upload {
    background-color: var(--accent-color, #007bff);
    color: white;
}

.btn-upload:hover {
    background-color: var(--accent-dark, #0056b3);
}

.btn-remove-picture {
    background-color: #dc3545;
    color: white;
}

.btn-remove-picture:hover {
    background-color: #c82333;
}

/* Wishlist Statistics */
.wishlist-statistics {
    margin-bottom: 2rem;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* background: var(--accent-color, #007bff); */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-info h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.stat-info span {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Wishlist Card Enhancements */
.wishlist-card .card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wishlist-card:hover .card-actions {
    opacity: 1;
}

.wishlist-card .form-check {
    position: absolute;
    top: 50px;
    right: 12px;
    z-index: 2;
}

.wishlist-card .form-check-input {
    transform: scale(1.2);
}

/* Badge Styles */
.price-drop-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
}

/* Review Card Enhancements */
.review-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-header .product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.review-meta h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.review-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.pending {
    background: #ffc107;
    color: #000;
}

.status-badge.approved {
    background: #28a745;
    color: white;
}

.status-badge.rejected {
    background: #dc3545;
    color: white;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.star-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-btn:hover,
.star-btn.selected {
    color: #ffc107;
}

/* Address Card Enhancements */
.address-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.address-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.address-card.default {
    border-color: var(--accent-color, #007bff);
    background: rgba(0, 123, 255, 0.05);
}

.default-badge {
    background: var(--accent-color, #007bff);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.contact-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

/* Danger Zone */
.danger-zone {
    border: 1px solid #dc3545;
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.05);
}

.danger-zone h3 {
    color: #dc3545;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Loading States */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-picture-section {
        justify-content: center;
        text-align: center;
    }
    
    .picture-actions {
        align-items: center;
    }
    
    .stat-card {
        text-align: center;
        flex-direction: column;
        padding: 1rem;
    }
    
    .review-header {
        flex-direction: column;
        text-align: center;
    }
    
    .address-card .card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
}

/* Form Enhancements */
.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message {
    display: none;
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.php-email-form .loading {
    background: #f8f9fa;
    color: #6c757d;
    text-align: center;
}

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

.php-email-form .sent-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-actions button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.bulk-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bulk-actions button:not(:disabled):hover {
    background: #f8f9fa;
}

/* Reviewable Items */
.reviewable-items-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.reviewable-items {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 10px;
}

.reviewable-item {
    flex: 0 0 auto;
    width: 200px;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

.reviewable-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.reviewable-item h6 {
    font-size: 14px;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.reviewable-item small {
    display: block;
    margin-bottom: 3px;
}

.btn-review-item {
    background: var(--accent-color, #007bff);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-review-item:hover {
    background: var(--accent-dark, #0056b3);
}

.account .wishlist-grid {
    display: flex !important;
}

.account .addresses-grid {
    display: flex !important;
    justify-content: center;
}

/* Wishlist variation tags */
.wishlist-variations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.variation-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8f9fa;
    color: #444;
    line-height: 1.4;
}

.variation-tag.variation-color {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.12);
}

.variation-tag.variation-size {
    background: #f0f4ff;
    border-color: rgba(66, 99, 235, 0.2);
    color: #4263eb;
}

.variation-tag .color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.variation-tag .bi {
    font-size: 0.75rem;
    opacity: 0.7;
}

.variation-tag-text {
    white-space: nowrap;
}

/* Out of stock unavailable label */
.btn-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #f8f8f8;
    border: 1px dashed #ccc;
    color: #999;
    font-size: 0.82rem;
    font-style: italic;
    cursor: default;
    width: 100%;
    justify-content: center;
}

.btn-unavailable .bi {
    font-size: 0.85rem;
    color: #bbb;
}