/* Move Forwork Brand Colors */
:root {
    --primary: #d93713;    /* Primary brand color */
    --primary-hover: #c23d34; /* Primary hover color */
    --secondary: #767676;  /* Secondary color */
    --text: #3d3d3d;       /* Default text color */
    --success: #00c951;    /* Success green (bg-green-500) */
    --success-hover: #059669; /* Success hover green (bg-green-600) */
    --error: #d93713;      /* Error red */
    --warning: #f59e0b;    /* Warning orange */
    --info: #3b82f6;       /* Info blue */
}

/* Flash Notification Styles */
.flash-message {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    animation: slideIn 0.3s ease-out;
}

.flash-message-success {
    background-color: color-mix(in srgb, var(--success) 10%, transparent);
    border: 1px solid var(--success);
    color: var(--success);
}

.flash-message-error {
    background-color: color-mix(in srgb, var(--error) 10%, transparent);
    border: 1px solid var(--error);
    color: var(--error);
}

.flash-message-warning {
    background-color: color-mix(in srgb, var(--warning) 10%, transparent);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.flash-message-info {
    background-color: color-mix(in srgb, var(--info) 10%, transparent);
    border: 1px solid var(--info);
    color: var(--info);
}

.flash-message-icon {
    flex-shrink: 0;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
}

.flash-message-content {
    flex: 1;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateY(-1rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.site-logo {
  background: transparent !important;
  height: 3.5rem;
  width: 3.5rem;
  background-image: url('../images/mfw_logo_3.svg') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

/* Custom utility classes for brand colors */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }

.text-secondary { color: var(--secondary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.border-secondary { border-color: var(--secondary) !important; }

.text-success { color: var(--success) !important; }
.bg-success { background-color: var(--success) !important; }
.border-success { border-color: var(--success) !important; }

.text-default { color: var(--text) !important; }
.text-error { color: var(--error) !important; }


/* Hover variations */
.hover\:bg-primary:hover { background-color: var(--primary-hover) !important; }
.hover\:text-primary:hover { color: var(--primary) !important; }
.hover\:text-primary-hover:hover { color: var(--primary-hover) !important; }
.hover\:bg-success:hover { background-color: var(--success-hover) !important; }
.hover\:text-success:hover { color: var(--success) !important; }

/* Primary color variations for Tailwind compatibility */
.bg-primary-600 { background-color: var(--primary) !important; }
.text-primary-600 { color: var(--primary) !important; }
.border-primary-500 { border-color: var(--primary) !important; }
.focus\:border-primary-500:focus { border-color: var(--primary) !important; }
.focus\:ring-primary-500:focus { --tw-ring-color: var(--primary) !important; }
.hover\:bg-primary-700:hover { background-color: var(--primary-hover) !important; }
.hover\:text-primary-800:hover { color: var(--primary-hover) !important; }

/* Button styles */
.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 81, 71, 0.1);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.btn-secondary:hover {
    background-color: #5a5a5a;
    transform: translateY(-1px);
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(118, 118, 118, 0.1);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.btn-danger:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
}

.btn-danger:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Small button variant */
.btn-primary.text-sm,
.btn-secondary.text-sm,
.btn-danger.text-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1rem;
}

/* Job type ribbons */
.ribbon {
    position: absolute;
    top: 10px;
    right: -8px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    transform: rotate(0deg);
    z-index: 10;
}

.ribbon::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 0;
    border-top: 8px solid inherit;
}

.ribbon-external {
    background-color: #3b82f6; /* Blue for external jobs */
}

.ribbon-direct {
    background-color: var(--primary); /* Primary color for direct jobs */
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Job card hover effects */
.job-card {
    transition: all 0.2s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Form styling */
.form-input {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.875rem;
    line-height: 1.25rem;
    width: 100%;
    background-color: white;
}

/* Override padding for inputs with icons */
.form-input.pl-10 {
    padding-left: 2.5rem !important;
}

.form-input.pl-11 {
    padding-left: 2.75rem !important;
}

.form-input.pl-12 {
    padding-left: 3rem !important;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 81, 71, 0.1);
}

.form-input:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.form-input.error {
    border-color: #ef4444;
}

.form-input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Textarea specific styling */
textarea.form-input {
    resize: vertical;
    min-height: 2.5rem;
}

/* Select specific styling */
select.form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

/* Checkbox styling */
input[type="checkbox"].rounded {
    appearance: none;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    position: relative;
}

input[type="checkbox"].rounded:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

input[type="checkbox"].rounded:checked::after {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.05rem;
    width: 0.25rem;
    height: 0.5rem;
    border: 2px solid white;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
}

input[type="checkbox"].rounded:focus {
    box-shadow: 0 0 0 3px rgba(212, 81, 71, 0.1);
    outline: none;
}

/* Profile specific styles */
.profile-section {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.profile-section-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.profile-section-content {
    padding: 1.5rem;
}

/* Modal styles */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    max-width: 28rem;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-body {
    padding: 1.5rem;
}

/* Button group styles */
.button-group {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 1rem;
}

/* Interactive elements */
button:hover, 
.btn-primary:hover, 
.btn-secondary:hover,
a:hover {
    cursor: pointer;
}

/* Icon button styles */
.icon-button {
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    border: none;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.icon-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Progress bar styles */
.progress-bar {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.75rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
}

.badge-green {
    background-color: var(--success);
    color: white;
}

.badge-yellow {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-blue {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-gray {
    background-color: #f3f4f6;
    color: #374151;
}

/* Unified Application Status Badge Styles */
.app-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background-color: white;
    border: 1px solid #d1d5db;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
    white-space: nowrap;
}

.app-status-label {
    color: var(--text);
}

/* Status indicator dots */
.app-status-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.app-status-dot-gray {
    background-color: #9ca3af;
}

.app-status-dot-yellow {
    background-color: #fbbf24;
}

.app-status-dot-blue {
    background-color: #3b82f6;
}

.app-status-dot-green {
    background-color: #10b981;
}

.app-status-dot-red {
    background-color: var(--primary);
}

.app-status-dot-default {
    background-color: var(--text);
}

/* Mobile responsiveness for status badges */
@media (max-width: 640px) {
    .app-status-badge {
        font-size: 0.625rem;
        padding: 0.25rem 0.625rem;
        gap: 0.25rem;
    }

    .app-status-dot {
        width: 0.375rem;
        height: 0.375rem;
    }
}

/* Unified AI Match Badge Styles */
.ai-match-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background-color: white;
    border: 1px solid #d1d5db;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
    white-space: nowrap;
}

.ai-match-label {
    font-weight: 600;
}

/* AI match indicator dots */
.ai-match-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.ai-match-dot-green {
    background-color: #10b981;
}

.ai-match-dot-blue {
    background-color: #3b82f6;
}

.ai-match-dot-yellow {
    background-color: #fbbf24;
}

/* Mobile responsiveness for AI match badges */
@media (max-width: 640px) {
    .ai-match-badge {
        font-size: 0.625rem;
        padding: 0.25rem 0.625rem;
        gap: 0.25rem;
    }

    .ai-match-dot {
        width: 0.375rem;
        height: 0.375rem;
    }
}



/* Unified Job Status Badge Styles (Icon-Only) */
.job-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    transition: all 0.2s ease;
    position: relative;
}


/* Tooltip for job status badges */
.job-status-badge[data-tooltip-visible="true"]::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 0.75rem;
    background-color: #1f2937;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    white-space: nowrap;
    z-index: 50;
    pointer-events: none;
}

.job-status-badge[data-tooltip-visible="true"]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 0.125rem);
    left: 50%;
    transform: translateX(-50%);
    border: 0.25rem solid transparent;
    border-top-color: #1f2937;
    z-index: 50;
    pointer-events: none;
}

/* Mobile responsiveness for job status badges */
@media (max-width: 640px) {
    .job-status-badge {
        width: 1.75rem;
        height: 1.75rem;
    }

    .job-status-badge svg {
        width: 0.875rem;
        height: 0.875rem;
    }
}

/* Legacy job status badge - kept for backward compatibility, deprecated */
.job-status-filled {
    background-color: var(--text);
    color: white;
    border-color: var(--text);
}

/* Benefit icon tooltip styles */
.benefit-icon {
    position: relative;
}

.benefit-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 0.75rem;
    background-color: #1f2937;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    white-space: nowrap;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.benefit-icon::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 0.125rem);
    left: 50%;
    transform: translateX(-50%);
    border: 0.25rem solid transparent;
    border-top-color: #1f2937;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.benefit-icon:hover::after,
.benefit-icon:hover::before,
.benefit-icon[data-tooltip-visible="true"]::after,
.benefit-icon[data-tooltip-visible="true"]::before {
    opacity: 1;
}

/* File upload area */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #9ca3af;
}

.upload-area.dragover {
    border-color: var(--primary);
    background-color: rgba(212, 81, 71, 0.05);
}

/* Skill proficiency colors */
.skill-beginner { background-color: #f3f4f6; color: #374151; }
.skill-intermediate { background-color: #fef3c7; color: #92400e; }
.skill-advanced { background-color: #dbeafe; color: #1e40af; }
.skill-expert { background-color: #d1fae5; color: #065f46; }

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
}

.bg-gradient-error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Utility classes for JavaScript styling */
.js-disabled {
    background-color: #f3f4f6;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    /* Only apply full width to buttons inside .button-group containers, not header buttons */
    .button-group .btn-primary,
    .button-group .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Header specific mobile styling */
    .header-mobile-buttons {
        gap: 0.5rem;
    }

    .header-mobile-buttons .btn-primary {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Job card specific mobile styling */
    .job-card-mobile {
        padding: 1rem;
    }

    .job-card-mobile .job-card-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .job-card-mobile .job-card-actions .btn-primary {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }

    /* Form mobile styling - reusable for all forms */
    .form-mobile .btn-primary {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
        width: auto; /* Override global width: 100% */
    }

    .form-mobile .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .form-mobile .form-actions .btn-primary {
        width: 100%; /* Form action buttons should be full width */
    }

    /* Modal mobile styling */
    .modal-mobile {
        padding: 1rem;
        margin: 0.5rem;
    }

    .modal-mobile .modal-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .modal-mobile .modal-body {
        padding: 1rem;
    }

    .modal-mobile .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Dashboard/Profile mobile styling */
    .dashboard-mobile .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .dashboard-mobile .dashboard-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .dashboard-mobile .dashboard-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Profile sections mobile styling */
    .profile-sections-mobile {
        overflow-x: hidden;
    }

    .profile-sections-mobile .profile-tabs-nav {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .profile-sections-mobile .profile-tabs-nav button {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }

    .profile-sections-mobile .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        text-align: left;
    }

    .profile-sections-mobile .section-header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .profile-sections-mobile .section-add-button {
        width: 100%;
        justify-content: center;
    }

    .profile-sections-mobile .profile-item {
        padding: 1rem;
    }

    .profile-sections-mobile .profile-item-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .profile-sections-mobile .profile-item-actions {
        flex-direction: row;
        justify-content: flex-end;
        gap: 0.25rem;
        width: auto;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
        margin-left: 0.5rem;
    }

    .profile-sections-mobile .profile-item-actions button {
        flex: none;
        justify-content: center;
        padding: 0.5rem;
        font-size: 0.75rem;
        width: auto;
    }

    .profile-sections-mobile .skill-badges {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .profile-sections-mobile .skill-badges span {
        font-size: 0.625rem;
        padding: 0.125rem 0.5rem;
    }

    .profile-sections-mobile .tech-tags {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .profile-sections-mobile .tech-tags span {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }

    .profile-sections-mobile .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .profile-sections-mobile .project-links a {
        width: 100%;
        justify-content: center;
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }

    /* Job card text overflow prevention */
    .job-card-mobile .job-title {
        font-size: 1rem;
        line-height: 1.25;
        word-break: break-word;
        hyphens: auto;
    }

    .job-card-mobile .job-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .job-card-mobile .job-meta span {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Mobile badge adjustments */
    .job-card-mobile .job-badges {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .job-card-mobile .job-badges span {
        font-size: 0.625rem;
        padding: 0.125rem 0.5rem;
    }

    .modal-content {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .button-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .button-group button {
        width: 100%;
    }

    /* Additional Mobile Utility Classes */

    /* Stacking utilities */
    .mobile-stack {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .mobile-stack > * {
        width: 100% !important;
    }

    /* Visibility utilities */
    .mobile-hide {
        display: none !important;
    }

    .mobile-show {
        display: block !important;
    }

    /* Width utilities */
    .mobile-full {
        width: 100% !important;
    }

    .mobile-auto {
        width: auto !important;
    }

    /* Text utilities */
    .mobile-text-sm {
        font-size: 0.875rem !important;
    }

    .mobile-text-xs {
        font-size: 0.75rem !important;
    }

    .mobile-text-xxs {
        font-size: 0.625rem !important;
    }

    /* Icon sizing */
    .icon-mobile-sm svg,
    .icon-mobile-sm {
        width: 1rem !important;
        height: 1rem !important;
    }

    .icon-mobile-xs svg,
    .icon-mobile-xs {
        width: 0.875rem !important;
        height: 0.875rem !important;
    }

    /* Badge sizing */
    .badge-mobile-sm {
        font-size: 0.625rem !important;
        padding: 0.125rem 0.5rem !important;
    }

    .badge-mobile-xs {
        font-size: 0.5rem !important;
        padding: 0.125rem 0.375rem !important;
    }

    /* Responsive gaps */
    .gap-mobile-sm {
        gap: 0.5rem !important;
    }

    .gap-mobile-xs {
        gap: 0.25rem !important;
    }

    /* Text overflow handling */
    .mobile-truncate {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .mobile-wrap {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Padding adjustments */
    .mobile-p-sm {
        padding: 0.75rem !important;
    }

    .mobile-p-xs {
        padding: 0.5rem !important;
    }

    .mobile-px-sm {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .mobile-py-sm {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    /* Header adjustments */
    .mobile-header-compact {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .mobile-header-compact .site-logo {
        width: 2rem !important;
        height: 2rem !important;
    }

    /* Search and filter form adjustments */
    .search-form-mobile input,
    .search-form-mobile select {
        font-size: 0.875rem !important;
        padding: 0.625rem !important;
    }

    .search-form-mobile button {
        font-size: 0.875rem !important;
        padding: 0.625rem 1rem !important;
    }

    /* Pagination mobile adjustments */
    .pagination-mobile {
        gap: 0.25rem !important;
    }

    .pagination-mobile button,
    .pagination-mobile a {
        min-width: 2rem !important;
        height: 2rem !important;
        padding: 0.25rem !important;
        font-size: 0.75rem !important;
    }

    /* Stats card mobile */
    .stats-card-mobile {
        padding: 1rem !important;
    }

    .stats-card-mobile .stat-icon {
        width: 2rem !important;
        height: 2rem !important;
    }

    .stats-card-mobile .stat-value {
        font-size: 1.25rem !important;
    }

    .stats-card-mobile .stat-label {
        font-size: 0.75rem !important;
    }

    /* Dropdown menu mobile */
    .dropdown-mobile {
        left: 0 !important;
        right: 0 !important;
        width: calc(100vw - 2rem) !important;
        max-width: 100% !important;
        margin: 0.5rem !important;
    }

    /* Touch target minimum size */
    .touch-target {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    /* Hero section mobile */
    .hero-mobile h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    .hero-mobile p {
        font-size: 1rem !important;
    }

    /* Filter sidebar mobile */
    .filter-sidebar-mobile {
        position: static !important;
        margin-bottom: 1rem !important;
    }

    /* Table alternatives for mobile */
    .table-mobile {
        display: block !important;
        overflow-x: auto !important;
    }

    .table-mobile table {
        font-size: 0.75rem !important;
    }

    .table-mobile th,
    .table-mobile td {
        padding: 0.5rem !important;
    }

    /* Card grid mobile spacing */
    .card-grid-mobile {
        gap: 1rem !important;
    }
}

/* Trix Editor Customization */
.trix-editor-wrapper {
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* Trix Editor Content Area */
trix-editor {
    border: 1px solid #d1d5db !important;
    border-radius: 0.375rem !important;
    padding: 0.75rem !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    width: 100% !important;
    background-color: white !important;
    overflow-y: auto !important;
    min-height: 5em !important;
}

trix-editor:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(217, 55, 19, 0.1) !important;
}

trix-editor.trix-content {
    max-height: 400px !important;
}

/* Trix Toolbar Styling */
trix-toolbar {
    background-color: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-bottom: none !important;
    border-radius: 0.375rem 0.375rem 0 0 !important;
    padding: 0.5rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
}

trix-toolbar .trix-button-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

trix-toolbar .trix-button-group {
    display: flex !important;
    gap: 0.125rem !important;
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.25rem !important;
    overflow: hidden !important;
}

trix-toolbar .trix-button {
    background-color: white !important;
    border: none !important;
    border-right: 1px solid #e5e7eb !important;
    padding: 0.375rem 0.5rem !important;
    font-size: 0.75rem !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    position: relative !important;
    float: none !important;
}

trix-toolbar .trix-button--icon {
    width: 2.6em !important;
    height: 1.6em !important;
    text-indent: -9999px !important;
}

trix-toolbar .trix-button:not(:first-child) {
    border-left: none !important;
}

trix-toolbar .trix-button:last-child {
    border-right: none !important;
}

trix-toolbar .trix-button:hover:not(:disabled) {
    background-color: #f3f4f6 !important;
}

trix-toolbar .trix-button--icon:hover:not(:disabled)::before {
    opacity: 1 !important;
}

trix-toolbar .trix-button.trix-active {
    background-color: var(--primary) !important;
    color: white !important;
}

trix-toolbar .trix-button.trix-active::before {
    opacity: 1 !important;
}

trix-toolbar .trix-button:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

trix-toolbar .trix-button--icon::before {
    display: inline-block !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    opacity: 0.6 !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}

/* Trix Dialog Styling */
trix-toolbar .trix-dialog {
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
}

trix-toolbar .trix-dialog__link-fields input {
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

trix-toolbar .trix-dialog__link-fields input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(217, 55, 19, 0.1);
}

trix-toolbar .trix-button--dialog {
    background-color: var(--primary);
    color: white;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
}

trix-toolbar .trix-button--dialog:hover {
    background-color: var(--primary-hover);
}

/* Trix Content Formatting */
trix-editor h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

trix-editor strong {
    font-weight: 600;
}

trix-editor em {
    font-style: italic;
}

trix-editor a {
    color: var(--primary);
    text-decoration: underline;
}

trix-editor a:hover {
    color: var(--primary-hover);
}

trix-editor ul,
trix-editor ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

trix-editor ul {
    list-style-type: disc;
}

trix-editor ol {
    list-style-type: decimal;
}

trix-editor li {
    margin-bottom: 0.25rem;
}

/* Rendered Trix content (displayed, not being edited) */
.trix-content ul,
.trix-content ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    list-style-position: outside;
}

.trix-content ul {
    list-style-type: disc;
}

.trix-content ol {
    list-style-type: decimal;
}

.trix-content li {
    margin-bottom: 0.25rem;
    display: list-item;
}

.trix-content strong {
    font-weight: 600;
}

.trix-content em {
    font-style: italic;
}

.trix-content a {
    color: var(--primary);
    text-decoration: underline;
}

.trix-content a:hover {
    color: var(--primary-hover);
}

trix-editor blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
    font-style: italic;
}

trix-editor pre {
    background-color: #f3f4f6;
    border-radius: 0.25rem;
    padding: 0.75rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Placeholder styling */
trix-editor:empty:not(:focus)::before {
    color: #9ca3af;
}

/* Disable link and file attachment buttons */
trix-toolbar .trix-button--icon-link,
trix-toolbar .trix-button--icon-attach,
trix-toolbar .trix-button-group--file-tools {
    display: none !important;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    trix-toolbar {
        padding: 0.375rem;
    }

    trix-toolbar .trix-button {
        padding: 0.25rem 0.375rem;
        font-size: 0.625rem;
    }

    trix-toolbar .trix-button-group {
        margin-right: 0.25rem;
    }

    trix-editor {
        font-size: 1rem;
        padding: 0.5rem;
    }

    /* Additional mobile improvements for better UX */

    /* Ensure stat cards on dashboard stack properly */
    .stats-card-mobile h1,
    .stats-card-mobile h2,
    .stats-card-mobile h3 {
        font-size: 1.125rem !important;
    }

    /* Make action buttons more touch-friendly on job cards */
    .job-card-actions button,
    .job-card-actions a {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    /* Improve spacing for mobile filters */
    .filter-sidebar-mobile h3,
    .filter-sidebar-mobile h4 {
        font-size: 0.875rem !important;
    }

    /* Better mobile padding for main containers */
    .hero-mobile {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Ensure proper text truncation on mobile */
    .mobile-truncate-2 {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Make dropdown menus more accessible on mobile */
    #user-menu-dropdown {
        max-height: calc(100vh - 100px) !important;
        overflow-y: auto !important;
    }

    /* Mobile filter toggle button styling */
    #mobile-filter-toggle {
        touch-action: manipulation !important;
    }

    #mobile-filter-toggle svg {
        flex-shrink: 0 !important;
    }

    /* Smooth transition for chevron rotation */
    #mobile-filter-toggle svg:last-child {
        transition: transform 0.2s ease-in-out !important;
    }

    /* Filter sidebar animation on mobile */
    #filter-sidebar {
        transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out !important;
    }

    #filter-sidebar.hidden {
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
    }

    /* Ensure filter close button is visible only on mobile */
    #mobile-filter-close {
        display: block !important;
    }
}

/* Desktop: ensure filter sidebar is always visible */
@media (min-width: 1024px) {
    #filter-sidebar {
        display: block !important;
        opacity: 1 !important;
        max-height: none !important;
    }

    #mobile-filter-close {
        display: none !important;
    }
}