/* Opportunity Studio ATS Styling */

/* ATS Section - Full Width Below Grid */
.hi-studio-ats-section {
    margin-top: 32px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 1.5px solid rgba(102, 126, 234, 0.25);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .hi-studio-ats-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
    border-color: rgba(102, 126, 234, 0.2);
}

.hi-studio-ats-section:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
}

/* ATS Header - Title on Left, Toggle on Right */
.hi-ats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.hi-ats-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    letter-spacing: 0.02em;
}

[data-theme="light"] .hi-ats-title {
    color: #5a67d8;
}

.hi-ats-title svg {
    flex-shrink: 0;
}

/* ATS Fields Container */
.hi-ats-fields {
    padding-top: 24px;
    border-top: 1.5px solid rgba(102, 126, 234, 0.15);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hi-ats-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .hi-ats-fields-grid {
        grid-template-columns: 1fr;
    }
}

.hi-field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

[data-theme="light"] .hi-field-label {
    color: rgba(71, 85, 105, 0.9);
}

/* Studio Toggle Switch */
.hi-studio-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    padding: 4px 0;
    user-select: none;
}

.hi-studio-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    background: #4a5568;
    border-radius: 12px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

[data-theme="light"] .hi-studio-toggle-switch {
    background: #cbd5e0;
}

.hi-studio-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hi-studio-toggle-label input[type="checkbox"]:checked + .hi-studio-toggle-switch {
    background: #38a169;
}

[data-theme="light"] .hi-studio-toggle-label input[type="checkbox"]:checked + .hi-studio-toggle-switch {
    background: #48bb78;
}

.hi-studio-toggle-label input[type="checkbox"]:checked + .hi-studio-toggle-switch::after {
    transform: translateX(24px);
}

.hi-studio-toggle-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hi-studio-toggle-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--input-text);
    line-height: 24px;
    vertical-align: middle;
}


/* Studio Layout Grid - 2 Columns */
.hi-studio-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 0;
}

@media (max-width: 968px) {
    .hi-studio-layout {
        grid-template-columns: 1fr;
    }
}

/* Studio Card Base */
.hi-studio-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1.5px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

[data-theme="light"] .hi-studio-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(148, 163, 184, 0.25);
}

.hi-studio-card:hover {
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.hi-column-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.8);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid rgba(148, 163, 184, 0.1);
}

[data-theme="light"] .hi-column-label {
    color: rgba(71, 85, 105, 0.8);
}

.hi-field-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hi-field-stack label,
.hi-ats-fields-grid label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.9);
}

[data-theme="light"] .hi-field-stack label,
[data-theme="light"] .hi-ats-fields-grid label {
    color: rgba(71, 85, 105, 0.9);
}

.hi-field-stack input,
.hi-field-stack select,
.hi-field-stack textarea,
.hi-ats-fields-grid input,
.hi-ats-fields-grid select {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    color: var(--input-text);
    border-radius: 12px;
    font-family: var(--font-body, 'Poppins', 'Inter', system-ui, sans-serif);
    font-size: 15px;
    height: 52px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hi-field-stack select,
.hi-ats-fields-grid select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px 16px !important;
    padding-right: 44px !important;
    cursor: pointer;
}

.hi-field-stack select::-ms-expand,
.hi-ats-fields-grid select::-ms-expand {
    display: none !important;
}

.hi-field-stack select::-webkit-calendar-picker-indicator,
.hi-ats-fields-grid select::-webkit-calendar-picker-indicator {
    display: none !important;
    -webkit-appearance: none !important;
}

[data-theme="light"] .hi-field-stack select,
[data-theme="light"] .hi-ats-fields-grid select {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.hi-field-stack input:focus,
.hi-field-stack select:focus,
.hi-field-stack textarea:focus,
.hi-ats-fields-grid input:focus,
.hi-ats-fields-grid select:focus {
    outline: none;
    border-color: #667eea;
    background: var(--input-bg-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.hi-field-stack textarea {
    min-height: 120px;
    height: auto;
    resize: vertical;
    line-height: 1.6;
    padding: 14px 16px;
}
