/* Google-inspired Centered Form Layout */

/* Theme Variables */
:root {
    --form-heading: #1a202c;
    --form-subtext: #4a5568;
    --form-section-bg: #ffffff;
    --form-section-border: #e2e8f0;
}

[data-theme="dark"] {
    --form-heading: #f7fafc;
    --form-subtext: #cbd5e0;
    --form-section-bg: #1a202c;
    --form-section-border: #2d3748;
}

.hi-form-centered {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
    background: var(--form-section-bg);
    border-radius: 16px;
}

.hi-form-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.15);
}

.hi-form-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--form-heading);
    letter-spacing: -0.02em;
}

.hi-form-header p {
    font-size: 16px;
    color: var(--form-subtext);
    margin: 0;
    line-height: 1.6;
}

/* Section Headers with Description */
.hi-section-header {
    margin-bottom: 28px;
}

.hi-section-header h3 {
    margin-bottom: 8px;
}

.hi-section-desc {
    font-size: 14px;
    color: var(--form-subtext);
    margin: 0;
    font-weight: 400;
}

/* Taxonomy Management Section */
.hi-taxonomy-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

.hi-taxonomy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hi-taxonomy-header .hi-form-label {
    margin-bottom: 0;
}

.hi-add-term-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1.5px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="light"] .hi-add-term-btn {
    color: #5a67d8;
    border-color: rgba(102, 126, 234, 0.4);
}

.hi-add-term-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.hi-add-term-btn svg {
    flex-shrink: 0;
}

/* Job Status Group - Side by Side */
.hi-job-status-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hi-job-status {
    flex-shrink: 0;
}

/* Enhanced Checkbox Groups */
.hi-checkbox-group {
    max-height: 240px;
    padding: 16px;
    border-radius: 10px;
}

.hi-checkbox-label {
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.hi-checkbox-label:hover {
    background: rgba(102, 126, 234, 0.08);
}

.hi-checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #667eea;
}

/* Form Actions Enhancement */
.hi-form-actions {
    margin-top: 48px;
    padding-top: 32px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hi-form-centered {
        padding: 32px 16px;
    }
    
    .hi-form-header {
        margin-bottom: 32px;
    }
    
    .hi-form-header h2 {
        font-size: 24px;
    }
    
    .hi-taxonomy-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .hi-add-term-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Add Term Modal */
.hi-term-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hi-term-modal-content {
    background: var(--form-section-bg);
    border: 1.5px solid var(--form-section-border);
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hi-term-modal-header {
    margin-bottom: 24px;
}

.hi-term-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--form-heading);
}

.hi-term-modal-header p {
    font-size: 14px;
    color: var(--form-subtext);
    margin: 0;
}

.hi-term-modal-body {
    margin-bottom: 24px;
}

.hi-term-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.hi-term-modal-footer button {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hi-term-modal-cancel {
    background: transparent;
    border: 1.5px solid var(--form-section-border);
    color: var(--form-label);
}

.hi-term-modal-cancel:hover {
    background: var(--form-section-bg);
    border-color: var(--form-label);
}

.hi-term-modal-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.hi-term-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.hi-term-modal-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
