/* Job Manager Frontend Styles - Premium Modern Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* Critical Reset for Job Manager Dashboard */
#jm-dashboard {
    all: initial;
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

#jm-dashboard * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#jm-dashboard *:before,
#jm-dashboard *:after {
    box-sizing: border-box;
}

/* Hide WordPress page elements */
#page-title,
.page-title,
.entry-title,
h1.entry-title,
.single .entry-title,
.page .entry-title,
.entry-header,
.entry-meta {
    display: none !important;
}

/* Material Icons Global Styling */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    display: inline-flex;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

.material-icons.sm {
    font-size: 18px;
}

.material-icons.md {
    font-size: 28px;
}

.material-icons.lg {
    font-size: 32px;
}

/* Light Mode Variables */
:root {
    /* Brand Colors */
    --jm-primary: #6366f1;
    --jm-primary-dark: #4f46e5;
    --jm-primary-light: #818cf8;
    --jm-secondary: #8b5cf6;
    --jm-secondary-dark: #7c3aed;
    --jm-accent: #06b6d4;
    --jm-accent-dark: #0891b2;

    /* Status Colors */
    --jm-success: #10b981;
    --jm-success-dark: #059669;
    --jm-warning: #f59e0b;
    --jm-warning-dark: #d97706;
    --jm-danger: #ef4444;
    --jm-danger-dark: #dc2626;
    --jm-info: #3b82f6;
    --jm-info-dark: #2563eb;

    /* Neutral Colors */
    --jm-white: #ffffff;
    --jm-gray-50: #f9fafb;
    --jm-gray-100: #f3f4f6;
    --jm-gray-200: #e5e7eb;
    --jm-gray-300: #d1d5db;
    --jm-gray-400: #9ca3af;
    --jm-gray-500: #6b7280;
    --jm-gray-600: #4b5563;
    --jm-gray-700: #374151;
    --jm-gray-800: #1f2937;
    --jm-gray-900: #111827;
    --jm-black: #000000;

    /* Background Colors */
    --jm-bg-primary: var(--jm-white);
    --jm-bg-secondary: var(--jm-gray-50);
    --jm-bg-tertiary: var(--jm-gray-100);
    --jm-bg-glass: rgba(255, 255, 255, 0.8);
    --jm-bg-glass-dark: rgba(0, 0, 0, 0.1);

    /* Text Colors */
    --jm-text-primary: var(--jm-gray-900);
    --jm-text-secondary: var(--jm-gray-600);
    --jm-text-tertiary: var(--jm-gray-500);
    --jm-text-inverse: var(--jm-white);

    /* Border Colors */
    --jm-border-color: var(--jm-gray-200);
    --jm-border-light: var(--jm-gray-100);
    --jm-border-dark: var(--jm-gray-300);

    /* Shadow System */
    --jm-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --jm-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --jm-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --jm-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --jm-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --jm-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --jm-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Border Radius */
    --jm-radius-xs: 4px;
    --jm-radius-sm: 6px;
    --jm-radius: 8px;
    --jm-radius-md: 10px;
    --jm-radius-lg: 12px;
    --jm-radius-xl: 16px;
    --jm-radius-2xl: 20px;
    --jm-radius-full: 9999px;

    /* Spacing */
    --jm-space-xs: 4px;
    --jm-space-sm: 8px;
    --jm-space: 16px;
    --jm-space-md: 20px;
    --jm-space-lg: 24px;
    --jm-space-xl: 32px;
    --jm-space-2xl: 40px;
    --jm-space-3xl: 48px;

    /* Typography */
    --jm-font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --jm-font-size-xs: 12px;
    --jm-font-size-sm: 14px;
    --jm-font-size-base: 16px;
    --jm-font-size-lg: 18px;
    --jm-font-size-xl: 20px;
    --jm-font-size-2xl: 24px;
    --jm-font-size-3xl: 30px;
    --jm-font-size-4xl: 36px;
    --jm-font-size-5xl: 48px;

    /* Font Weights */
    --jm-font-light: 300;
    --jm-font-normal: 400;
    --jm-font-medium: 500;
    --jm-font-semibold: 600;
    --jm-font-bold: 700;
    --jm-font-extrabold: 800;
    --jm-font-black: 900;

    /* Line Heights */
    --jm-leading-tight: 1.25;
    --jm-leading-snug: 1.375;
    --jm-leading-normal: 1.5;
    --jm-leading-relaxed: 1.625;
    --jm-leading-loose: 2;

    /* Transitions */
    --jm-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --jm-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --jm-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index */
    --jm-z-dropdown: 1000;
    --jm-z-sticky: 1020;
    --jm-z-fixed: 1030;
    --jm-z-modal-backdrop: 1040;
    --jm-z-modal: 1050;
    --jm-z-popover: 1060;
    --jm-z-tooltip: 1070;

    /* Legacy compatibility */
    --jm-accent-color: var(--jm-primary);
    --jm-success-color: var(--jm-success);
    --jm-warning-color: var(--jm-warning);
    --jm-danger-color: var(--jm-danger);
}

/* Dark Mode */
[data-theme="dark"] {
    /* Background Colors */
    --jm-bg-primary: #0f172a;
    --jm-bg-secondary: #1e293b;
    --jm-bg-tertiary: #334155;
    --jm-bg-glass: rgba(15, 23, 42, 0.8);
    --jm-bg-glass-dark: rgba(255, 255, 255, 0.05);

    /* Text Colors */
    --jm-text-primary: #f1f5f9;
    --jm-text-secondary: #cbd5e1;
    --jm-text-tertiary: #94a3b8;
    --jm-text-inverse: #0f172a;

    /* Border Colors */
    --jm-border-color: #334155;
    --jm-border-light: #1e293b;
    --jm-border-dark: #475569;

    /* Override neutral colors for dark mode */
    --jm-gray-50: #0f172a;
    --jm-gray-100: #1e293b;
    --jm-gray-200: #334155;
    --jm-gray-300: #475569;
    --jm-gray-400: #64748b;
    --jm-gray-500: #94a3b8;
    --jm-gray-600: #cbd5e1;
    --jm-gray-700: #e2e8f0;
    --jm-gray-800: #f1f5f9;
    --jm-gray-900: #ffffff;

    /* Enhanced shadows for dark mode */
    --jm-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --jm-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --jm-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --jm-shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--jm-font-family);
    font-size: var(--jm-font-size-base);
    line-height: var(--jm-leading-normal);
    color: var(--jm-text-primary);
    background: var(--jm-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Dashboard Container */
.job-manager-dashboard {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--jm-space-xl);
    background: linear-gradient(135deg, var(--jm-bg-primary) 0%, var(--jm-bg-secondary) 100%);
    color: var(--jm-text-primary);
    transition: var(--jm-transition);
    min-height: 100vh;
    position: relative;
    font-family: var(--jm-font-family);
}

.job-manager-dashboard::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

[data-theme="dark"] .job-manager-dashboard::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

/* Header */
.jm-header {
    background: var(--jm-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--jm-radius-2xl);
    padding: var(--jm-space-3xl);
    margin-bottom: var(--jm-space-3xl);
    box-shadow: var(--jm-shadow-2xl);
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
    background-clip: padding-box;
}

[data-theme="dark"] .jm-header {
    background: var(--jm-bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.jm-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--jm-primary), var(--jm-secondary), var(--jm-accent));
    border-radius: var(--jm-radius-2xl) var(--jm-radius-2xl) 0 0;
}

.jm-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.jm-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--jm-space-lg);
    position: relative;
    z-index: 1;
}

.jm-header h1 {
    margin: 0;
    background: linear-gradient(135deg, var(--jm-primary), var(--jm-secondary), var(--jm-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--jm-font-family);
    font-size: var(--jm-font-size-4xl);
    font-weight: var(--jm-font-black);
    letter-spacing: -0.05em;
    line-height: var(--jm-leading-tight);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--jm-space);
}

.jm-header h1::before {
    content: '💼';
    font-size: var(--jm-font-size-3xl);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.jm-header h1::after {
    content: '';
    position: absolute;
    bottom: -var(--jm-space-sm);
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--jm-primary), var(--jm-secondary), var(--jm-accent));
    border-radius: var(--jm-radius-full);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.jm-user-info {
    display: flex;
    align-items: center;
    gap: var(--jm-space-lg);
    flex-wrap: wrap;
}

.jm-balance {
    background: linear-gradient(135deg, var(--jm-success), var(--jm-success-dark));
    color: var(--jm-text-inverse);
    padding: var(--jm-space) var(--jm-space-xl);
    border-radius: var(--jm-radius-full);
    font-family: var(--jm-font-family);
    font-weight: var(--jm-font-bold);
    font-size: var(--jm-font-size-lg);
    box-shadow: var(--jm-shadow-lg);
    position: relative;
    overflow: hidden;
    transition: var(--jm-transition);
    display: flex;
    align-items: center;
    gap: var(--jm-space-sm);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.jm-balance::before {
    content: '💰';
    font-size: var(--jm-font-size-xl);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.jm-balance::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.jm-balance:hover::after {
    left: 100%;
}

.jm-balance:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--jm-shadow-2xl);
    background: linear-gradient(135deg, var(--jm-success-dark), var(--jm-success));
}

.jm-rank {
    background: linear-gradient(135deg, var(--jm-warning), var(--jm-warning-dark));
    color: var(--jm-text-inverse);
    padding: var(--jm-space) var(--jm-space-xl);
    border-radius: var(--jm-radius-full);
    font-family: var(--jm-font-family);
    font-weight: var(--jm-font-bold);
    font-size: var(--jm-font-size-base);
    box-shadow: var(--jm-shadow-lg);
    position: relative;
    overflow: hidden;
    transition: var(--jm-transition);
    display: flex;
    align-items: center;
    gap: var(--jm-space-sm);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.jm-rank::before {
    content: '🏆';
    font-size: var(--jm-font-size-lg);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.jm-rank::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.jm-rank:hover::after {
    left: 100%;
}

.jm-rank:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--jm-shadow-2xl);
    background: linear-gradient(135deg, var(--jm-warning-dark), var(--jm-warning));
}

.jm-dark-mode-toggle {
    background: linear-gradient(135deg, var(--jm-gray-100), var(--jm-gray-200));
    border: 2px solid var(--jm-gray-300);
    color: var(--jm-text-primary);
    padding: var(--jm-space) var(--jm-space-xl);
    border-radius: var(--jm-radius-full);
    cursor: pointer;
    font-family: var(--jm-font-family);
    font-size: var(--jm-font-size-sm);
    font-weight: var(--jm-font-semibold);
    transition: var(--jm-transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--jm-space-sm);
}

[data-theme="dark"] .jm-dark-mode-toggle {
    background: linear-gradient(135deg, var(--jm-gray-700), var(--jm-gray-800));
    border: 2px solid var(--jm-gray-600);
    color: var(--jm-text-primary);
}

.jm-dark-mode-toggle::before {
    display: none !important;
    content: none !important;
}

[data-theme="dark"] .jm-dark-mode-toggle::before {
    display: none !important;
    content: none !important;
}

.jm-dark-mode-toggle::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
    transition: left 0.6s;
}

.jm-dark-mode-toggle:hover::after {
    left: 100%;
}

.jm-dark-mode-toggle:hover {
    background: linear-gradient(135deg, var(--jm-primary), var(--jm-secondary));
    color: var(--jm-text-inverse);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--jm-shadow-2xl);
    border-color: transparent;
}

/* Navigation */
.jm-nav {
    display: flex;
    background: var(--jm-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--jm-radius-2xl);
    overflow: hidden;
    margin-bottom: var(--jm-space-3xl);
    box-shadow: var(--jm-shadow-2xl);
    position: relative;
    padding: var(--jm-space-sm);
    gap: var(--jm-space-sm);
}

[data-theme="dark"] .jm-nav {
    background: var(--jm-bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.jm-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--jm-primary), var(--jm-secondary), var(--jm-accent));
    border-radius: var(--jm-radius-2xl) var(--jm-radius-2xl) 0 0;
}

.jm-nav-item {
    flex: 1;
    padding: var(--jm-space-lg) var(--jm-space-xl);
    text-decoration: none;
    color: var(--jm-text-secondary);
    text-align: center;
    font-family: var(--jm-font-family);
    font-weight: var(--jm-font-semibold);
    font-size: var(--jm-font-size-sm);
    transition: var(--jm-transition);
    border-radius: var(--jm-radius-xl);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: var(--jm-space-sm);
    min-height: 60px;
}

.jm-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.6s;
    border-radius: var(--jm-radius-xl);
}

.jm-nav-item:hover::before {
    left: 100%;
}

.jm-nav-item:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--jm-text-primary);
    transform: translateY(-2px);
    box-shadow: var(--jm-shadow-md);
}

.jm-nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--jm-text-primary);
    box-shadow: var(--jm-shadow-md);
    transform: translateY(-2px);
}

.jm-nav-item.active::before {
    display: none;
}

/* Navigation Icons */
.jm-nav-item[href*="available"]::after {
    content: '📋';
    font-size: var(--jm-font-size-lg);
}

.jm-nav-item[href*="pending"]::after {
    content: '⏳';
    font-size: var(--jm-font-size-lg);
}

.jm-nav-item[href*="approved"]::after {
    content: '✅';
    font-size: var(--jm-font-size-lg);
}

.jm-nav-item[href*="completed"]::after {
    content: '🎯';
    font-size: var(--jm-font-size-lg);
}

.jm-nav-item[href*="rejected"]::after {
    content: '❌';
    font-size: var(--jm-font-size-lg);
}

.jm-nav-item[href*="profile"]::after {
    content: '👤';
    font-size: var(--jm-font-size-lg);
}

.jm-nav-item[href*="withdrawals"]::after {
    content: '💵';
    font-size: var(--jm-font-size-lg);
}

.jm-nav-item[href*="reports"]::after {
    content: '📊';
    font-size: var(--jm-font-size-lg);
}

/* Content Sections */
.jm-section {
    background: var(--jm-bg-primary);
    border: 1px solid var(--jm-border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .jm-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.jm-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f100, #8b5cf600);
    border-radius: 16px 16px 0 0;
}

.jm-section h2 {
    margin: 0 0 32px 0;
    background: linear-gradient(135deg, var(--jm-primary), var(--jm-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.025em;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.jm-section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6366f100, #8b5cf600);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* Jobs Grid */
.jm-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 30px 0;
    padding: 20px 0 40px 0;
    width: 100%;
    justify-content: center;
    justify-items: stretch;
}

.jm-job-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.jm-job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15), 0 8px 16px rgba(15, 23, 42, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.jm-job-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(129, 140, 248, 0.15));
    width: 100%;
    min-height: 179px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0;
    line-height: 0;
}

.jm-job-card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
    font-size: 14px;
}

.jm-job-card:hover .jm-job-card-media img {
    transform: scale(1.05);
}

.jm-job-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    flex: 1;
}

.jm-job-card-header {
    display: flex !important;
    flex-direction: column !important;
    gap: 0px !important;
    text-align: left;
}

.jm-job-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 -12px 0 !important;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
    min-height: 50px;
}

.jm-job-posted-date {
    display: flex !important;
    align-items: center;
    gap: 6px !important;
    margin-top: -10px !important;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.jm-job-posted-date .material-icons {
    font-size: 16px;
    opacity: 0.8;
    color: #64748b;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
}

.jm-job-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(129, 140, 248, 0.08));
    border: 2px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    justify-content: center;
}

.jm-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    align-items: center;
    text-align: center;
}

.jm-meta-item .label {
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6366f1;
    font-weight: 700;
}

.jm-meta-item .value {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.jm-meta-item .value.jm-worker-full {
    color: var(--jm-danger);
}

.jm-meta-item .value.jm-meta-reward {
    color: #16a34a;
    font-size: 24px;
    font-weight: 900;
}

.jm-meta-item .value .material-icons {
    font-size: 22px;
    opacity: 1;
    margin-right: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.jm-job-description {
    color: #475569;
    line-height: 1.4;
    margin: -2px 0 0 0;
    padding-left: 20px;
    display: grid;
    gap: 2px;
    text-align: left;
    max-height: calc(1.4em * 2 + 2px);
    overflow: hidden;
    font-size: 14px;
}

.jm-job-description li {
    position: relative;
    padding-left: 4px;
}

.jm-job-description li::marker {
    color: #6366f1;
    font-weight: 700;
}

.jm-job-description-label {
    display: flex !important;
    align-items: center;
    gap: 4px !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 0px;
}

.jm-job-description-label .material-icons {
    font-size: 20px;
    color: #6366f1;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
}

.jm-job-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    justify-content: center;
    align-items: center;
}

.jm-view-details-btn,
.jm-apply-btn,
.jm-full-btn,
.jm-submit-work-btn {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.jm-view-details-btn {
    background: #ffffff;
    color: #6366f1;
    border: 2px solid #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.jm-view-details-btn:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    transform: translateY(-2px);
}

.jm-apply-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.jm-apply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.jm-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #7c3aed, #6366f1);
}

.jm-apply-btn:hover::before {
    left: 100%;
}

.jm-submit-work-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.jm-submit-work-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.jm-submit-work-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #7c3aed, #6366f1);
}

.jm-submit-work-btn:hover::before {
    left: 100%;
}

.jm-full-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

.jm-btn-icon {
    font-size: 18px;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
}

.jm-job-work-tag {
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: rgba(34, 197, 94, 0.14);
    color: #0f5132;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: help;
    transition: var(--jm-transition);
}

.jm-job-work-tag.restricted {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.jm-job-work-tag:focus-visible {
    outline: 2px solid var(--jm-primary);
    outline-offset: 2px;
}

.jm-worker-gate {
    background: var(--jm-bg-secondary);
    border: 1px dashed var(--jm-border-color);
    border-radius: 18px;
    padding: 48px 40px;
    text-align: center;
    margin: 0 auto;
    max-width: 560px;
    box-shadow: var(--jm-shadow-sm);
}

.jm-worker-gate h3 {
    margin: 18px 0 12px;
    font-size: 24px;
    color: var(--jm-text-primary);
}

.jm-worker-gate p {
    margin: 0 0 24px;
    color: var(--jm-text-secondary);
    line-height: 1.7;
}

.jm-worker-gate-icon {
    font-size: 48px;
    color: var(--jm-primary);
}

.jm-worker-gate-feedback {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.jm-worker-gate-feedback.success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.3);
}

.jm-worker-gate-feedback.error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Worker Verification Modal */
#jm-worker-verification-modal .jm-worker-modal-dialog {
    max-width: 450px !important;
    width: 100% !important;
    height: 45% !important;
    justify-content: center !important;
}

.jm-worker-modal-content {
    padding: 36px 32px;
    text-align: center;
}

.jm-worker-modal-content .jm-worker-gate-icon {
    font-size: 52px;
    color: var(--jm-primary);
    margin-bottom: 20px;
    display: block;
}

.jm-worker-modal-content h3 {
    margin: 0 0 16px 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--jm-text-primary);
}

.jm-worker-modal-content p {
    margin: 0 0 28px 0;
    color: var(--jm-text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

.jm-worker-modal-content .jm-submit-btn,
#jm-worker-verification-modal .jm-submit-btn {
    width: auto !important;
    max-width: 240px !important;
    min-width: 180px !important;
    padding: 14px 28px !important;
    margin: 0 auto !important;
    display: block !important;
    text-align: center;
}

.jm-worker-modal-content .jm-worker-gate-feedback {
    margin-top: 20px;
    text-align: left;
}

/* Prevent closing modal for pending/denied states */
#jm-worker-verification-modal[data-worker-status="pending"] .jm-modal-overlay,
#jm-worker-verification-modal[data-worker-status="not_my_student"] .jm-modal-overlay {
    cursor: not-allowed;
}

#jm-worker-verification-modal[data-worker-status="pending"] .jm-modal-close,
#jm-worker-verification-modal[data-worker-status="not_my_student"] .jm-modal-close {
    display: none;
}

.jm-worker-info {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 32px;
    text-align: left;
    justify-content: flex-start;
}

.jm-worker-info .material-icons {
    font-size: 28px;
    color: var(--jm-primary);
    flex-shrink: 0;
}

.jm-worker-info h4 {
    margin: 0 0 4px 0;
    font-size: 17px;
    color: var(--jm-text-primary);
    text-align: left;
}

.jm-worker-info p {
    margin: 0;
    color: var(--jm-text-secondary);
    line-height: 1.6;
    font-size: 14px;
    text-align: left;
}


.jm-job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.jm-job-content {
    margin-bottom: 20px;
}

.jm-job-description {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jm-job-description li {
    color: var(--jm-text-secondary);
    line-height: 1.6;
    font-size: 14px;
}

.jm-job-description li::marker {
    color: var(--jm-primary);
    font-weight: 600;
}

.jm-reward {
    background: linear-gradient(135deg, var(--jm-success), var(--jm-success-dark));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    white-space: nowrap;
}

.jm-deadline {
    background: linear-gradient(135deg, var(--jm-warning), var(--jm-warning-dark));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
}

/* Buttons */
.jm-apply-btn,
.jm-submit-btn,
.jm-submit-proof-btn,
.jm-reapply-btn {
    background: linear-gradient(135deg, var(--jm-primary), var(--jm-secondary));
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--jm-radius);
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: var(--jm-transition);
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--jm-shadow-lg);
}

.jm-apply-btn::before,
.jm-submit-btn::before,
.jm-submit-proof-btn::before,
.jm-reapply-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.jm-apply-btn:hover::before,
.jm-submit-btn:hover::before,
.jm-submit-proof-btn:hover::before,
.jm-reapply-btn:hover::before {
    left: 100%;
}

.jm-apply-btn:hover,
.jm-submit-btn:hover,
.jm-submit-proof-btn:hover,
.jm-reapply-btn:hover {
    background: linear-gradient(135deg, var(--jm-primary-dark), var(--jm-secondary));
    transform: translateY(-3px);
    box-shadow: var(--jm-shadow-xl);
}

/* Tables */
.jm-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--jm-border-color);
}

.jm-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--jm-bg-primary);
}

.jm-table th {
    background: var(--jm-bg-secondary);
    color: var(--jm-text-primary);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--jm-border-color);
}

.jm-table td {
    padding: 15px;
    border-bottom: 1px solid var(--jm-border-color);
    color: var(--jm-text-primary);
}

.jm-table tr:hover {
    background: var(--jm-bg-secondary);
}

/* Status Badges */
.jm-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.jm-status.pending {
    background: #fff3cd;
    color: #856404;
}

.jm-status.approved {
    background: #d4edda;
    color: #155724;
}

.jm-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.jm-status.under-review {
    background: #cce5ff;
    color: #004085;
}

/* Forms */
.jm-form-group {
    margin-bottom: 20px;
}

.jm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--jm-text-primary);
}

.jm-form-group input,
.jm-form-group select,
.jm-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--jm-border-color);
    border-radius: 5px;
    background: var(--jm-bg-primary);
    color: var(--jm-text-primary);
    font-size: 14px;
}

.jm-form-group input:focus,
.jm-form-group select:focus,
.jm-form-group textarea:focus {
    outline: none;
    border-color: var(--jm-accent-color);
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Profile Management */
.jm-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.jm-profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.jm-profile-card {
    background: var(--jm-bg-secondary);
    border: 1px solid var(--jm-border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--jm-shadow-sm);
}

.jm-profile-overview {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.jm-profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.jm-profile-avatar img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--jm-primary);
    box-shadow: var(--jm-shadow-md);
    object-fit: cover;
}

.jm-profile-summary {
    flex: 1;
    min-width: 220px;
}

.jm-profile-summary h3 {
    margin: 0 0 4px 0;
    font-size: 22px;
    color: var(--jm-text-primary);
}

.jm-profile-summary p {
    margin: 0;
    color: var(--jm-text-secondary);
}

.jm-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.jm-profile-meta .jm-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--jm-bg-primary);
    border: 1px solid var(--jm-border-color);
    font-size: 13px;
    color: var(--jm-text-secondary);
}

.jm-profile-meta .material-icons {
    font-size: 18px;
    color: var(--jm-primary);
}

.jm-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.jm-profile-tag {
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--jm-primary);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
}

.jm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.jm-form-grid .jm-form-group {
    margin-bottom: 0;
}

.jm-form-section {
    margin-top: 32px;
}

.jm-form-section:first-of-type {
    margin-top: 0;
}

.jm-form-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: var(--jm-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.jm-form-section h3 .material-icons {
    font-size: 20px;
    color: var(--jm-primary);
}

.jm-form-feedback {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    display: none;
}

.jm-form-feedback.success {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.jm-form-feedback.error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.jm-form-actions {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
}

.jm-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.jm-profile-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--jm-border-color);
}

.jm-profile-stat:last-child {
    border-bottom: none;
}

.jm-profile-stat .label {
    color: var(--jm-text-secondary);
    font-weight: 600;
}

.jm-profile-stat .value {
    color: var(--jm-text-primary);
    font-weight: 700;
}

.jm-profile-tips {
    margin: 0;
    padding-left: 20px;
    color: var(--jm-text-secondary);
    line-height: 1.6;
}

.jm-profile-tips li+li {
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .jm-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jm-profile-grid {
        grid-template-columns: 1fr;
    }

    .jm-profile-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .jm-profile-sidebar .jm-profile-card {
        flex: 1 1 300px;
    }
}

@media (max-width: 768px) {
    .jm-profile-card {
        padding: 24px;
    }

    .jm-form-grid {
        grid-template-columns: 1fr;
    }

    .jm-profile-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .jm-profile-overview {
        justify-content: center;
        text-align: center;
    }

    .jm-profile-summary,
    .jm-profile-meta {
        width: 100%;
    }

    .jm-form-actions {
        justify-content: center;
    }
}

/* Proof Section */
.jm-proof-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--jm-border-color);
}

.jm-proof-section h4 {
    margin: 0 0 10px 0;
    color: var(--jm-text-primary);
    font-size: 16px;
}

.jm-proof-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Withdrawal Form */
.jm-withdrawal-form {
    background: var(--jm-bg-secondary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--jm-border-color);
    margin-bottom: 30px;
}

.jm-withdrawal-form h3 {
    margin: 0 0 20px 0;
    color: var(--jm-text-primary);
}

/* Info Messages */
.jm-info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #bee5eb;
    margin: 20px 0;
}

/* Stats Grid */
.jm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.jm-stat-card {
    background: var(--jm-bg-secondary);
    border: 1px solid var(--jm-border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.jm-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--jm-shadow);
}

.jm-stat-card h3 {
    margin: 0 0 10px 0;
    color: var(--jm-text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jm-stat-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--jm-accent-color);
}

/* Leaderboard */
.jm-leaderboard {
    margin-top: 30px;
}

.jm-leaderboard h3 {
    margin: 0 0 20px 0;
    color: var(--jm-text-primary);
}

.jm-table .current-user {
    background: rgba(0, 124, 186, 0.1);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-manager-dashboard {
        padding: 10px;
    }

    .jm-header-content {
        flex-direction: column;
        text-align: center;
    }

    .jm-user-info {
        justify-content: center;
    }

    .jm-nav {
        flex-direction: column;
    }

    .jm-nav-item {
        border-right: none;
        border-bottom: 1px solid var(--jm-border-color);
    }

    .jm-nav-item:last-child {
        border-bottom: none;
    }

    .jm-jobs-grid {
        grid-template-columns: 1fr;
        gap: var(--jm-space-xl);
    }

    .jm-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .jm-table-container {
        font-size: 14px;
    }

    .jm-table th,
    .jm-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .jm-user-info {
        flex-direction: column;
        gap: 10px;
    }

    .jm-balance,
    .jm-rank,
    .jm-dark-mode-toggle {
        font-size: 12px;
        padding: 6px 12px;
    }

    .jm-stat-number {
        font-size: 24px;
    }
}

/* Loading States */
.jm-loading {
    opacity: 0.6;
    pointer-events: none;
}

.jm-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--jm-border-color);
    border-top: 2px solid var(--jm-accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success/Error Messages */
.jm-message {
    padding: 12px 16px;
    border-radius: 5px;
    margin: 10px 0;
    font-weight: 500;
}

.jm-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.jm-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animations */
.jm-fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Headers and Structure */
.jm-section {
    background: var(--jm-bg-primary);
    border: 1px solid var(--jm-border-color);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    animation: fadeIn 0.3s ease;
}

.jm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.12);
    flex-wrap: wrap;
    gap: 24px;
}

.jm-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jm-section-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--jm-primary), var(--jm-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.jm-section-icon {
    font-size: 28px;
    display: inline-flex;
}

.jm-section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--jm-primary), var(--jm-secondary));
    color: #000000;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.jm-filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    background: var(--jm-bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--jm-border-color);
    box-shadow: var(--jm-shadow-sm);
}

.jm-search-box,
.jm-filter-select {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--jm-bg-primary);
    border: 1px solid var(--jm-border-color);
    border-radius: 12px;
    padding: 8px 14px;
    transition: var(--jm-transition);
}

.jm-search-box {
    min-width: 240px;
}

.jm-search-box span,
.jm-filter-select span {
    font-size: 18px;
    color: var(--jm-primary);
}

.jm-search-input {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    color: var(--jm-text-primary);
}

.jm-search-input:focus {
    outline: none;
}

.jm-search-box:focus-within,
.jm-filter-select:focus-within {
    border-color: var(--jm-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.jm-filter-select select {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--jm-text-primary);
    padding-right: 8px;
}

.jm-filter-select select:focus {
    outline: none;
}

/* Empty States */
.jm-empty-state {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border: 2px dashed var(--jm-border-color);
    border-radius: 12px;
    margin-bottom: 24px;
}

.jm-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.jm-empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--jm-text-primary);
    margin: 0 0 8px 0;
}

.jm-empty-state p {
    color: var(--jm-text-secondary);
    margin: 0 0 16px 0;
    font-size: 14px;
}

.jm-empty-state a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--jm-primary), var(--jm-secondary));
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.jm-empty-state a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Jobs Cards */
.jm-job-card,
.jm-available-job-card,
.jm-pending-job-card,
.jm-approved-job-card,
.jm-completed-job-card,
.jm-rejected-job-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.jm-job-card:hover,
.jm-available-job-card:hover,
.jm-pending-job-card:hover,
.jm-approved-job-card:hover,
.jm-completed-job-card:hover,
.jm-rejected-job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15), 0 8px 16px rgba(15, 23, 42, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Forms */
.jm-form-group {
    margin-bottom: 20px;
}

.jm-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--jm-text-primary);
    margin-bottom: 8px;
}

.jm-form-input,
.jm-form-select,
.jm-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--jm-border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--jm-bg-primary);
    color: var(--jm-text-primary);
    transition: all 0.2s ease;
}

.jm-form-input:hover,
.jm-form-select:hover,
.jm-form-textarea:hover {
    border-color: var(--jm-primary);
    background: var(--jm-bg-secondary);
}

.jm-form-input:focus,
.jm-form-select:focus,
.jm-form-textarea:focus {
    outline: none;
    border-color: var(--jm-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--jm-bg-primary);
}

.jm-form-help {
    font-size: 12px;
    color: var(--jm-text-tertiary);
    margin-top: 6px;
}

/* Buttons */
.jm-btn,
.jm-submit-btn,
.jm-cancel-btn,
.jm-apply-btn,
.jm-reject-btn,
.jm-approve-btn,
.jm-submit-proof-btn,
.jm-save-draft-btn,
.jm-reapply-btn,
.jm-view-details-btn,
.jm-view-proof-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.jm-btn:hover,
.jm-apply-btn:hover,
.jm-submit-proof-btn:hover,
.jm-approve-btn:hover,
.jm-view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.jm-apply-btn {
    background: linear-gradient(135deg, var(--jm-primary), var(--jm-secondary));
    color: white;
}

.jm-cancel-btn,
.jm-save-draft-btn,
.jm-view-details-btn,
.jm-view-proof-btn {
    background: rgba(99, 102, 241, 0.12);
    color: var(--jm-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.jm-cancel-btn:hover,
.jm-save-draft-btn:hover,
.jm-view-details-btn:hover,
.jm-view-proof-btn:hover {
    background: linear-gradient(135deg, var(--jm-primary), var(--jm-secondary));
    color: white;
    border-color: transparent;
}

/* Badges and Status */
.jm-badge,
.jm-job-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.jm-status-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.jm-badge-pending {
    color: #f59e0b;
}

.jm-badge-pending .material-icons {
    font-size: 16px;
}

.jm-badge-approved {
    color: #22c55e;
}

.jm-badge-approved .material-icons {
    font-size: 16px;
}

.jm-badge-rejected {
    color: #ef4444;
}

.jm-badge-rejected .material-icons {
    font-size: 16px;
}

.jm-badge-completed {
    color: #6366f1;
}

.jm-badge-completed .material-icons {
    font-size: 16px;
}

.jm-badge-available {
    color: #22c55e;
}

.jm-badge-available .material-icons {
    font-size: 16px;
}

/* Responsive Grid */
.jm-jobs-list,
.jm-approved-jobs-list,
.jm-completed-jobs-list,
.jm-rejected-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 500px;
}

.jm-balance-overview,
.jm-performance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    min-height: 200px;
}

/* Dark Mode */
body.jm-dark-mode .jm-section {
    background: #1e1e1e;
    border-color: #333333;
}

body.jm-dark-mode .jm-section-header {
    border-bottom-color: #333333;
}

body.jm-dark-mode .jm-section-header h2 {
    color: #ffffff;
}

body.jm-dark-mode .jm-job-card,
body.jm-dark-mode .jm-available-job-card,
body.jm-dark-mode .jm-pending-job-card,
body.jm-dark-mode .jm-approved-job-card,
body.jm-dark-mode .jm-completed-job-card,
body.jm-dark-mode .jm-rejected-job-card,
#jm-dashboard.jm-dark-mode .jm-job-card {
    background: #2d2d2d;
    border-color: #404040;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

body.jm-dark-mode .jm-job-card:hover,
body.jm-dark-mode .jm-available-job-card:hover,
body.jm-dark-mode .jm-pending-job-card:hover,
body.jm-dark-mode .jm-approved-job-card:hover,
body.jm-dark-mode .jm-completed-job-card:hover,
body.jm-dark-mode .jm-rejected-job-card:hover,
#jm-dashboard.jm-dark-mode .jm-job-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(99, 102, 241, 0.2);
}

body.jm-dark-mode .jm-job-card-media,
#jm-dashboard.jm-dark-mode .jm-job-card-media {
    border-bottom-color: #404040;
}

body.jm-dark-mode .jm-job-card-header h3,
#jm-dashboard.jm-dark-mode .jm-job-card-header h3 {
    color: #ffffff;
}

body.jm-dark-mode .jm-job-posted-date,
#jm-dashboard.jm-dark-mode .jm-job-posted-date {
    color: #94a3b8;
}

body.jm-dark-mode .jm-job-posted-date .material-icons,
#jm-dashboard.jm-dark-mode .jm-job-posted-date .material-icons {
    color: #94a3b8;
}

body.jm-dark-mode .jm-job-card-meta,
#jm-dashboard.jm-dark-mode .jm-job-card-meta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(45, 45, 45, 0.9));
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.jm-dark-mode .jm-meta-item .label,
#jm-dashboard.jm-dark-mode .jm-meta-item .label {
    color: #818cf8;
}

body.jm-dark-mode .jm-meta-item .value,
#jm-dashboard.jm-dark-mode .jm-meta-item .value {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.jm-dark-mode .jm-meta-item .value.jm-meta-reward,
#jm-dashboard.jm-dark-mode .jm-meta-item .value.jm-meta-reward {
    color: #22c55e;
}

body.jm-dark-mode .jm-job-description,
#jm-dashboard.jm-dark-mode .jm-job-description {
    color: #b0b0b0;
}

body.jm-dark-mode .jm-job-description-label,
#jm-dashboard.jm-dark-mode .jm-job-description-label {
    color: #818cf8;
}

body.jm-dark-mode .jm-job-description-label .material-icons,
#jm-dashboard.jm-dark-mode .jm-job-description-label .material-icons {
    color: #818cf8;
}

body.jm-dark-mode .jm-job-card-actions,
#jm-dashboard.jm-dark-mode .jm-job-card-actions {
    border-top-color: #404040;
}

body.jm-dark-mode .jm-view-details-btn,
#jm-dashboard.jm-dark-mode .jm-view-details-btn {
    background: #2d2d2d;
    color: #818cf8;
    border-color: #818cf8;
}

body.jm-dark-mode .jm-view-details-btn:hover,
#jm-dashboard.jm-dark-mode .jm-view-details-btn:hover {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

body.jm-dark-mode .jm-submit-work-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
}

body.jm-dark-mode .jm-submit-work-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
}

body.jm-dark-mode .jm-empty-state,
#jm-dashboard.jm-dark-mode .jm-empty-state {
    background: #2d2d2d;
    border-color: #404040;
}

#jm-dashboard.jm-dark-mode .jm-section-header h2 {
    color: #ffffff;
}

#jm-dashboard.jm-dark-mode .jm-section-available {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.15) 0%, rgba(45, 45, 45, 0.95) 40%, #1a1a1a 90%);
}

/* Dark Mode Filter Dropdown */
#jm-dashboard.jm-dark-mode .jm-filter-select {
    background: #2d2d2d;
    border-color: #404040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#jm-dashboard.jm-dark-mode .jm-filter-select:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    background-color: #2d2d2d;
}

#jm-dashboard.jm-dark-mode .jm-filter-select:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25), 0 4px 16px rgba(99, 102, 241, 0.3);
    background-color: #2d2d2d;
}

#jm-dashboard.jm-dark-mode .jm-filter-select .material-icons {
    color: #94a3b8;
}

#jm-dashboard.jm-dark-mode .jm-filter-select:focus-within .material-icons,
#jm-dashboard.jm-dark-mode .jm-filter-select:hover .material-icons {
    color: #818cf8;
}

#jm-dashboard.jm-dark-mode .jm-filter-select select {
    color: #ffffff;
    background: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2394a3b8' d='M8 11L3 6h10z'/%3E%3C/svg%3E") !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

#jm-dashboard.jm-dark-mode .jm-filter-select select::-ms-expand {
    display: none !important;
}

#jm-dashboard.jm-dark-mode .jm-filter-select select option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 12px 16px;
}

#jm-dashboard.jm-dark-mode .jm-filter-select select option:hover {
    background: #2d2d2d;
    color: #ffffff;
}

#jm-dashboard.jm-dark-mode .jm-filter-select select option:checked {
    background: #6366f1;
    color: #ffffff;
}

body.jm-dark-mode .jm-form-input,
body.jm-dark-mode .jm-form-select,
body.jm-dark-mode .jm-form-textarea {
    background: #1e1e1e;
    color: #ffffff;
    border-color: #333333;
}

body.jm-dark-mode .jm-form-input:hover,
body.jm-dark-mode .jm-form-select:hover,
body.jm-dark-mode .jm-form-textarea:hover {
    background: #2d2d2d;
}

/* Responsive Design for Sections */
@media (max-width: 768px) {
    .jm-section {
        padding: 20px;
        margin-bottom: 16px;
    }

    .jm-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .jm-section-badge {
        align-self: flex-start;
    }

    .jm-balance-overview,
    .jm-performance-overview {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .jm-section {
        padding: 16px;
    }

    .jm-form-input,
    .jm-form-select,
    .jm-form-textarea {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}

/* Job Details Modal */
body.jm-modal-open {
    overflow: hidden;
}

.jm-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.jm-modal-dialog {
    background: var(--jm-bg-primary);
    border-radius: 20px;
    box-shadow: var(--jm-shadow-xl);
    max-width: 820px;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 2;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

.jm-modal-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.jm-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--jm-transition);
    color: var(--jm-text-primary);
    z-index: 2;
}

.jm-modal-close:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: scale(1.05);
}

.jm-modal-header {
    display: flex;
    gap: 24px;
    padding: 32px 32px 0 32px;
}

.jm-modal-media {
    flex: 0 0 220px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--jm-bg-secondary);
    border: 1px solid var(--jm-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jm-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jm-modal-header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jm-modal-header-text h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--jm-text-primary);
}

.jm-modal-header-text p {
    margin: 0;
    color: var(--jm-text-secondary);
}

.jm-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jm-modal-body {
    padding: 24px 32px;
    color: var(--jm-text-secondary);
    line-height: 1.7;
}

.jm-modal-body p:last-child {
    margin-bottom: 0;
}

.jm-modal-footer {
    padding: 24px 32px 32px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--jm-border-color);
    background: var(--jm-bg-secondary);
}

.jm-modal-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.jm-modal-stats .jm-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jm-modal-stats .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--jm-text-tertiary);
}

.jm-modal-stats .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--jm-text-primary);
}

.jm-modal-action {
    width: auto;
    max-width: none;
    padding: 14px 28px;
}

@media (max-width: 960px) {
    .jm-modal-header {
        flex-direction: column;
        align-items: center;
    }

    .jm-modal-media {
        width: 100%;
        max-height: 220px;
    }
}

@media (max-width: 520px) {
    .jm-modal {
        padding: 12px;
    }

    .jm-modal-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .jm-modal-action {
        width: 100%;
    }
}

/* Submit Work Modal Styles */
@keyframes jm-modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes jm-modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#jm-submit-work-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    padding: 20px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

#jm-submit-work-modal.jm-modal-open,
#jm-submit-work-modal[style*="block"],
#jm-submit-work-modal[style*="flex"] {
    display: flex !important;
}

#jm-submit-work-modal.jm-modal-open {
    opacity: 1;
}

#jm-submit-work-modal .jm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#jm-submit-work-modal.jm-modal-open .jm-modal-overlay {
    opacity: 1;
}

#jm-submit-work-modal .jm-modal-dialog {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    background: var(--jm-bg-primary);
    position: relative;
    z-index: 2;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
    will-change: transform, opacity;
    height: auto;
}

#jm-submit-work-modal.jm-modal-open .jm-modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#jm-submit-work-modal .jm-modal-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(129, 140, 248, 0.02));
    padding: 10px 20px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--jm-border-color);
    flex-shrink: 0;
}

#jm-submit-work-modal .jm-modal-header-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#jm-submit-work-modal .jm-modal-close-header-btn {
    background: rgba(15, 23, 42, 0.06);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--jm-text-primary);
    flex-shrink: 0;
    margin-left: 16px;
}

#jm-submit-work-modal .jm-modal-close-header-btn:hover {
    background: rgba(15, 23, 42, 0.1);
    transform: scale(1.05);
}

#jm-submit-work-modal .jm-modal-close-header-btn .material-icons {
    font-size: 20px;
}

#jm-submit-work-modal .jm-modal-header-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--jm-text-primary);
    margin: 0 0 4px 0;
    line-height: 1.2;
    text-transform: uppercase;
}

#jm-submit-work-modal .jm-modal-subtitle {
    font-size: 12px;
    color: var(--jm-text-secondary);
    margin: 0;
}

#jm-submit-work-modal .jm-modal-body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    overflow-y: auto !important;
    overflow-x: hidden;
    min-height: 200px;
    max-height: calc(90vh - 100px) !important;
}

#jm-submit-work-modal .jm-modal-body::-webkit-scrollbar {
    width: 8px;
}

#jm-submit-work-modal .jm-modal-body::-webkit-scrollbar-track {
    background: var(--jm-bg-secondary);
    border-radius: 4px;
}

#jm-submit-work-modal .jm-modal-body::-webkit-scrollbar-thumb {
    background: var(--jm-border-color);
    border-radius: 4px;
}

#jm-submit-work-modal .jm-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--jm-text-tertiary);
}

#jm-submit-work-modal .jm-modal-body-actions {
    padding: 12px 0 0 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--jm-border-color);
    margin-top: -16px;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
    margin-bottom: 46px;
}

#jm-submit-work-modal .jm-modal-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jm-transition);
    font-size: 14px;
    min-width: 140px;
}

#jm-submit-work-modal .jm-modal-close-btn {
    background: rgba(15, 23, 42, 0.06);
    color: var(--jm-text-primary);
    box-shadow: none;
}

#jm-submit-work-modal .jm-modal-close-btn:hover {
    background: rgba(15, 23, 42, 0.1);
}

#jm-submit-work-modal .jm-modal-submit-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 26px;
}

#jm-submit-work-modal .jm-modal-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#jm-submit-work-modal .jm-modal-submit-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

#jm-submit-work-modal .jm-modal-submit-btn:hover::before {
    left: 100%;
}

#jm-submit-work-modal .jm-modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#jm-submit-work-modal .jm-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#jm-submit-work-modal .jm-input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--jm-text-primary);
}

#jm-submit-work-modal .jm-input-group label .material-icons {
    font-size: 20px;
    color: var(--jm-primary);
}

#jm-submit-work-modal .jm-file-hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--jm-text-secondary);
    margin-left: auto;
}

#jm-submit-work-modal .jm-input-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--jm-border-color);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s;
    background: var(--jm-bg-primary);
    color: var(--jm-text-primary);
    box-sizing: border-box;
}

#jm-submit-work-modal .jm-input-group textarea:focus {
    outline: none;
    border-color: var(--jm-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#jm-submit-work-modal .jm-file-upload-wrapper {
    position: relative;
}

#jm-submit-work-modal .jm-file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1;
}

#jm-submit-work-modal .jm-file-upload-area {
    border: 2px dashed var(--jm-border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    background: var(--jm-bg-secondary);
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    margin: 0;
}

#jm-submit-work-modal .jm-file-upload-area label {
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#jm-submit-work-modal .jm-file-upload-area.dragover {
    border-color: var(--jm-primary);
    background: rgba(99, 102, 241, 0.1);
}

#jm-submit-work-modal .jm-file-upload-area:hover {
    border-color: var(--jm-primary);
    background: rgba(99, 102, 241, 0.05);
}

#jm-submit-work-modal .jm-file-upload-area .material-icons {
    font-size: 48px;
    color: var(--jm-primary);
    margin-bottom: 12px;
    display: block;
}

#jm-submit-work-modal .jm-file-upload-area p {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--jm-text-primary);
}

#jm-submit-work-modal .jm-file-upload-area small {
    font-size: 12px;
    color: var(--jm-text-secondary);
}

#jm-submit-work-modal .jm-file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#jm-submit-work-modal .jm-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--jm-bg-secondary);
    border: 1px solid var(--jm-border-color);
    border-radius: 8px;
}

#jm-submit-work-modal .jm-file-item .material-icons {
    font-size: 24px;
    color: var(--jm-primary);
}

#jm-submit-work-modal .jm-file-item-info {
    flex: 1;
    min-width: 0;
}

#jm-submit-work-modal .jm-file-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--jm-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#jm-submit-work-modal .jm-file-item-size {
    font-size: 12px;
    color: var(--jm-text-secondary);
}

#jm-submit-work-modal .jm-file-item-remove {
    background: none;
    border: none;
    color: var(--jm-danger);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: background 0.2s;
}

#jm-submit-work-modal .jm-file-item-remove:hover {
    background: rgba(239, 68, 68, 0.1);
}

#jm-submit-work-modal .jm-proof-details-section {
    margin-bottom: 8px;
}

#jm-submit-work-modal .jm-proof-details-section .jm-input-group {
    margin-bottom: 0;
}

#jm-submit-work-modal .jm-proof-details-content {
    padding: 12px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    font-size: 14px;
    color: var(--jm-text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 40px;
}

#jm-submit-work-modal .jm-proof-requirements {
    padding: 16px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    font-size: 13px;
    color: var(--jm-text-secondary);
    line-height: 1.6;
}

#jm-submit-work-modal .jm-proof-requirements strong {
    color: var(--jm-primary);
    display: block;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    #jm-submit-work-modal {
        padding: 10px;
    }

    #jm-submit-work-modal .jm-modal-header {
        flex-direction: column;
    }

    #jm-submit-work-modal .jm-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    #jm-submit-work-modal .jm-modal-action {
        width: 100%;
    }
}

/* Submit Work Confirmation Modal - Same as Apply Confirmation */
#jm-submit-work-confirmation-modal .jm-confirm-dialog {
    max-width: 450px;
    max-height: auto;
}

#jm-submit-work-confirmation-modal .jm-confirm-content {
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#jm-submit-work-confirmation-modal .jm-confirm-icon {
    font-size: 64px;
    color: var(--jm-primary);
    opacity: 0.8;
}

#jm-submit-work-confirmation-modal .jm-confirm-content h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--jm-text-primary);
}

#jm-submit-work-confirmation-modal .jm-confirm-content p {
    margin: 0;
    font-size: 16px;
    color: var(--jm-text-secondary);
    line-height: 1.6;
}

#jm-submit-work-confirmation-modal .jm-confirm-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

#jm-submit-work-confirmation-modal .jm-confirm-btn {
    flex: 1;
    max-width: 150px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--jm-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#jm-submit-work-confirmation-modal .jm-confirm-cancel {
    background: var(--jm-bg-secondary);
    color: var(--jm-text-primary);
    border: 2px solid var(--jm-border-color);
}

#jm-submit-work-confirmation-modal .jm-confirm-cancel:hover {
    background: var(--jm-bg-primary);
    border-color: var(--jm-text-tertiary);
}

#jm-submit-work-confirmation-modal .jm-confirm-apply {
    background: linear-gradient(135deg, var(--jm-primary), var(--jm-secondary));
    color: var(--jm-text-inverse);
    box-shadow: var(--jm-shadow-lg);
}

#jm-submit-work-confirmation-modal .jm-confirm-apply:hover {
    transform: translateY(-2px);
    box-shadow: var(--jm-shadow-2xl);
}

#jm-submit-work-confirmation-modal .jm-confirm-apply .material-icons {
    font-size: 18px;
}

/* Success and Error Result Modals */
#jm-success-modal .jm-result-dialog,
#jm-error-modal .jm-result-dialog {
    max-width: 450px;
    max-height: auto;
}

#jm-success-modal .jm-result-content,
#jm-error-modal .jm-result-content {
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#jm-success-modal .jm-result-icon {
    font-size: 72px;
    color: #22c55e;
    opacity: 0.9;
}

#jm-error-modal .jm-result-icon {
    font-size: 72px;
    color: #ef4444;
    opacity: 0.9;
}

#jm-success-modal .jm-result-content h3,
#jm-error-modal .jm-result-content h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--jm-text-primary);
}

#jm-success-modal .jm-result-content p,
#jm-error-modal .jm-result-content p {
    margin: 0;
    font-size: 16px;
    color: var(--jm-text-secondary);
    line-height: 1.6;
}

#jm-success-modal .jm-result-btn,
#jm-error-modal .jm-result-btn {
    margin-top: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--jm-transition);
    background: linear-gradient(135deg, var(--jm-primary), var(--jm-secondary));
    color: var(--jm-text-inverse);
    box-shadow: var(--jm-shadow-lg);
    min-width: 120px;
}

#jm-success-modal .jm-result-btn:hover,
#jm-error-modal .jm-result-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--jm-shadow-2xl);
}

@media (max-width: 768px) {

    #jm-success-modal .jm-result-dialog,
    #jm-error-modal .jm-result-dialog {
        max-width: 90%;
        margin: 20px;
    }

    #jm-success-modal .jm-result-content,
    #jm-error-modal .jm-result-content {
        padding: 24px 20px;
    }
}

/* Support Option Cards */
.jm-support-option-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 32px 24px !important;
    min-height: 280px !important;
    justify-content: center !important;
    gap: 12px !important;
    text-align: center !important;
}

.jm-support-option-card h3 {
    text-align: center !important;
    width: 100% !important;
    margin: 0 0 4px 0 !important;
}

.jm-support-option-card p {
    text-align: center !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.5 !important;
}

.jm-support-option-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(129, 140, 248, 0.05));
    border-radius: 16px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
}

.jm-support-option-icon .material-icons {
    font-size: 32px !important;
    color: #6366f1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    width: auto !important;
    height: auto !important;
}

.jm-support-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0px;
    padding: 10px 24px !important;
    margin: 0 auto !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: 140px;
    width: auto;
}

.jm-support-action-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.jm-support-option-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Dark Mode Support Cards */
#jm-dashboard.jm-dark-mode .jm-support-option-icon .material-icons {
    color: #818cf8;
}

#jm-dashboard.jm-dark-mode .jm-support-option-card p {
    color: #b0b0b0;
}

/* Professional Job Details Modal Redesign */
#jm-job-details-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

#jm-job-details-modal.jm-modal-open,
#jm-job-details-modal[style*="block"] {
    display: flex !important;
}

#jm-job-details-modal .jm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#jm-job-details-modal.jm-modal-open .jm-modal-overlay,
#jm-job-details-modal[style*="flex"] .jm-modal-overlay {
    opacity: 1;
}

#jm-job-details-modal .jm-modal-dialog {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    background: var(--jm-bg-primary);
    position: relative;
    z-index: 2;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
    will-change: transform, opacity;
}

#jm-job-details-modal.jm-modal-open .jm-modal-dialog,
#jm-job-details-modal[style*="flex"] .jm-modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#jm-job-details-modal .jm-modal-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(129, 140, 248, 0.02));
    padding: 24px;
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--jm-border-color);
    flex-shrink: 0;
}

#jm-job-details-modal .jm-modal-media {
    flex: 0 0 200px;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--jm-bg-secondary);
    border: 1px solid var(--jm-border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

#jm-job-details-modal .jm-modal-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#jm-job-details-modal .jm-modal-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#jm-job-details-modal .jm-modal-header-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--jm-text-primary);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

#jm-job-details-modal .jm-modal-meta {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}

#jm-job-details-modal .jm-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: var(--jm-bg-primary);
    border: 1px solid var(--jm-border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    flex-shrink: 0;
}

#jm-job-details-modal .jm-meta-chip.jm-meta-reward {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.15));
    color: #05732d;
    border-color: rgba(34, 197, 94, 0.2);
}

#jm-job-details-modal .jm-meta-chip.jm-meta-workers {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(129, 140, 248, 0.15));
    color: var(--jm-primary);
    border-color: rgba(99, 102, 241, 0.2);
}

#jm-job-details-modal .jm-meta-chip.jm-meta-date {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.15));
    color: var(--jm-warning);
    border-color: rgba(245, 158, 11, 0.2);
}

#jm-job-details-modal .jm-meta-chip .material-icons {
    font-size: 16px;
    opacity: 0.9;
}

#jm-job-details-modal .jm-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

#jm-job-details-modal .jm-modal-body::-webkit-scrollbar {
    width: 8px;
}

#jm-job-details-modal .jm-modal-body::-webkit-scrollbar-track {
    background: var(--jm-bg-secondary);
    border-radius: 4px;
}

#jm-job-details-modal .jm-modal-body::-webkit-scrollbar-thumb {
    background: var(--jm-border-color);
    border-radius: 4px;
}

#jm-job-details-modal .jm-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--jm-text-tertiary);
}

#jm-job-details-modal .jm-modal-description-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

#jm-job-details-modal .jm-modal-description-header .material-icons {
    font-size: 20px;
    color: var(--jm-primary);
}

#jm-job-details-modal .jm-modal-description-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--jm-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#jm-job-details-modal .jm-modal-description-section {
    margin-bottom: 24px;
}

#jm-job-details-modal .jm-modal-description-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#jm-job-details-modal .jm-description-info-box {
    border: 1px solid var(--jm-border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#jm-job-details-modal .jm-modal-description-content {
    color: var(--jm-text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

#jm-job-details-modal .jm-modal-description-content p {
    margin-bottom: 16px;
}

#jm-job-details-modal .jm-modal-description-content p:last-child {
    margin-bottom: 0;
}

#jm-job-details-modal .jm-modal-proof-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--jm-border-color);
}

#jm-job-details-modal .jm-modal-proof-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

#jm-job-details-modal .jm-modal-proof-header .material-icons {
    font-size: 20px;
    color: var(--jm-primary);
}

#jm-job-details-modal .jm-modal-proof-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--jm-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
}

#jm-job-details-modal .jm-modal-proof-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#jm-job-details-modal .jm-proof-info-box {
    border: 1px solid var(--jm-border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

#jm-job-details-modal .jm-proof-description {
    color: var(--jm-text-secondary);
    line-height: 1.8;
    font-size: 15px;
    white-space: pre-line;
    text-align: left;
}

#jm-job-details-modal .jm-proof-description p {
    margin-bottom: 16px;
}

#jm-job-details-modal .jm-proof-description p:last-child {
    margin-bottom: 0;
}

#jm-job-details-modal .jm-modal-footer {
    padding: 20px 24px 24px 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid var(--jm-border-color);
    background: var(--jm-bg-secondary);
    flex-shrink: 0;
}

#jm-job-details-modal .jm-modal-action {
    flex: 1;
    max-width: 250px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: var(--jm-transition);
}

#jm-job-details-modal .jm-modal-close-btn {
    background: var(--jm-bg-primary);
    color: var(--jm-text-primary);
    border: 2px solid var(--jm-border-color);
    box-shadow: none;
}

#jm-job-details-modal .jm-modal-close-btn:hover {
    background: var(--jm-bg-secondary);
    border-color: var(--jm-text-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    #jm-job-details-modal .jm-modal-header {
        flex-direction: column;
        padding: 24px;
    }

    #jm-job-details-modal .jm-modal-media {
        width: 100%;
        flex: none;
        height: 200px;
    }

    #jm-job-details-modal .jm-modal-header-text h3 {
        font-size: 24px;
    }

    #jm-job-details-modal .jm-modal-body {
        padding: 24px;
    }

    #jm-job-details-modal .jm-modal-footer {
        padding: 20px 24px 24px 24px;
        flex-direction: column;
    }

    #jm-job-details-modal .jm-modal-action {
        max-width: 100%;
        width: 100%;
    }
}

/* Dark Mode Modal Styles */
body.jm-dark-mode #jm-job-details-modal .jm-modal-dialog,
#jm-dashboard.jm-dark-mode #jm-job-details-modal .jm-modal-dialog {
    border: 1px solid #404040;
}

body.jm-dark-mode #jm-submit-work-modal .jm-modal-dialog,
#jm-dashboard.jm-dark-mode #jm-submit-work-modal .jm-modal-dialog {
    border: 1px solid #404040;
}

body.jm-dark-mode .jm-modal-dialog,
#jm-dashboard.jm-dark-mode .jm-modal-dialog {
    border: 1px solid #404040;
}

/* Dark Mode Modal Overlay - Dim Light Effect */
body.jm-dark-mode #jm-job-details-modal .jm-modal-overlay,
#jm-dashboard.jm-dark-mode #jm-job-details-modal .jm-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

body.jm-dark-mode #jm-submit-work-modal .jm-modal-overlay,
#jm-dashboard.jm-dark-mode #jm-submit-work-modal .jm-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

body.jm-dark-mode .jm-modal-overlay,
#jm-dashboard.jm-dark-mode .jm-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

/* Rejection Reason Modal Styles - Matching Job Details Modal */
#jm-rejection-reason-modal .jm-modal-dialog {
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    background: var(--jm-bg-primary);
    position: relative;
    z-index: 2;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
    will-change: transform, opacity;
}

#jm-rejection-reason-modal.jm-modal-open .jm-modal-dialog,
#jm-rejection-reason-modal[style*="flex"] .jm-modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#jm-rejection-reason-modal .jm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#jm-rejection-reason-modal.jm-modal-open .jm-modal-overlay,
#jm-rejection-reason-modal[style*="flex"] .jm-modal-overlay {
    opacity: 1;
}

#jm-rejection-reason-modal .jm-modal-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    padding: 5px;
    display: flex;
    gap: 0px;
    border-bottom: 1px solid var(--jm-border-color);
    flex-shrink: 0;
}

#jm-rejection-reason-modal .jm-modal-header-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-left: -22px;
    margin-top: -1px;
}

#jm-rejection-reason-modal .jm-modal-header-text {
    flex: 1;
}

#jm-rejection-reason-modal .jm-modal-header-text h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--jm-text-primary);
    margin: 0 0 -10px 0;
    line-height: 1.3;
}

#jm-rejection-reason-modal .jm-modal-subtitle {
    font-size: 14px;
    color: var(--jm-text-secondary);
    margin: 0;
}

#jm-rejection-reason-modal .jm-modal-close-header-btn {
    background: transparent;
    border: none;
    color: var(--jm-text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

#jm-rejection-reason-modal .jm-modal-close-header-btn:hover {
    background: var(--jm-bg-secondary);
    transform: scale(1.05);
}

#jm-rejection-reason-modal .jm-modal-close-header-btn .material-icons {
    font-size: 24px;
}

#jm-rejection-reason-modal .jm-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

#jm-rejection-reason-modal .jm-modal-body::-webkit-scrollbar {
    width: 8px;
}

#jm-rejection-reason-modal .jm-modal-body::-webkit-scrollbar-track {
    background: var(--jm-bg-secondary);
    border-radius: 4px;
}

#jm-rejection-reason-modal .jm-modal-body::-webkit-scrollbar-thumb {
    background: var(--jm-border-color);
    border-radius: 4px;
}

#jm-rejection-reason-modal .jm-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--jm-text-tertiary);
}

#jm-rejection-reason-modal .jm-rejection-reason-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#jm-rejection-reason-modal .jm-rejection-description-header {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 4px;
    background: #fff7ee;
    border-radius: 15px;
}

#jm-rejection-reason-modal .jm-rejection-description-header .material-icons {
    font-size: 20px;
    color: #ef4444;
    opacity: 0.9;
}

#jm-rejection-reason-modal .jm-rejection-description-header span {
    font-size: 15px;
    font-weight: 600;
    color: var(--jm-text-primary);
}

#jm-rejection-reason-modal .jm-rejection-note {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

#jm-rejection-reason-modal .jm-rejection-note p {
    margin: 0 0 16px 0;
    color: var(--jm-text-primary);
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-line;
    text-align: left;
    margin-left: 10px;
}

#jm-rejection-reason-modal .jm-rejection-note p:last-child {
    margin-bottom: 0;
}

#jm-rejection-reason-modal .jm-rejection-note p:empty::before {
    content: 'No rejection reason provided.';
    color: var(--jm-text-secondary);
    font-style: italic;
}

#jm-rejection-reason-modal .jm-modal-footer {
    padding: 20px 24px 24px 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid var(--jm-border-color);
    background: var(--jm-bg-secondary);
    flex-shrink: 0;
    display: none;
}

#jm-rejection-reason-modal .jm-modal-action {
    flex: 1;
    max-width: 250px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#jm-rejection-reason-modal .jm-modal-close-btn {
    background: var(--jm-bg-primary);
    color: var(--jm-text-primary);
    border: 2px solid var(--jm-border-color);
    box-shadow: none;
}

#jm-rejection-reason-modal .jm-modal-close-btn:hover {
    background: var(--jm-bg-secondary);
    border-color: var(--jm-text-tertiary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Reason Button Styles - Matching View Details Button */
.jm-reason-btn {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.jm-reason-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}

.jm-reason-btn .jm-btn-icon {
    font-size: 18px;
}

/* Dark Mode for Rejection Reason Modal */
body.jm-dark-mode #jm-rejection-reason-modal .jm-modal-dialog,
#jm-dashboard.jm-dark-mode #jm-rejection-reason-modal .jm-modal-dialog {
    border: 1px solid #404040;
}

body.jm-dark-mode #jm-rejection-reason-modal .jm-modal-overlay,
#jm-dashboard.jm-dark-mode #jm-rejection-reason-modal .jm-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

body.jm-dark-mode .jm-reason-btn,
#jm-dashboard.jm-dark-mode .jm-reason-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

body.jm-dark-mode .jm-reason-btn:hover,
#jm-dashboard.jm-dark-mode .jm-reason-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.5);
}

@media (max-width: 768px) {
    #jm-rejection-reason-modal .jm-modal-header {
        padding: 20px;
    }

    #jm-rejection-reason-modal .jm-modal-body {
        padding: 20px;
    }

    #jm-rejection-reason-modal .jm-modal-footer {
        padding: 16px 20px 20px 20px;
        flex-direction: column;
    }

    #jm-rejection-reason-modal .jm-modal-action {
        max-width: 100%;
        width: 100%;
    }
}