/* Xarir Jobs - Custom Styles */
[x-cloak] { display: none !important; }

.job-card {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.04), 0 1px 3px 0 rgb(0 0 0 / 0.02);
}
.job-card:hover {
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.08), 0 4px 10px -2px rgb(0 0 0 / 0.04);
}
.prose p {
    margin-bottom: 0.5rem;
    margin-top: 0;
    line-height: 1.6;
}
.prose p:last-child {
    margin-bottom: 0;
}
.prose > *:last-child {
    margin-bottom: 0;
}
.prose p:empty {
    display: none;
}
.prose h2, .prose h3 {
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }
.prose ul {
    list-style-type: disc !important;
    list-style-position: outside;
    padding-left: 1.5rem !important;
    margin-bottom: 0.5rem;
}
.prose ol {
    list-style-type: decimal !important;
    list-style-position: outside;
    padding-left: 1.5rem !important;
    margin-bottom: 0.5rem;
}
.prose li {
    margin-bottom: 0.25rem;
}
.prose li > p {
    margin-bottom: 0.25rem;
}
.prose li > p:last-child {
    margin-bottom: 0;
}
.prose br + br {
    display: none;
}

/* Searchable Select Component */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.searchable-select__trigger:hover {
    border-color: #9ca3af;
    background: #fafafa;
}

.searchable-select.is-open .searchable-select__trigger,
.searchable-select__trigger:focus {
    border-color: var(--primary, #dc2626);
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.searchable-select__value {
    font-size: 0.875rem;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.searchable-select__arrow {
    color: #6b7280;
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: transform 0.15s ease;
}

.searchable-select__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    overflow: hidden;
}

.searchable-select__search {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.searchable-select__input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #111827;
    outline: none;
}

.searchable-select__input:focus {
    border-color: var(--primary, #dc2626);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.searchable-select__options {
    max-height: 240px;
    overflow-y: auto;
}

.searchable-select__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    cursor: pointer;
    transition: background 0.1s ease;
}

.searchable-select__option:hover {
    background: #f3f4f6;
}

.searchable-select__option.is-selected {
    background: #fff;
}

.searchable-select__option.is-selected .searchable-select__option-text {
    color: var(--primary, #dc2626);
    font-weight: 500;
}

.searchable-select__option-text {
    font-size: 0.875rem;
    color: #374151;
}

.searchable-select__check {
    color: var(--primary, #dc2626);
    opacity: 0;
    flex-shrink: 0;
}

.searchable-select__option.is-selected .searchable-select__check {
    opacity: 1;
}

/* Dark mode support for searchable select */
html[data-theme="dark"] .searchable-select__trigger,
html[data-theme="dark"] .searchable-select__dropdown {
    background: #1e293b;
    border-color: #334155;
}

html[data-theme="dark"] .searchable-select__value,
html[data-theme="dark"] .searchable-select__option-text {
    color: #e2e8f0;
}

html[data-theme="dark"] .searchable-select__option:hover {
    background: #334155;
}

html[data-theme="dark"] .searchable-select__input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
