/* ============================================
   Seller Dashboard - Styles
   ============================================ */

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --bg-gradient-start: #065f46;
    --bg-gradient-end: #047857;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Dashboard Container */
.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
}

/* View Containers */
.view-container {
    display: none;
}

.view-container.active {
    display: block;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: var(--glass-bg);
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.section-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 22px;
}

.add-seller-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-seller-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

/* Sellers Grid */
.sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.seller-card {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.seller-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-strong);
}

.seller-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.seller-card-icon {
    font-size: 48px;
    cursor: pointer;
    position: relative;
}

.seller-delete-btn {
    background: #fee2e2;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.seller-card:hover .seller-delete-btn {
    opacity: 1;
}

.seller-delete-btn:hover {
    background: #fecaca;
    transform: scale(1.1);
}

.seller-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    cursor: pointer;
}

.seller-card-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Add Seller Card */
.seller-card.add-card {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 2px dashed var(--primary);
}

.seller-card.add-card:hover {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%);
}

.add-card-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 12px;
}

.add-card-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

/* Seller Detail Header */
.seller-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    background: var(--glass-bg);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.back-btn {
    padding: 10px 20px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.back-btn:hover {
    background: #e5e7eb;
}

.current-seller-info h2 {
    margin: 0;
    font-size: 20px;
    color: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-strong);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-body input,
.modal-body textarea {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.modal-body input:focus,
.modal-body textarea:focus {
    border-color: var(--primary);
}

.modal-body textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cancel-btn {
    padding: 10px 20px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    color: var(--text-primary);
}

.cancel-btn:hover {
    background: #e5e7eb;
}

.confirm-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.confirm-btn:hover {
    background: var(--primary-dark);
}

/* Header */
.header {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.logo-icon {
    font-size: 32px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.tagline {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    background: var(--glass-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.tab-btn:hover {
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Filter Bar */
.filter-bar {
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
}

.filter-bar label {
    font-weight: 500;
    color: var(--text-primary);
}

.filter-bar select {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.filter-bar select:focus {
    border-color: var(--primary);
}

/* Orders Container */
.orders-container {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 20px;
    min-height: 300px;
    box-shadow: var(--shadow-soft);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.4s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Order Card */
.order-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.order-card.new {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.order-card.confirmed {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.order-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.order-info .seller-name {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.order-info .order-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.order-info .order-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-secondary);
}

.order-id {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 6px;
}

.payment-badge {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.order-price {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.action-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn.confirm {
    background: var(--primary);
    color: white;
}

.action-btn.confirm:hover {
    background: var(--primary-dark);
}

.action-btn.delete {
    background: #fee2e2;
    color: var(--danger);
}

.action-btn.delete:hover {
    background: #fecaca;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.order-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
}

.order-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.order-status.confirmed {
    background: #d1fae5;
    color: #065f46;
}

/* New Order Badge */
.new-badge {
    background: var(--accent);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Add Product Form */
.add-product-form {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.add-product-form h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.form-grid input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-grid input:focus {
    border-color: var(--primary);
}

.form-grid input.full-width {
    grid-column: 1 / -1;
}

.add-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}

/* Products List */
.products-list {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.products-list h3 {
    margin-bottom: 20px;
    color: #1f2937;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.products-header h3 {
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sync-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sync-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.sync-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.delete-dup-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-dup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.product-item {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.product-item:hover {
    border-color: var(--primary);
}

.product-item-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-item-info .product-meta {
    font-size: 13px;
    color: var(--text-secondary);
}

.product-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.product-item-price {
    background: var(--primary);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.delete-product-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #fee2e2;
    color: var(--danger);
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-product-btn:hover {
    background: #fecaca;
}

/* Toggle Availability Button */
.toggle-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn.available {
    background: #d1fae5;
}

.toggle-btn.unavailable {
    background: #fee2e2;
}

.toggle-btn:hover {
    transform: scale(1.1);
}

.toggle-btn.bidding-on {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.toggle-btn.bidding-off {
    background: #f3f4f6;
    opacity: 0.6;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Bid Info Display */
.bid-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0;
    padding: 8px 12px;
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    border-radius: 8px;
    font-size: 12px;
}

.bid-info .original-price {
    color: #78716c;
    text-decoration: line-through;
}

.bid-info .bid-price {
    color: #d97706;
    font-weight: 600;
}

.bid-info .agreed-price {
    color: #059669;
    font-weight: 600;
}

.bid-badge {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
}

.order-card.bid-pending {
    border-left: 4px solid #f59e0b;
}

.order-status.pending_agreement {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.order-status.pending_payment {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    color: #1e40af;
}

.action-btn.set-price {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.action-btn.set-price:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
}

/* Set Price Modal */
.set-price-modal-content {
    max-width: 420px;
}

.price-comparison {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.price-item {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.price-item.original {
    background: #f3f4f6;
}

.price-item.bid {
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
}

.price-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.price-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.agreed-price-input {
    margin-top: 16px;
}

.agreed-price-input label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.agreed-price-input .input-group {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.agreed-price-input .currency {
    padding: 12px 16px;
    background: #f3f4f6;
    font-weight: 600;
    color: #6b7280;
}

.agreed-price-input input {
    flex: 1;
    padding: 12px;
    border: none;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
}

.agreed-price-input input:focus {
    outline: none;
}

.quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.quick-btn {
    flex: 1;
    padding: 10px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-btn:hover {
    background: #e5e7eb;
}

/* Responsive */
@media (max-width: 600px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid input.full-width {
        grid-column: 1;
    }

    .order-header {
        flex-direction: column;
        gap: 12px;
    }

    .product-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .product-item-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Chat Button */
.action-btn.chat {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

.action-btn.chat:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* Chat Modal */
.chat-modal-content {
    max-height: 80vh;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f9fafb;
}

.chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.chat-message.seller-sent {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.buyer-sent {
    align-self: flex-start;
    background: white;
    color: var(--text-primary);
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

.chat-message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: white;
    border-radius: 0 0 16px 16px;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-send-btn:hover {
    background: var(--primary-dark);
}

.chat-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

/* Feedback Button */
.feedback-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Feedback List Modal */
.feedback-list-modal-content {
    max-width: 500px;
    max-height: 70vh;
}

.feedback-list {
    overflow-y: auto;
    max-height: 50vh;
    padding: 16px;
}

.feedback-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.feedback-item:last-child {
    margin-bottom: 0;
}

.feedback-item:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.feedback-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.feedback-type-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border-radius: 12px;
}

.feedback-item.unread {
    border-left: 4px solid #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.feedback-search-query {
    font-size: 13px;
    color: #8b5cf6;
    margin-bottom: 8px;
    padding: 6px 10px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 6px;
}

.feedback-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.feedback-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.feedback-delete-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-delete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.empty-feedback {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-feedback-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

/* Order Notification Badges */
.seller-card-icon {
    position: relative;
    display: inline-block;
}

.order-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    animation: badgePulse 2s infinite;
}

.order-badge.new {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.order-badge.ongoing {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    animation: none;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

