/*
 * KDPChimp Client Dashboard Styles
 * Dark theme with modern UI components
 * Version: 1.0.3
 */

/* ============================================================
   CSS Variables - Dark Theme Design System
   ============================================================ */
:root {
    --kdp-primary: #0074A2;
    --kdp-primary-dark: #005580;
    --kdp-primary-light: #0091CC;
    --kdp-primary-bg: #E8F4F8;
    --kdp-accent: #89DEFF;
    --kdp-success: #10B981;
    --kdp-success-bg: #ECFDF5;
    --kdp-warning: #F59E0B;
    --kdp-danger: #EF4444;

    /* Dark theme colors */
    --kdp-dark-bg: #0f172a;
    --kdp-dark-surface: #1e293b;
    --kdp-dark-surface-hover: #334155;
    --kdp-dark-border: #334155;
    --kdp-dark-text: #e2e8f0;
    --kdp-dark-text-muted: #94a3b8;

    --kdp-gray-50: #F9FAFB;
    --kdp-gray-100: #F3F4F6;
    --kdp-gray-200: #E5E7EB;
    --kdp-gray-300: #D1D5DB;
    --kdp-gray-400: #9CA3AF;
    --kdp-gray-500: #6B7280;
    --kdp-gray-600: #4B5563;
    --kdp-gray-700: #374151;
    --kdp-gray-800: #1F2937;
    --kdp-white: #FFFFFF;
    --kdp-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --kdp-shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.4), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
    --kdp-shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.5), 0 4px 12px -2px rgba(0, 0, 0, 0.4);
    --kdp-radius-sm: 8px;
    --kdp-radius-md: 12px;
    --kdp-radius-lg: 16px;
    --kdp-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Gradient */
    --kdp-gradient: linear-gradient(90deg, var(--kdp-primary) 41%, var(--kdp-accent) 100%);
}

/* ============================================================
   Dark Theme - Page Background
   ============================================================ */
.woocommerce-account .woocommerce-MyAccount-content {
    background: var(--kdp-dark-bg) !important;
    padding: 2rem 0;

}

/* ============================================================
   Action Bar - Top Section with Help Link & Refresh
   ============================================================ */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.5rem;
    background: var(--kdp-dark-surface);
    border-radius: var(--kdp-radius-md);
    box-shadow: var(--kdp-shadow-md);
    margin-bottom: 1.25rem;
    border: 1px solid var(--kdp-dark-border);
}

.help-section .help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--kdp-dark-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.625rem 1.125rem;
    background: var(--kdp-dark-surface-hover);
    border-radius: 50px;
    transition: all var(--kdp-transition);
    border: 0px solid var(--kdp-dark-border);
}

.help-section .help-link:hover {
    background: var(--kdp-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--kdp-shadow-lg);
    border: 0px !important;
}

.help-section .help-link i {
    font-size: 20px;
}

.action-btn {
 text-decoration: none;
    display: flex !important;
    padding: 2px 6px !important;
    flex-direction: row !important;

       align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0074A2 0%, #005a7f 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.4;
}

.action-btn:hover {
    background: linear-gradient(135deg, #005a7f 0%, #004660 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 116, 162, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

.action-btn.loading .dashicons {
    animation: spin 1s linear infinite;
}

/* Success Notice */
.success-notice {
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    background: var(--kdp-success);
    color: white;
    padding: 6px 12px;
    border-radius: var(--kdp-radius-md);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    z-index: 1000;
    box-shadow: var(--kdp-shadow-lg);
}

/* ============================================================
   Search & Filter Section - Modern Input Controls
   ============================================================ */
.modern-search-filters {
    background: var(--kdp-dark-surface);
    padding: 1.25rem 1.5rem;
    border-radius: var(--kdp-radius-md);
    box-shadow: var(--kdp-shadow-md);
    margin-bottom: 1.25rem;
    border: 1px solid var(--kdp-dark-border);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 280px auto;
    gap: 1rem;
    align-items: baseline;
    /* This ensures vertical alignment */
}

.input-group,
.select-group {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    /* Ensure full height for alignment */
}

.input-group i,
.select-group i {
    position: absolute;
    left: 16px;
    color: var(--kdp-dark-text-muted);
    z-index: 1;
    font-size: 18px;
}

.input-group input,
.select-group select {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.75rem;
    border: 1px solid var(--kdp-dark-border);
    border-radius: 50px;
    background: var(--kdp-dark-bg);
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--kdp-dark-text);
    transition: all var(--kdp-transition);
    min-height: 42px;
}

.input-group input::placeholder {
    color: var(--kdp-dark-text-muted);
}

.input-group input {
    appearance: none;
}

.select-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

.input-group input:focus,
.select-group select:focus {
    outline: none;
    border-color: var(--kdp-primary);
    box-shadow: 0 0 0 3px rgba(0, 116, 162, 0.2);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--kdp-transition);
    cursor: pointer;
    border: 1px solid var(--kdp-dark-border);
    min-height: 42px;
    background: var(--kdp-dark-bg);
    color: var(--kdp-dark-text);
}

.filter-btn:hover {
    background: var(--kdp-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: var(--kdp-shadow-md);
}

.filter-btn i {
    font-size: 16px;
}

.filter-btn.primary {
    background: var(--kdp-primary);
    color: white;
    box-shadow: var(--kdp-shadow-md);
}

.filter-btn.primary:hover {
    background: var(--kdp-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--kdp-shadow-lg);
}

.filter-btn.secondary {
    background: white;
    color: var(--kdp-gray-700);
    border-color: var(--kdp-gray-300);
}

.filter-btn.secondary:hover {
    background: var(--kdp-gray-50);
    border-color: var(--kdp-primary);
    color: var(--kdp-primary);
}

/* ============================================================
   Active Filters - Chips/Tags Display
   ============================================================ */
.active-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--kdp-gray-200);
    animation: slideDown 0.3s ease-out;
}

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

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

.active-filters-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--kdp-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-chips {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--kdp-primary-bg) 0%, #d4ebf5 100%);
    border: 2px solid var(--kdp-primary);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--kdp-primary-dark);
    transition: all var(--kdp-transition);
    animation: fadeIn 0.4s ease-out;
}

.filter-chip i.dashicons {
    font-size: 16px;
    color: var(--kdp-primary);
}

.filter-chip .chip-label {
    color: var(--kdp-gray-600);
    font-weight: 500;
}

.filter-chip .chip-value {
    color: var(--kdp-primary-dark);
    font-weight: 700;
}

.chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 4px;
    background: var(--kdp-primary);
    border-radius: 50%;
    transition: all var(--kdp-transition);
    cursor: pointer;
}

.chip-remove i.dashicons {
    font-size: 14px;
    color: white !important;
}

.chip-remove:hover {
    background: var(--kdp-danger);
    transform: scale(1.1) rotate(90deg);
}

.clear-all-filters {
    padding: 6px 14px;
    background: var(--kdp-danger);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--kdp-transition);
    box-shadow: var(--kdp-shadow-sm);
}

.clear-all-filters:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: var(--kdp-shadow-md);
}

/* ============================================================
   Orders Container & Table - Premium Card Design
   ============================================================ */
.orders-container {
    border-radius: var(--kdp-radius-lg);
    overflow: hidden;
}

.desktop-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.modern-orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--kdp-dark-bg);
    border-radius: var(--kdp-radius-md);
    overflow: hidden;
}

.modern-orders-table thead {
    background: var(--kdp-primary);
    /* Blue background like buttons */
    border-bottom: 2px solid var(--kdp-primary-dark);
}

.modern-orders-table th {
    padding: 0.75rem 0.85rem;
    /* Reduced from 1rem */
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    /* Slightly smaller */
    color: white;
    /* White text on blue background */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--kdp-primary);
    /* Blue background */
    z-index: 10;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.modern-orders-table th:last-child {
    border-right: none;
}

.th-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--kdp-transition);
}

.th-content i {
    opacity: 0.9;
    font-size: 16px;
    transition: all var(--kdp-transition);
}

/* ============================================================
   Table Rows - Enhanced Hover Effects
   ============================================================ */
.order-row {
    transition: all var(--kdp-transition);
    border-bottom: 1px solid var(--kdp-dark-border);
    background: var(--kdp-dark-bg);
}

.order-row:hover {
    background: var(--kdp-dark-surface);
    box-shadow: inset 4px 0 0 0 var(--kdp-primary);
}

.order-row td {
    padding: 0.65rem 0.85rem;
    /* Reduced vertical padding for compact rows */
    vertical-align: middle;
    font-size: 0.875rem;
    /* Slightly smaller font */
    color: var(--kdp-dark-text);
    border-right: 1px solid var(--kdp-dark-border);
}

.order-row td:last-child {
    border-right: none;
}

/* ============================================================
   Order Number Badge - Solid Color Like Button
   ============================================================ */
.order-badge {
    background: var(--kdp-primary);
    color: white;
    padding: 0.3rem 0.65rem;
    /* Reduced padding */
    border-radius: 20px;
    font-size: 0.75rem;
    /* Slightly smaller */
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow: var(--kdp-shadow-sm);
    white-space: nowrap;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.order-badge:hover {
    background: var(--kdp-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--kdp-shadow-md);
}

/* ============================================================
   Table Cell Styles - Dark Theme
   ============================================================ */

/* Project Title Cell */
.project-title-cell {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    /* Reduced from 0.5rem */
    max-width: 400px;
}

.project-title-cell .project-title-display {
    flex: 1;
    color: var(--kdp-dark-text);
    font-weight: 600;
    font-size: 0.875rem;
    /* Slightly smaller */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.project-title-cell .project-title-edit {
    flex: 1;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--kdp-primary);
    border-radius: 50px;
    background: var(--kdp-dark-surface);
    color: var(--kdp-dark-text);
    font-family: inherit;
}

.project-title-cell .project-title-edit:focus {
    outline: none;
    border-color: var(--kdp-accent);
    box-shadow: 0 0 0 3px rgba(0, 116, 162, 0.2);
}

.project-title-cell .project-title-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.project-title-cell .project-title-actions button {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--kdp-dark-surface-hover);
    color: var(--kdp-dark-text);
    cursor: pointer;
    transition: all var(--kdp-transition);
    box-shadow: var(--kdp-shadow-sm);
}

.project-title-cell .project-title-actions button:hover {
    transform: scale(1.05);
    box-shadow: var(--kdp-shadow-md);
}

.project-title-cell .edit-project-title:hover {
    background: var(--kdp-gradient);
    color: white;
}

.project-title-cell .save-project-title {
    background: var(--kdp-success);
    color: white;
}

.project-title-cell .cancel-project-title {
    background: var(--kdp-danger);
    color: white;
}

.project-title-cell button .dashicons {
    font-size: 16px;
}

/* Product Name Cell */
.product-name {
    color: var(--kdp-dark-text-muted);
    font-size: 0.85rem;
}

/* Date Cell */
.col-date .order-date {
    color: var(--kdp-dark-text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Progress Cell */
.col-progress .progress-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 150px;
}

.col-progress .progress-bar {
    flex: 1;
    height: 20px;
    background: var(--kdp-dark-surface);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.col-progress .progress-fill {
    height: 100%;
    background: var(--kdp-gradient);
    border-radius: 50px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0, 116, 162, 0.4);
}

.col-progress .progress-percentage {
    color: var(--kdp-accent);
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 35px;
    text-align: right;
}

/* Actions Cell */
.col-actions {
    text-align: center;
}

.col-actions .drive-folder-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--kdp-dark-surface);
    color: var(--kdp-dark-text);
    text-decoration: none;
    border-radius: 50%;
    transition: all var(--kdp-transition);
    box-shadow: var(--kdp-shadow-sm);
    border: 1px solid var(--kdp-dark-border);
}

.col-actions .drive-folder-link:hover {
    background: var(--kdp-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--kdp-shadow-md);
    border-color: transparent;
    border: 0px !important;
}

.col-actions .drive-folder-link .dashicons {
    font-size: 20px;
}

.col-actions .no-drive-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--kdp-dark-surface);
    color: var(--kdp-dark-text-muted);
    border-radius: 50%;
    opacity: 0.5;
    cursor: not-allowed;
}

.col-actions .no-drive-link .dashicons {
    font-size: 20px;
}

/* ============================================================
   Combined Column Styles
   ============================================================ */

/* Order + Date Combined Column */
.col-order-date {
    width: 140px;
}

.order-date-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    /* Reduced from 0.4rem */
    align-items: flex-start;
}

.order-date-small {
    font-size: 0.72rem;
    /* Slightly smaller */
    color: var(--kdp-dark-text-muted);
    font-weight: 500;
    line-height: 1.2;
}

/* Status + Progress Combined Column */
.col-status-progress {
    min-width: 200px;
    max-width: 250px;
}

.status-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    /* Reduced from 0.4rem */
    width: 100%;
}

.progress-wrapper-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.progress-wrapper-compact .progress-bar {
    flex: 1;
    height: 14px;
    /* Reduced from 16px */
    background: var(--kdp-dark-surface);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    min-width: 80px;
}

.progress-wrapper-compact .progress-fill {
    height: 100%;
    background: var(--kdp-gradient);
    border-radius: 50px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0, 116, 162, 0.4);
}

.progress-wrapper-compact .progress-percentage {
    position: static !important;
    /* Override absolute positioning from legacy styles */
    transform: none !important;
    /* Remove transform from legacy styles */
    color: var(--kdp-accent);
    font-size: 0.72rem;
    /* Slightly smaller */
    font-weight: 700;
    min-width: 32px;
    /* Reduced from 35px */
    text-align: right;
    line-height: 1;
    margin: 0 !important;
    /* Remove paragraph margins */
    padding: 0 !important;
    /* Remove paragraph padding */
}

/* Override WordPress auto-paragraph wrapping in progress wrapper */
.progress-wrapper-compact p {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

/* Column Width Control */
.col-order-date {
    width: 140px;
}

.col-project-title {
    min-width: 300px;
    max-width: 400px;
}

.col-product {
    width: 160px;
}

.col-status-progress {
    width: 220px;
}

.col-actions {
    width: 80px;
    text-align: center;
}

/* ============================================================
   Old Card Styles - Removed (Now using Table Layout)
   ============================================================ */

/* ============================================================
   Old Card Styles - Removed (Now using Table Layout)
   ============================================================ */
/* These styles have been replaced by table-specific styles above */

.project-title-edit:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--kdp-primary-bg);
}

.project-title-actions {
    display: flex;
    gap: 2px;
    opacity: 1;
    transition: opacity var(--kdp-transition);
    flex-shrink: 0;
}

.order-row:hover .project-title-actions {
    opacity: 1;
}

.action-btn-sm {
    padding: 4px;
    border: none;
    background: none;
    border-radius: var(--kdp-radius-sm);
    cursor: pointer;
    transition: all var(--kdp-transition);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn-sm:hover {
    background: var(--kdp-gray-100);
    transform: scale(1.15);
}

.edit-project-title .dashicons {
    color: var(--kdp-primary) !important;
    font-size: 16px !important;
    font-family: dashicons !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 1 !important;
    pointer-events: none;
}

.edit-project-title:hover {
    background: var(--kdp-primary-bg);
}

.edit-project-title:hover .dashicons {
    color: var(--kdp-primary-dark) !important;
}

.action-btn-sm.success:hover {
    background: var(--kdp-success-bg);
    color: var(--kdp-success);
}

.action-btn-sm.danger:hover {
    background: var(--kdp-danger);
    color: white;
}

/* ============================================================
   Product Badge - Subtle & Clean
   ============================================================ */
.product-badge {
    background: var(--kdp-gray-100);
    color: var(--kdp-gray-700);
    padding: 6px 14px;
    border-radius: var(--kdp-radius-sm);
    font-size: 13px;
    font-weight: 600;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-badge {
    padding: 0.3rem 0.65rem;
    /* More compact */
    border-radius: var(--kdp-radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: var(--kdp-shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-height: 22px;
    /* More compact */
}

.status-waiting-for-files {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.status-plan-in-progress {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.status-plan-ready,
.status-plan-ready-to-review {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: white;
}

.status-plan-in-revision {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
}

.status-design-in-progress {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
}

.status-design-ready,
.status-design-ready-to-review {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.status-design-in-revision {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.status-in-revision {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
}

.status-order-complete,
.status-project-completed {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
    color: white;
}

/* ============================================================
   Progress Bar - Sleek Modern Design
   ============================================================ */
.progress-wrapper {
    position: relative;
    width: 100%;
}

.progress-track {
    position: relative;
    height: 24px;
    background: var(--kdp-gray-200);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--kdp-primary), var(--kdp-primary-dark));
    border-radius: 12px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 116, 162, 0.4);
}

/* Progress bar colors based on client requirements */
.progress-fill[data-progress="0"] {
    background: linear-gradient(90deg, #EF4444, #DC2626); /* Red - Requires Action */
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.progress-fill[data-progress="20"] {
    background: linear-gradient(90deg, #F59E0B, #D97706); /* Orange - In Progress */
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.progress-fill[data-progress="40"] {
    background: linear-gradient(90deg, #10B981, #059669); /* Green - Requires Action */
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.progress-fill[data-progress="60"] {
    background: linear-gradient(90deg, #F59E0B, #D97706); /* Orange - In Progress */
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.progress-fill[data-progress="80"] {
    background: linear-gradient(90deg, #10B981, #059669); /* Green - Requires Action */
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.progress-fill[data-progress="100"] {
    background: linear-gradient(90deg, #10B981, #059669); /* Green - Complete */
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    z-index: 1;
    letter-spacing: 0.5px;
}

/* ============================================================
   Date Styles - Clean Typography
   ============================================================ */
.date-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-main {
    font-weight: 600;
    color: var(--kdp-gray-800);
    font-size: 14px;
}

.date-time {
    font-size: 12px;
    color: var(--kdp-gray-500);
}

/* ============================================================
   Action Links - Premium Button Styles
   ============================================================ */
.action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: var(--kdp-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--kdp-radius-sm);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--kdp-transition);
    box-shadow: var(--kdp-shadow-sm);
}

.action-link:hover {
    background: var(--kdp-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--kdp-shadow-md);
}

.action-link i {
    font-size: 16px;
}

.pending-badge {
    background: var(--kdp-gray-100);
    color: var(--kdp-gray-500);
    padding: 8px 16px;
    border-radius: var(--kdp-radius-sm);
    font-size: 13px;
    font-style: italic;
    font-weight: 500;
}

/* ============================================================
   Mobile Cards View - Premium Card Design
   ============================================================ */
.mobile-cards {
    display: none;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
}

.order-card {
    background: white;
    border-radius: var(--kdp-radius-lg);
    box-shadow: var(--kdp-shadow-lg);
    overflow: hidden;
    transition: all var(--kdp-transition);
    border: 1px solid var(--kdp-gray-200);
}

.order-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.18);
    border-color: var(--kdp-primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--kdp-primary), var(--kdp-primary-dark));
    color: white;
}

.card-header .order-number {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
}

.card-header .order-date {
    font-size: 13px;
    opacity: 0.95;
}

.card-body {
    padding: 1.5rem;
}

.project-title-mobile h4 {
    margin: 0 0 1rem 0;
    color: var(--kdp-gray-800);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    font-family: 'Montserrat', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-info {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 14px;
    padding: 0.75rem;
    background: var(--kdp-gray-50);
    border-radius: var(--kdp-radius-sm);
}

.product-info .label {
    color: var(--kdp-gray-600);
    font-weight: 600;
}

.product-info .value {
    color: var(--kdp-gray-800);
    font-weight: 700;
}

.status-progress-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-badge-mobile {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--kdp-radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    align-self: flex-start;
    box-shadow: var(--kdp-shadow-sm);
    letter-spacing: 0.3px;
}

/* Mobile Status Colors */
.status-badge-mobile.status-waiting-for-files {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.status-badge-mobile.status-plan-in-progress {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.status-badge-mobile.status-plan-ready,
.status-badge-mobile.status-plan-ready-to-review {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: white;
}

.status-badge-mobile.status-design-ready-to-review {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.status-badge-mobile.status-in-production {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
}

.status-badge-mobile.status-order-complete {
    background: linear-gradient(135deg, #10B981 0%, #047857 100%);
    color: white;
}

.status-badge-mobile.status-design-in-revision {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.status-badge-mobile.status-plan-in-revision {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
}

.status-badge-mobile.status-project-completed {
    background: linear-gradient(135deg, #047857 0%, #065F46 100%);
    color: white;
}

.progress-wrapper-mobile {
    width: 100%;
}

.progress-track-mobile {
    position: relative;
    height: 28px;
    background: var(--kdp-gray-200);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill-mobile {
    height: 100%;
    background: linear-gradient(90deg, var(--kdp-primary), var(--kdp-primary-dark));
    border-radius: 14px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 116, 162, 0.4);
}

.progress-text-mobile {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

.card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--kdp-gray-100);
    background: var(--kdp-gray-50);
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--kdp-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--kdp-radius-md);
    font-weight: 700;
    font-size: 15px;
    transition: all var(--kdp-transition);
    box-shadow: var(--kdp-shadow-md);
}

.mobile-action-btn:hover {
    background: var(--kdp-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--kdp-shadow-lg);
}

.mobile-action-btn i {
    font-size: 18px;
}

.pending-mobile {
    text-align: center;
    color: var(--kdp-gray-500);
    font-style: italic;
    padding: 1rem;
    font-weight: 500;
}

/* ============================================================
   No Orders Found - Empty State
   ============================================================ */
.no-orders-found {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--kdp-gray-600);
    background: white;
    border-radius: var(--kdp-radius-lg);
    margin: 1.5rem 0;
    box-shadow: var(--kdp-shadow-md);
    border: 1px solid var(--kdp-gray-200);
}

.no-orders-found p {
    margin-bottom: 1.5rem;
    font-size: 17px;
    font-weight: 500;
    color: var(--kdp-gray-700);
}

.no-orders-found .button {
    background: var(--kdp-primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--kdp-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--kdp-transition);
    display: inline-block;
    box-shadow: var(--kdp-shadow-md);
}

.no-orders-found .button:hover {
    background: var(--kdp-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--kdp-shadow-lg);
}

/* ============================================================
   Pagination - Modern Dark Theme
   ============================================================ */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    background: var(--kdp-dark-bg);
    border-top: 1px solid var(--kdp-dark-border);
    margin-top: 1rem;
}

.pagination-wrapper ul.page-numbers {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.pagination-wrapper .page-numbers li {
    margin: 0;
    list-style: none;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span:not(.dots) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--kdp-dark-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--kdp-dark-text);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--kdp-dark-surface);
}

.pagination-wrapper .page-numbers .current {
    background: var(--kdp-primary);
    color: white;
    border-color: var(--kdp-primary);
    box-shadow: 0 0 0 3px rgba(0, 116, 162, 0.15);
}

.pagination-wrapper .page-numbers a:hover {
    background: var(--kdp-dark-surface-hover);
    border-color: var(--kdp-primary);
    color: var(--kdp-accent);
    transform: translateY(-1px);
}

.pagination-wrapper .page-numbers .prev,
.pagination-wrapper .page-numbers .next {
    padding: 0 14px;
    font-weight: 500;
}

.pagination-wrapper .page-numbers .dots {
    color: var(--kdp-dark-text-muted);
    padding: 0 8px;
}

/* Legacy pagination support */
.kdp-pagination {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    background: var(--kdp-dark-bg);
    border-top: 1px solid var(--kdp-dark-border);
}

.kdp-pagination ul.page-numbers {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kdp-pagination .page-numbers li {
    margin: 0;
    list-style: none;
}

.kdp-pagination .page-numbers a,
.kdp-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--kdp-dark-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--kdp-dark-text);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--kdp-dark-surface);
}

.kdp-pagination .page-numbers .current {
    background: var(--kdp-primary);
    color: white;
    border-color: var(--kdp-primary);
    box-shadow: 0 0 0 3px rgba(0, 116, 162, 0.15);
}

.kdp-pagination .page-numbers a:hover {
    background: var(--kdp-dark-surface-hover);
    border-color: var(--kdp-primary);
    color: var(--kdp-accent);
    transform: translateY(-1px);
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

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

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

.order-row,
.order-card {
    animation: fadeIn 0.4s ease forwards;
}

/* ============================================================
   Loading States
   ============================================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--kdp-gray-200);
    border-top-color: var(--kdp-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================================
   WooCommerce Account Page Global Styles
   ============================================================ */

/* Hide default WooCommerce sidebar navigation */
.woocommerce-account nav.woocommerce-MyAccount-navigation {
    display: none !important;
}

/* Full width content */
.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Elementor compatibility */
body.elementor-editor-active .woocommerce-account nav.woocommerce-MyAccount-navigation,
body.elementor-page .woocommerce-account nav.woocommerce-MyAccount-navigation {
    display: none !important;
}

body.elementor-editor-active .woocommerce-account .woocommerce-MyAccount-content,
body.elementor-page .woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce-account .col2-set .col-1,
.woocommerce-account .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
}

/* Account page headings */
.woocommerce-account h2,
.woocommerce-account h3 {
    color: var(--kdp-gray-800);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Modern form styling */
.woocommerce-account .form-row {
    margin-bottom: 1.25rem;
}

.woocommerce-account .form-row label {
    font-weight: 600;
    color: var(--kdp-gray-700);
    margin-bottom: 0.5rem;
    display: block;
}

.woocommerce-account .form-row input[type="text"],
.woocommerce-account .form-row input[type="email"],
.woocommerce-account .form-row input[type="password"],
.woocommerce-account .form-row textarea,
.woocommerce-account .form-row select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--kdp-gray-300);
    border-radius: var(--kdp-radius-sm);
    font-family: 'Montserrat', sans-serif;
    transition: all var(--kdp-transition);
    width: 100%;
}

.woocommerce-account .form-row input:focus,
.woocommerce-account .form-row textarea:focus,
.woocommerce-account .form-row select:focus {
    outline: none;
    border-color: var(--kdp-primary);
    box-shadow: 0 0 0 4px var(--kdp-primary-bg);
}

/* Modern button styling */
.woocommerce-account .button,
.woocommerce-account button {
    background: var(--kdp-primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: var(--kdp-radius-md);
    font-weight: 600;
    border: none;
    transition: all var(--kdp-transition);
    box-shadow: var(--kdp-shadow-md);
    cursor: pointer;
}

.woocommerce-account .button:hover,
.woocommerce-account button:hover {
    background: var(--kdp-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--kdp-shadow-lg);
}

/* ============================================================
   Responsive Design - Mobile First
   ============================================================ */
@media (max-width: 1024px) {
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .action-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .action-btn {
        flex: 1;
    }

    .desktop-table {
        overflow-x: auto;
    }

    .modern-orders-table {
        min-width: 900px;
    }

    .title-wrapper {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .action-bar {
        padding: 1rem 1.5rem;
    }

    .modern-search-filters {
        padding: 1.5rem;
    }

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

    .desktop-table {
        display: none;
    }

    .mobile-cards {
        display: grid;
    }

    .orders-container {
        border-radius: var(--kdp-radius-md);
    }
}

@media (max-width: 480px) {
    .action-bar {
        padding: 1rem;
    }

    .modern-search-filters {
        padding: 1rem;
    }

    .help-section .help-link {
        font-size: 14px;
        padding: 0.625rem 1rem;
    }

    .action-btn {
        font-size: 14px;
        padding: 0.625rem 1rem;
    }

    .card-header {
        padding: 1rem 1.25rem;
    }

    .card-header .order-number {
        font-size: 15px;
    }

    .project-title-mobile h4 {
        font-size: 14px;
    }

    .filter-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* ============================================================
   CARD-BASED RESPONSIVE LAYOUT - DARK THEME
   ============================================================ */

/* Orders List Container */
.orders-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    /* Reduced from 1rem for more compact spacing */
    margin-top: 1rem;
}

/* Individual Order Card - Compact Dark Theme */
.order-card-item {
    background: var(--kdp-dark-bg);
    border-radius: var(--kdp-radius-md);
    border: 1px solid var(--kdp-dark-border);
    padding: 0.75rem;
    /* Reduced from 1rem */
    transition: all var(--kdp-transition);
    box-shadow: var(--kdp-shadow-sm);
}

.order-card-item:hover {
    box-shadow: var(--kdp-shadow-md);
    border-color: var(--kdp-primary);
    transform: translateY(-1px);
}

/* Order Card Header - ID Badge and Date */
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    /* Reduced from 0.75rem */
    padding-bottom: 0.5rem;
    /* Reduced from 0.75rem */
    border-bottom: 1px solid var(--kdp-dark-border);
}

.order-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    /* Reduced from 0.5rem */
    background: var(--kdp-gradient);
    color: white;
    padding: 0.25rem 0.625rem;
    /* Reduced from 0.375rem 0.875rem */
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    /* Reduced from 0.85rem */
    box-shadow: var(--kdp-shadow-sm);
}

.order-id-badge i {
    font-size: 14px;
    /* Reduced from 16px */
}

.order-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    /* Reduced from 0.375rem */
    color: var(--kdp-dark-text-muted);
    font-size: 0.8rem;
    /* Reduced from 0.85rem */
}

.order-date i {
    font-size: 13px;
    /* Reduced from 14px */
}

/* Project Title Section */
.order-card-title {
    margin-bottom: 0.5rem;
    /* Reduced from 0.75rem */
}

.project-title-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Reduced from 0.625rem */
    padding: 0.5rem 0.75rem;
    /* Reduced from 0.625rem 0.875rem */
    background: var(--kdp-dark-surface);
    border-radius: var(--kdp-radius-md);
    border: 1px solid var(--kdp-dark-border);
    transition: all var(--kdp-transition);
}

.project-title-section:hover {
    background: var(--kdp-dark-surface-hover);
    border-color: var(--kdp-primary);
}

.project-title-display {
    flex: 1;
    font-size: 0.9rem;
    /* Reduced from 1rem */
    font-weight: 600;
    color: var(--kdp-dark-text);
    line-height: 1.3;
    /* Reduced from 1.4 */
}

.project-title-display.long-title {
    font-size: 0.85rem;
    /* Reduced from 0.9rem */
}

.project-title-edit {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--kdp-primary);
    border-radius: 50px;
    background: var(--kdp-dark-bg);
    color: var(--kdp-dark-text);
    font-family: inherit;
}

.project-title-edit:focus {
    outline: none;
    border-color: var(--kdp-primary);
    box-shadow: 0 0 0 3px rgba(0, 116, 162, 0.2);
}

.project-title-actions {
    display: flex;
    gap: 0.25rem;
    /* Reduced from 0.375rem */
    align-items: center;
}

.project-title-actions button {
    width: 26px;
    /* Reduced from 30px */
    height: 26px;
    /* Reduced from 30px */
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--kdp-dark-surface-hover);
    color: var(--kdp-dark-text);
    cursor: pointer;
    transition: all var(--kdp-transition);
    box-shadow: var(--kdp-shadow-sm);
}

/* Ensure icons don't block clicks on buttons */
.project-title-actions button .dashicons {
    pointer-events: none;
    font-family: dashicons !important;
    font-size: 18px !important;
    /* Reduced from 20px */
    line-height: 1 !important;
    width: 18px !important;
    /* Reduced from 20px */
    height: 18px !important;
    /* Reduced from 20px */
}

.project-title-actions button .dashicons::before {
    font-family: dashicons !important;
}

.project-title-actions button:hover {
    transform: scale(1.05);
    box-shadow: var(--kdp-shadow-md);
}

.edit-project-title {
    color: var(--kdp-primary);
}

.edit-project-title .dashicons,
.edit-project-title .dashicons::before {
    color: white !important;
}

.edit-project-title:hover {
    background: var(--kdp-gradient);
    color: white;
}

.edit-project-title:hover .dashicons,
.edit-project-title:hover .dashicons::before {
    color: white !important;
}

.save-project-title {
    background: var(--kdp-success);
    color: white;
}

.save-project-title:hover {
    background: #059669;
}

.cancel-project-title {
    background: var(--kdp-danger);
    color: white;
}

.cancel-project-title:hover {
    background: #dc2626;
}

.success-notice {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--kdp-success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--kdp-radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--kdp-shadow-lg);
    animation: slideDown 0.3s ease;
}

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

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

/* Order Details Grid */
.order-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    /* Reduced from 1.75rem */
    margin-bottom: 0.5rem;
    /* Reduced from 0.75rem */
    padding: 0.5rem;
    /* Reduced from 0.75rem */
    background: var(--kdp-dark-surface);
    border-radius: var(--kdp-radius-md);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    /* Reduced from 0.4rem */
}

.progress-item {
    flex-grow: 1;
}

.detail-label {
    font-size: 0.7rem;
    /* Reduced from 0.75rem */
    font-weight: 600;
    color: var(--kdp-dark-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    /* Reduced from 1.2 */
}

.detail-value {
    font-size: 0.85rem;
    /* Reduced from 0.9rem */
    color: var(--kdp-dark-text);
    font-weight: 500;
    line-height: 1.3;
    /* Reduced from 1.4 */
    display: flex;
    align-items: center;
    /* Vertically center the text */
}

/* Progress Bar - Inline Style */
.progress-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Reduced from 0.625rem */
    margin-top: 0;
}

.progress-bar {
    flex: 1;
    height: 24px;
    /* Reduced from 30px */
    background: var(--kdp-dark-bg);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--kdp-gradient);
    border-radius: 50px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(0, 116, 162, 0.4);
    /* Subtle glow effect */
}

.progress-percentage {
    color: var(--kdp-accent);
    font-size: 0.8rem;
    /* Reduced from 0.85rem */
    font-weight: 700;
    min-width: 35px;
    /* Reduced from 38px */
    text-align: right;
    line-height: 1.1;
    /* Reduced from 1.2 */
}

/* Legacy progress styles - kept for backward compatibility but hidden */
.order-card-progress {
    display: none;
}

/* Order Card Actions */
.order-card-actions {
    display: flex;
    gap: 0.5rem;
    /* Reduced from 0.625rem */
    margin-top: 0.5rem;
    /* Reduced from 0.75rem */
    padding-top: 0.5rem;
    /* Reduced from 0.75rem */
    border-top: 1px solid var(--kdp-dark-border);
}

.drive-folder-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    /* Reduced from 0.4rem */
    padding: 0.4rem 0.75rem;
    /* Reduced from 0.5rem 0.875rem */
    background: var(--kdp-dark-bg);
    color: var(--kdp-dark-text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    /* Reduced from 0.85rem */
    transition: all var(--kdp-transition);
    box-shadow: var(--kdp-shadow-sm);
    border: 1px solid var(--kdp-dark-border);
    width: 100%;
}

.drive-folder-link:hover {
    background: var(--kdp-gradient);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--kdp-shadow-md);
}

.drive-folder-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--kdp-shadow-md);
}

.drive-folder-link i {
    font-size: 18px;
}

.no-drive-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--kdp-gray-100);
    color: var(--kdp-gray-500);
    border-radius: var(--kdp-radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: not-allowed;
    width: 100%;
}

.no-drive-link i {
    font-size: 18px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Medium tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .order-card-details {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablets and smaller */
@media (max-width: 768px) {
    .action-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .filter-section {
        padding: 1rem;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Stack order details on mobile for better readability */
    .order-card-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-title-section {
        flex-wrap: wrap;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    .order-card-item {
        padding: 1rem;
    }

    .order-id-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .project-title-display {
        font-size: 1rem;
    }

    .order-card-actions {
        flex-direction: column;
    }

    .drive-folder-link,
    .no-drive-link {
        width: 100%;
        justify-content: center;
    }
}

.woocommerce-MyAccount-content {
    padding-bottom: 2rem !important;
}

/* ============================================================
   TABLE RESPONSIVE STYLES
   ============================================================ */

/* Tablets - Reduce column widths */
@media (max-width: 1024px) {
    .col-order-date {
        width: 120px;
    }

    .col-project-title {
        min-width: 250px;
        max-width: 300px;
    }

    .col-product {
        width: 140px;
    }

    .col-status-progress {
        width: 200px;
    }

    .project-title-cell .project-title-display {
        font-size: 0.85rem;
    }
}

/* Mobile - Horizontal scroll with visible scrollbar */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
        border-radius: 0;
    }

    .modern-orders-table {
        min-width: 800px;
        /* Reduced from 900px for 5 columns */
    }

    .modern-orders-table th,
    .modern-orders-table td {
        padding: 0.75rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Make scrollbar more visible on mobile */
    .table-container::-webkit-scrollbar {
        height: 8px;
    }

    .table-container::-webkit-scrollbar-track {
        background: var(--kdp-dark-bg);
        border-radius: 4px;
    }

    .table-container::-webkit-scrollbar-thumb {
        background: var(--kdp-primary);
        border-radius: 4px;
    }

    .table-container::-webkit-scrollbar-thumb:hover {
        background: var(--kdp-accent);
    }

    /* Compact cell styles */
    .order-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .project-title-cell {
        max-width: 250px;
    }

    .col-status-progress {
        width: 180px;
    }

    .progress-wrapper-compact .progress-bar {
        height: 14px;
        min-width: 70px;
    }
}

/* Very small mobile - Further compact */
@media (max-width: 480px) {
    .action-bar {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .filter-section {
        padding: 0.75rem;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .table-container {
        margin: 0 -0.5rem;
        padding: 0 0.5rem;
    }
}

/* ============================================================
   Video Guide Modal Styles
   ============================================================ */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.video-modal-content {
    position: relative;
    background: var(--kdp-dark-surface);
    border-radius: var(--kdp-radius-lg);
    box-shadow: var(--kdp-shadow-lg);
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
    border: 1px solid var(--kdp-dark-border);
}

.video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all var(--kdp-transition);
    z-index: 10;
}

.video-modal-close:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.video-modal-close .dashicons {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.video-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--kdp-dark-border);
    border-radius: var(--kdp-radius-lg) var(--kdp-radius-lg) 0 0;
}

.video-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.video-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: var(--kdp-radius-md);
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
}

/* Video controls styling */
.video-container video::-webkit-media-controls-panel {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
}

.video-container video::-webkit-media-controls-play-button,
.video-container video::-webkit-media-controls-volume-slider,
.video-container video::-webkit-media-controls-timeline {
    filter: brightness(1.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Update help button styling */
#open-video-guide {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-modal {
        padding: 10px;
    }
    
    .video-modal-content {
        max-height: 95vh;
    }
    
    .video-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    
    .video-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .video-modal-header h3 {
        font-size: 1.25rem;
    }
    
    .video-modal-body {
        padding: 1rem;
    }
    
    .video-container video {
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .video-modal-close {
        width: 32px;
        height: 32px;
    }
    
    .video-modal-close .dashicons {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
}
