/* ============================================
   Store Rating Section Modal - Professional Design
   ============================================ */

.store-rating-section-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.store-rating-section-modal:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

/* Header Card */
.store-rating-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.store-rating-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: storeRatingPulse 3s ease-in-out infinite;
}

@keyframes storeRatingPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.store-rating-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.store-name-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.store-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.store-name-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

.store-rating-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rating-icon {
    font-size: 1rem;
    color: #ffd700;
}

.rating-badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
}

/* Body Section */
.store-rating-body {
    padding: 24px;
    background: #f8f9fa;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rating-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-item-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.rating-item-label i {
    color: #667eea;
    font-size: 1rem;
}

.rating-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rating-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent 0%, #dee2e6 20%, #dee2e6 80%, transparent 100%);
    margin: 0 8px;
}

.rating-numeric {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    min-width: 80px;
}

.rating-value {
    font-weight: 700;
    font-size: 1.3rem;
    color: #667eea;
    min-width: 40px;
}

.rating-count {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .store-rating-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .store-name-title {
        font-size: 1.2rem;
    }
    
    .rating-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .rating-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, #dee2e6 20%, #dee2e6 80%, transparent 100%);
        margin: 8px 0;
    }
    
    .rating-item {
        width: 100%;
    }
    
    .store-rating-body {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .store-rating-header-card {
        padding: 16px;
    }
    
    .store-name-title {
        font-size: 1.1rem;
    }
    
    .store-icon {
        font-size: 1.2rem;
        padding: 8px;
    }
    
    .rating-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Profile Modal Styles */
.profile-modal-content .modal-body {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.profile-image-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.profile-image-container img.has-image {
    display: block;
}

.profile-image-container #profileInitial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    user-select: none;
    position: relative;
    z-index: 1;
}

.profile-image-container img.has-image ~ #profileInitial {
    display: none;
}

#profile-form {
    margin-top: 20px;
}

/* Settings Modal Styles */
.settings-modal-content .modal-body {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

/* My Orders Modal Styles */
.myorders-modal-content .modal-body {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.myorders-modal-content .orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.myorders-modal-content .orders-table th,
.myorders-modal-content .orders-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #dee2e6;
}

.myorders-modal-content .orders-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.myorders-modal-content .orders-table tbody tr:hover {
    background-color: #f8f9fa;
}

.myorders-modal-content .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.myorders-modal-content .status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.myorders-modal-content .status-completed {
    background-color: #d4edda;
    color: #155724;
}

.myorders-modal-content .status-dispatched {
    background-color: #cfe2ff;
    color: #084298;
}

.myorders-modal-content .status-shipped {
    background-color: #d1ecf1;
    color: #0c5460;
}

.myorders-modal-content .status-delivered {
    background-color: #d4edda;
    color: #155724;
}

.myorders-modal-content .status-canceled {
    background-color: #f8d7da;
    color: #721c24;
}

/* ============================================
   Order Details Modal - Professional Design
   ============================================ */

.order-details-modal-content {
    padding: 0;
}

/* Order Header Card */
.order-details-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    color: white;
    border-radius: 12px 12px 0 0;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.order-details-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: storeRatingPulse 3s ease-in-out infinite;
}

.order-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.order-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.order-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.order-icon-wrapper i {
    font-size: 1.8rem;
    color: #ffffff;
}

.order-header-info {
    flex: 1;
}

.order-number {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.order-date {
    margin: 4px 0 0 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
}

.order-header-right {
    display: flex;
    align-items: center;
}

.order-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.25);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 0.95rem;
}

.order-status-badge i {
    font-size: 0.6rem;
}

.order-status-badge.status-pending i { color: #ffc107; }
.order-status-badge.status-completed i { color: #28a745; }
.order-status-badge.status-dispatched i { color: #17a2b8; }
.order-status-badge.status-shipped i { color: #007bff; }
.order-status-badge.status-delivered i { color: #28a745; }
.order-status-badge.status-canceled i { color: #dc3545; }

/* Order Info Card */
.order-info-card-modern {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.order-info-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 20px;
    border-bottom: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.order-info-header i {
    color: #667eea;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    padding: 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    border-left: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.info-item:hover {
    background-color: #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item-full {
    grid-column: 1 / -1;
    border-left: none;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1rem;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: #212529;
    font-weight: 600;
}

/* Order Products Card */
.order-products-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.order-products-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 20px;
    border-bottom: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.order-products-header i {
    color: #667eea;
}

.order-products-body {
    padding: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.order-items-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.order-items-table-modern thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.order-items-table-modern th {
    padding: 14px 12px;
    text-align: right;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    white-space: nowrap;
}

.order-items-table-modern th:first-child {
    border-top-right-radius: 8px;
}

.order-items-table-modern th:last-child {
    border-top-left-radius: 8px;
}

.order-items-table-modern tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.order-items-table-modern tbody tr:hover {
    background-color: #f8f9fa;
}

.order-items-table-modern tbody tr:last-child {
    border-bottom: none;
}

.order-items-table-modern td {
    padding: 14px 12px;
    text-align: right;
    color: #495057;
    font-size: 0.9rem;
    border: none;
}

.order-items-table-modern td .currency-value {
    font-weight: 600;
    color: #212529;
}

/* Order Summary */
.order-summary-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.summary-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 20px;
    color: white;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.summary-body {
    padding: 20px;
    background: #ffffff;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
}

.summary-value {
    font-size: 1rem;
    color: #212529;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.currency-symbol {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.summary-total {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 2px solid #dee2e6;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 16px;
}

.summary-total .summary-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
}

.summary-total .summary-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .order-header-right {
        width: 100%;
    }
    
    .order-status-badge {
        width: 100%;
        justify-content: center;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        border-left: none;
    }
    
    .order-items-table-modern {
        font-size: 0.85rem;
    }
    
    .order-items-table-modern th,
    .order-items-table-modern td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .order-details-header-card {
        padding: 16px;
    }
    
    .order-number {
        font-size: 1.2rem;
    }
    
    .order-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .order-icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .order-items-table-modern {
        font-size: 0.8rem;
    }
    
    .order-items-table-modern th,
    .order-items-table-modern td {
        padding: 8px 6px;
    }
}

