/* Supplier Quotations Management - Mobile Optimized */
:root {
    --primary: #0B4F6C;
    --primary-dark: #083b4f;
    --primary-light: #1a6b8a;
    --secondary: #10B981;
    --accent: #F59E0B;
    --danger: #EF4444;
    --dark: #1F2937;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--gray-100);
    color: var(--dark);
    line-height: 1.5;
    padding-bottom: 120px;
}

/* Mobile Header */
.mobile-header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.logo-circle {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    font-style: italic;
}

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

.logo-text span {
    color: var(--primary);
}

.menu-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Page Title */
.page-title {
    padding: 8px 16px 12px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.page-title p {
    font-size: 14px;
    color: var(--gray-500);
}

/* Quick Stats */
.quick-stats {
    display: flex;
    gap: 8px;
    padding: 8px 16px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.quick-stats::-webkit-scrollbar {
    display: none;
}

.stat-item {
    flex: 0 0 auto;
    min-width: 70px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 30px;
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.stat-item:active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(0.95);
}

.stat-item:active .stat-value,
.stat-item:active .stat-label {
    color: white;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 10px;
    color: var(--gray-500);
}

/* Search and Filter Bar */
.search-filter-bar {
    display: flex;
    gap: 8px;
    padding: 8px 16px 16px;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--gray-300);
    border-radius: 30px;
    font-size: 14px;
    background: var(--white);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    background: var(--white);
    color: var(--gray-600);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Filter Panel */
.filter-panel {
    background: var(--white);
    padding: 20px 16px;
    border-top: 1px solid var(--gray-200);
    animation: slideDown 0.2s ease;
}

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

.filter-section {
    margin-bottom: 20px;
}

.filter-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-section select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--white);
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.apply-btn, .reset-btn {
    flex: 1;
    padding: 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

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

.apply-btn:active {
    background: var(--primary-dark);
}

.reset-btn {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.reset-btn:active {
    background: var(--gray-100);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    padding: 0 16px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 0 0 auto;
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

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

/* Main Content */
.main-content {
    padding: 0 16px 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

/* Quotations List */
.quotations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Quote Card */
.quote-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
    cursor: pointer;
}

.quote-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.quote-card.draft { border-left: 4px solid var(--gray-500); }
.quote-card.sent { border-left: 4px solid var(--primary); }
.quote-card.accepted { border-left: 4px solid var(--secondary); background: #F0FDF4; }
.quote-card.rejected { border-left: 4px solid var(--danger); opacity: 0.7; }
.quote-card.expired { border-left: 4px solid var(--gray-400); opacity: 0.7; }

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

.quote-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.quote-number {
    font-size: 12px;
    color: var(--gray-500);
}

.quote-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.quote-badge.draft { background: var(--gray-200); color: var(--gray-700); }
.quote-badge.sent { background: #EFF6FF; color: var(--primary); }
.quote-badge.accepted { background: #E7F5E8; color: var(--secondary); }
.quote-badge.rejected { background: #FEE2E2; color: var(--danger); }
.quote-badge.expired { background: var(--gray-200); color: var(--gray-600); }

/* Buyer Info */
.buyer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.buyer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    overflow: hidden;
}

.buyer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buyer-details {
    flex: 1;
}

.buyer-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.buyer-company {
    font-size: 12px;
    color: var(--gray-500);
}

/* Items Preview */
.items-preview {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--gray-600);
}

.preview-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--gray-300);
}

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

.item-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.item-qty {
    font-weight: 600;
    color: var(--primary);
    margin-right: 12px;
}

.item-price {
    font-weight: 600;
    color: var(--dark);
}

/* Quote Footer */
.quote-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
}

.quote-total {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
}

.quote-validity {
    font-size: 11px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.quote-validity.expiring {
    color: var(--danger);
}

.quote-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.action-btn.delete:active {
    background: var(--danger);
    border-color: var(--danger);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-state i {
    font-size: 48px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.create-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    padding: 14px 32px;
    background: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* Quick Actions */
.quick-actions {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    padding: 16px;
    display: flex;
    gap: 12px;
    background: linear-gradient(to top, var(--white), transparent);
    z-index: 90;
    pointer-events: none;
}

.quick-actions .action-btn {
    flex: 1;
    height: 48px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    pointer-events: auto;
    box-shadow: var(--shadow-lg);
}

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

.quick-actions .action-btn {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    padding: 8px 0 12px;
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray-400);
    font-size: 11px;
    gap: 4px;
}

.nav-item i {
    font-size: 20px;
}

.nav-item.active {
    color: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
}

.modal-content.modal-lg {
    max-width: 600px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Quote Items */
.quote-item {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.quote-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 600;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 16px;
}

.quote-item-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
}

.quote-item-fields input {
    padding: 10px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.quote-item-fields input:focus {
    outline: none;
    border-color: var(--primary);
}

.add-item-btn {
    width: 100%;
    padding: 12px;
    background: var(--white);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

/* Buyer Info Card */
.buyer-info-card {
    background: #EFF6FF;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--primary-light);
}

.buyer-info-card h4 {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 12px;
}

.buyer-detail-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.buyer-detail-label {
    width: 80px;
    color: var(--gray-600);
}

.buyer-detail-value {
    flex: 1;
    font-weight: 500;
}

/* Quote Summary */
.quote-summary {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--gray-300);
}

.summary-row.total {
    border-bottom: none;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    padding-top: 12px;
}

/* Form Elements */
.form-section {
    margin-bottom: 24px;
}

.form-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--dark);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--gray-700);
}

.form-group .required {
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Quote Detail View */
.quote-detail-section {
    margin-bottom: 20px;
}

.quote-detail-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 8px;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}

.detail-label {
    width: 100px;
    color: var(--gray-500);
}

.detail-value {
    flex: 1;
    font-weight: 500;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 16px;
}

.items-table th {
    text-align: left;
    padding: 10px;
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
}

.items-table td {
    padding: 10px;
    border-bottom: 1px solid var(--gray-200);
}

/* Modal Footer Buttons */
.modal-footer .btn-primary,
.modal-footer .btn-success,
.modal-footer .btn-secondary,
.modal-footer .btn-danger {
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

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

.btn-success {
    background: var(--secondary);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

/* Delete Modal */
.delete-icon {
    text-align: center;
    margin-bottom: 20px;
}

.delete-icon i {
    font-size: 48px;
    color: var(--danger);
}

.delete-warning {
    color: var(--danger);
    font-size: 13px;
    margin-top: 8px;
    text-align: center;
}

/* Success Modal */
.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.modal-icon.success {
    background: #E7F5E8;
    color: var(--secondary);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 140px;
    left: 16px;
    right: 16px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 14px;
    text-align: center;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    max-width: 400px;
    margin: 0 auto;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--secondary);
}

.toast.error {
    background: var(--danger);
}

/* Responsive */
@media (max-width: 480px) {
    .filter-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
    
    .quote-item-fields {
        grid-template-columns: 1fr;
    }
    
    .quote-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .quote-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
/* ============================================
   COMPACT HEADER & FOOTER STYLES
   ============================================ */

/* Compact Header */
.compact-header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 100;
    padding: 8px 16px;
}

.compact-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.compact-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.logo-cube {
    position: relative;
    width: 32px;
    height: 32px;
    perspective: 800px;
}

.logo-cube .cube {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(18deg) rotateY(28deg);
}

.logo-cube .face {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #6B21E5, #9B4DFF);
    border-radius: 4px;
}

.logo-cube .front { transform: translateZ(16px); }
.logo-cube .right { transform: rotateY(90deg) translateZ(16px); }
.logo-cube .top { transform: rotateX(90deg) translateZ(16px); }

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

.logo-text span {
    color: var(--primary-light);
}

.back-btn, .filter-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    color: var(--gray-600);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Compact Stats */
.compact-stats {
    display: flex;
    gap: 8px;
    margin: 12px 0 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.compact-stats::-webkit-scrollbar {
    display: none;
}

.stat-chip {
    flex: 0 0 auto;
    background: var(--gray-100);
    padding: 6px 12px;
    border-radius: 30px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.stat-chip .stat-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

.stat-chip:active {
    background: var(--primary);
    color: white;
}

.stat-chip:active .stat-value {
    color: white;
}

/* Compact Search */
.compact-search {
    position: relative;
    margin-top: 8px;
}

.compact-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 14px;
}

.compact-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--gray-200);
    border-radius: 30px;
    font-size: 14px;
    background: var(--gray-50);
}

.compact-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

/* ============================================
   REPLY MODAL STYLES
   ============================================ */
.reply-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.reply-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.reply-method i {
    font-size: 28px;
}

.reply-method i.fa-whatsapp { color: #25D366; }
.reply-method i.fa-envelope { color: #8B5CF6; }
.reply-method i.fa-phone-alt { color: #3B82F6; }
.reply-method i.fa-comment-dots { color: var(--primary); }

.reply-method span {
    font-size: 13px;
    font-weight: 500;
}

.reply-method:active {
    background: var(--primary);
    border-color: var(--primary);
}

.reply-method:active i,
.reply-method:active span {
    color: white;
}

.reply-message-box {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.reply-message-box textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.reply-message-box textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.send-reply-btn {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
}

/* ============================================
   ENHANCED QUOTE CARD STYLES
   ============================================ */
.quote-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    cursor: pointer;
    transition: all 0.2s;
}

.quote-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.quote-card.draft { border-left: 4px solid var(--gray-500); }
.quote-card.sent { border-left: 4px solid var(--primary); }
.quote-card.accepted { border-left: 4px solid var(--secondary); background: #F0FDF4; }
.quote-card.rejected { border-left: 4px solid var(--danger); opacity: 0.7; }

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

.quote-title h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.quote-number {
    font-size: 11px;
    color: var(--gray-500);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.draft { background: var(--gray-200); color: var(--gray-700); }
.status-badge.sent { background: #EFF6FF; color: var(--primary); }
.status-badge.accepted { background: #E7F5E8; color: var(--secondary); }
.status-badge.rejected { background: #FEE2E2; color: var(--danger); }

.quote-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--gray-500);
}

.quote-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.quote-details {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

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

.detail-label {
    color: var(--gray-500);
}

.detail-value {
    font-weight: 500;
    color: var(--dark);
}

.detail-value.expiring {
    color: var(--danger);
}

.quote-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.buyer-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-600);
}

.quote-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.action-btn.reply:active {
    background: var(--secondary);
    border-color: var(--secondary);
}

.action-btn.delete:active {
    background: var(--danger);
    border-color: var(--danger);
}

/* RFQ Card */
.rfq-card {
    background: linear-gradient(135deg, #FFF9F0, #FFF);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--gray-200);
    cursor: pointer;
}

.rfq-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.rfq-title h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.rfq-number {
    font-size: 11px;
    color: var(--gray-500);
}

.rfq-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--gray-500);
}

.rfq-products {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-bottom: 12px;
}

.product-preview {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
}

.product-qty {
    font-weight: 600;
    color: var(--primary);
}

.more-products {
    font-size: 11px;
    color: var(--gray-500);
    text-align: center;
    padding-top: 6px;
}

.rfq-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.quote-now-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* ============================================
   PROFESSIONAL FOOTER
   ============================================ */
.site-footer {
    background: var(--gray-800);
    color: var(--gray-300);
    margin-top: 30px;
    padding: 30px 0 20px;
    border-top: 3px solid var(--primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo .logo-cube.small {
    width: 28px;
    height: 28px;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.footer-logo-text span {
    color: var(--primary-light);
}

.footer-about {
    font-size: 12px;
    line-height: 1.5;
    color: var(--gray-400);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
}

.social-link:active {
    background: var(--primary);
}

.footer-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a i {
    font-size: 9px;
    color: var(--primary);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.footer-contact li i {
    width: 18px;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--gray-700);
    font-size: 11px;
    color: var(--gray-500);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1001;
    position: relative;
}

.modal-content.modal-lg {
    max-width: 600px;
}

/* Responsive */
@media (max-width: 480px) {
    .reply-methods {
        grid-template-columns: 1fr;
    }
    
    .quote-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quote-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .rfq-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quote-now-btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
}