/* Modern Order Listing Styles */

/* Page Header */
.modern-orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 32px;
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 50%, #6D28D9 100%);
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(141, 63, 242, 0.25);
    position: relative;
    overflow: hidden;
}

.modern-orders-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.modern-orders-header .header-content {
    position: relative;
    z-index: 1;
}

.modern-orders-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-orders-header h2 i {
    font-size: 32px;
}

/* Stats Badge */
.orders-stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
}

.orders-stats-badge p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
}

.orders-stats-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.orders-stats-count i {
    font-size: 16px;
}

/* Modern Alert Success */
.modern-alert-success {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 2px solid #6ee7b7;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    animation: slideInDown 0.4s ease-out;
}

.modern-alert-success .alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
}

.modern-alert-success .alert-content {
    flex: 1;
    color: #065f46;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.modern-alert-success .alert-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #059669;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.modern-alert-success .alert-close:hover {
    background: rgba(16, 185, 129, 0.1);
}

/* Modern Order Card */
.modern-order-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0px;
    margin-bottom: 20px;
    border: 2px solid #f3f4f6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.modern-order-card:hover {
    border-color: #e9d5ff;
    box-shadow: 0 12px 32px rgba(141, 63, 242, 0.15);
    transform: translateY(-4px);
}

.modern-order-card .row {
    align-items: center;
}

/* Order Thumbnail Section */
.order-thumb-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #f3f4f6;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.modern-order-card:hover .order-thumbnail {
    border-color: #8D3FF2;
    transform: scale(1.05);
}

.order-info {
    flex: 1;
    min-width: 0;
}

.order-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-time {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-time i {
    font-size: 12px;
}

/* Order Price Badge */
.order-price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #8D3FF2;
    white-space: nowrap;
}

/* Order Status Section */
.order-status-section {
    margin-bottom: 0;
}

.status-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    display: block;
}

.status-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Status Buttons */
.status-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid;
    white-space: nowrap;
}

.status-btn i {
    font-size: 13px;
}

/* View Proposals - Light Purple */
.status-view-proposals {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #e9d5ff;
    color: #7c3aed;
}

.status-view-proposals:hover {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-color: #8D3FF2;
    color: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 63, 242, 0.2);
}

/* View Progress/Delivery - Dark Purple */
.status-view-progress {
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 100%);
    border-color: #7C3AED;
    color: #ffffff;
}

.status-view-progress:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
    border-color: #6D28D9;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(141, 63, 242, 0.4);
}

/* Completed - Green */
.status-completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #059669;
    color: #ffffff;
    cursor: default;
}

/* No Proposals - Grey */
.status-no-proposals {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: default;
}

/* Bank Details - Light Grey */
.status-bank-details {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #6b7280;
    cursor: pointer;
}

.status-bank-details:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #4b5563;
    transform: translateY(-2px);
}

/* Complete Order - Warning */
.status-complete-order {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #d97706;
    color: #ffffff;
}

.status-complete-order:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border-color: #b45309;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* Assigned To Section */
.assigned-to-section {
    margin-top: 8px;
}

.assigned-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
    display: block;
}

.assigned-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 2px solid #e9d5ff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
}

.assigned-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.assigned-none {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
}

/* Empty State */
.empty-orders-state {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 20px;
}

.empty-state-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.empty-state-icon svg {
    width: 120px;
    height: 120px;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.empty-state-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pagination */
.showing_results {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
}

.showing_results span {
    font-weight: 700;
    color: #8D3FF2;
}

/* Modal Styles */
.modal-content {
    border-radius: 20px;
    border: 2px solid #e9d5ff;
    box-shadow: 0 20px 60px rgba(141, 63, 242, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-bottom: 2px solid #e9d5ff;
    border-radius: 20px 20px 0 0;
    padding: 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.modal-body {
    padding: 32px;
}

.modal-body span {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    display: block;
    margin-bottom: 8px;
}

.modal-body h4 {
    font-size: 24px;
    font-weight: 700;
    color: #8D3FF2;
    margin-bottom: 24px;
    padding: 16px;
    background: #faf5ff;
    border-radius: 12px;
    border: 2px solid #e9d5ff;
}

.pay-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 2px solid #059669;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pay-now-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .order-thumb-section {
        flex-direction: column;
        text-align: center;
    }

    .order-price-badge {
        width: 100%;
        margin-top: 16px;
    }

    .status-buttons {
        flex-direction: column;
    }

    .status-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .modern-orders-header {
        padding: 24px;
    }

    .modern-orders-header h2 {
        font-size: 24px;
    }

    .modern-order-card {
        padding: 0px;
    }

    .order-thumbnail {
        width: 100px;
        height: 100px;
    }

    .order-title {
        font-size: 18px;
    }

    .order-price-badge {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .modern-orders-header {
        padding: 20px;
    }

    .modern-orders-header h2 {
        font-size: 20px;
    }

    .modern-order-card {
        padding: 0px;
    }

    .order-thumbnail {
        width: 80px;
        height: 80px;
    }

    .order-title {
        font-size: 16px;
    }

    .orders-stats-badge {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modern-order-card {
    animation: fadeInUp 0.4s ease-out backwards;
}

.modern-order-card:nth-child(1) { animation-delay: 0.05s; }
.modern-order-card:nth-child(2) { animation-delay: 0.1s; }
.modern-order-card:nth-child(3) { animation-delay: 0.15s; }
.modern-order-card:nth-child(4) { animation-delay: 0.2s; }
.modern-order-card:nth-child(5) { animation-delay: 0.25s; }
.modern-order-card:nth-child(6) { animation-delay: 0.3s; }
