﻿/* ========== 表单设计器样式 ========== */

.form-designer-page {
    min-height: 100%;
    padding-bottom: 40px;
}

.form-designer-toolbar {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.toolbar-group {
    margin-bottom: 24px;
}

.toolbar-group:last-child {
    margin-bottom: 0;
}

.toolbar-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toolbar-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.toolbar-btn {
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.toolbar-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(255, 140, 0, 0.08);
    transform: translateY(-1px);
}

.toolbar-btn:active {
    transform: translateY(0);
}

.toolbar-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.toolbar-btn:active::before {
    width: 150px;
    height: 150px;
}

.form-preview-area {
    min-height: 500px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.form-preview-fields {
    min-height: 300px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.form-preview-fields::-webkit-scrollbar {
    width: 6px;
}

.form-preview-fields::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.form-preview-fields::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
    transition: background 0.2s;
}

.form-preview-fields::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.form-preview-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.form-preview-empty i {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

.form-preview-empty p {
    font-size: 14px;
    margin: 0;
    opacity: 0.7;
}

.form-preview-field {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: grab;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-preview-field:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.form-preview-field.selected {
    border-color: var(--accent-primary);
    background: rgba(255, 140, 0, 0.06);
}

.form-preview-field.dragging {
    opacity: 0.4;
    border-color: var(--accent-primary);
    cursor: grabbing;
    transform: rotate(2deg);
}

.form-preview-field.drag-over {
    border-top: 3px solid var(--accent-primary);
    margin-top: 4px;
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.field-type-badge {
    font-size: 11px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    border-radius: 6px;
    font-weight: 600;
}

.field-actions {
    display: flex;
    gap: 6px;
}

.field-action-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.field-action-btn.delete:hover {
    color: var(--color-error);
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.2);
}

.field-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.field-required {
    color: var(--color-error);
    margin-left: 4px;
    font-weight: 600;
}

.field-preview-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
    transition: all 0.2s;
}

.field-preview-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    min-height: 80px;
    pointer-events: none;
    resize: none;
    transition: all 0.2s;
}

.field-preview-divider {
    border: none;
    border-top: 2px dashed var(--border-color);
    margin: 16px 0;
    opacity: 0.5;
}

.field-preview-heading1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding: 8px 0;
    border-left: 4px solid var(--accent-primary);
    padding-left: 12px;
}

.field-preview-heading2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding: 6px 0;
    border-left: 3px solid var(--accent-primary);
    padding-left: 12px;
}

.field-preview-heading3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding: 4px 0;
    border-left: 2px solid var(--accent-primary);
    padding-left: 12px;
}

.form-field-settings {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.field-settings-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.field-settings-content::-webkit-scrollbar {
    width: 4px;
}

.field-settings-content::-webkit-scrollbar-track {
    background: transparent;
}

.field-settings-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.field-settings-content .form-group-custom {
    margin-bottom: 18px;
}

.field-settings-content .form-group-custom:last-child {
    margin-bottom: 0;
}

.field-settings-content .form-group-custom label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.field-settings-content .form-control {
    padding: 10px 14px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s;
}

.field-settings-content .form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
    outline: none;
}

.field-width-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.field-width-option {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.field-width-option:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.field-width-option.active {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 159, 67, 0.1));
    color: var(--accent-primary);
    font-weight: 600;
}

.field-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.field-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.2s;
}

.field-option-item:hover {
    background: rgba(255, 140, 0, 0.06);
}

.field-option-item .form-control {
    flex: 1;
    background: var(--bg-card);
}

.field-option-item .btn-remove-option {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-option-item .btn-remove-option:hover {
    color: var(--color-error);
    background: rgba(255, 68, 68, 0.1);
    transform: scale(1.1);
}

.btn-add-option {
    padding: 10px 16px;
    background: transparent;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-option:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(255, 140, 0, 0.06);
}

.field-preview-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.field-preview-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: default;
}

.field-preview-option input {
    margin-right: 4px;
}

.form-preview-field[data-width="50"] {
    display: inline-block;
    width: calc(50% - 8px);
    margin-right: 12px;
    vertical-align: top;
}

.form-preview-field[data-width="50"]:nth-child(even) {
    margin-right: 0;
}

.form-preview-field[data-width="33"] {
    display: inline-block;
    width: calc(33.33% - 10px);
    margin-right: 12px;
    vertical-align: top;
}

.form-preview-field[data-width="33"]:nth-child(3n) {
    margin-right: 0;
}

.form-preview-field[data-width="25"] {
    display: inline-block;
    width: calc(25% - 11px);
    margin-right: 12px;
    vertical-align: top;
}

.form-preview-field[data-width="25"]:nth-child(4n) {
    margin-right: 0;
}

.form-preview-field[data-width="100"] {
    width: 100%;
    display: block;
}

/* 动态表单样式 */
.dynamic-form-welcome {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 140, 0, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.dynamic-form-welcome p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.dynamic-form-fields-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.dynamic-form-field {
    margin-bottom: 16px;
}

.dynamic-form-field .apply-label {
    margin-bottom: 8px;
}

.dynamic-form-heading1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 24px 0 16px 0;
}

.dynamic-form-heading2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 12px 0;
}

.dynamic-form-heading3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 16px 0 8px 0;
}

.dynamic-form-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0;
}

.apply-radio-group,
.apply-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.apply-radio-label,
.apply-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s;
}

.apply-radio-label:hover,
.apply-checkbox-label:hover {
    border-color: var(--accent-primary);
}

.apply-radio-label input:checked + span,
.apply-checkbox-label input:checked + span {
    color: var(--accent-primary);
    font-weight: 500;
}

/* ========== WordPress风格表单设计器样式 ========== */

/* 顶部工具栏 */
.form-designer-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.form-designer-topbar-left {
    display: flex;
    align-items: center;
}

.form-designer-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-designer-title i {
    color: var(--accent-primary);
    font-size: 20px;
}

.form-designer-topbar-center {
    display: flex;
    align-items: center;
}

.form-designer-event-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-designer-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

.form-designer-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.form-designer-event-selector-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* 主编辑区域 */
.form-designer-main {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    height: calc(100vh - 120px);
    min-height: 600px;
    overflow: hidden;
}

/* 左侧组件库 */
.form-designer-sidebar-left {
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.form-designer-sidebar-left::-webkit-scrollbar {
    width: 6px;
}

.form-designer-sidebar-left::-webkit-scrollbar-track {
    background: transparent;
}

.form-designer-sidebar-left::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.form-designer-sidebar-toggle {
    display: none;
    position: absolute;
    top: 12px;
    right: -36px;
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.form-designer-sidebar-toggle:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.form-designer-sidebar-content {
    padding: 16px;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section-title:first-child {
    margin-top: 0;
}

.sidebar-section-title i {
    font-size: 13px;
    color: var(--accent-primary);
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.component-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.component-btn i {
    font-size: 18px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.component-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 140, 0, 0.08);
    transform: translateY(-2px);
}

.component-btn:hover i {
    color: var(--accent-primary);
}

.component-btn:active {
    transform: translateY(0);
}

/* 中间编辑区 */
.form-designer-editor {
    background: var(--bg-primary);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.form-designer-editor::-webkit-scrollbar {
    width: 8px;
}

.form-designer-editor::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.form-designer-editor::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.form-designer-editor::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.form-designer-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.form-designer-editor-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-designer-editor-title i {
    color: var(--accent-primary);
}

.form-designer-editor-actions {
    display: flex;
    align-items: center;
}

.form-designer-field-count {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.form-designer-editor-content {
    flex: 1;
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* 表单预览区域 */
.form-preview-fields {
    min-height: 400px;
}

.form-preview-empty {
    text-align: center;
    padding: 100px 40px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    color: var(--text-muted);
}

.form-preview-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    color: var(--accent-primary);
    opacity: 0.4;
}

.form-preview-empty h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.form-preview-empty p {
    font-size: 14px;
    margin: 0 0 24px 0;
    opacity: 0.7;
}

.form-preview-field {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: grab;
    transition: all 0.2s;
    position: relative;
}

.form-preview-field:hover {
    border-color: var(--accent-primary);
}

.form-preview-field.selected {
    border-color: var(--accent-primary);
    border-width: 2px;
}

.form-preview-field.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.form-preview-field.drag-over {
    border-top: 3px solid var(--accent-primary);
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.field-type-badge {
    font-size: 10px;
    padding: 3px 8px;
    background: var(--accent-primary);
    color: white;
    border-radius: 4px;
    font-weight: 600;
}

.field-actions {
    display: flex;
    gap: 4px;
}

.field-action-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-action-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.field-action-btn.delete:hover {
    color: var(--color-error);
    background: rgba(255, 68, 68, 0.1);
}

.field-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.field-required {
    color: var(--color-error);
    margin-left: 3px;
}

.field-preview-input {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.field-preview-textarea {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 13px;
    min-height: 80px;
    pointer-events: none;
    resize: none;
}

.field-preview-divider {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 16px 0;
}

.field-preview-heading1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.field-preview-heading2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.field-preview-heading3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.field-preview-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.field-preview-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.field-preview-option input {
    margin-right: 4px;
}

/* 表单设计器预览模式 */
.form-designer-preview {
    height: calc(100vh - 120px);
    min-height: 600px;
    overflow-y: auto;
    background: var(--bg-card);
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.form-designer-preview::-webkit-scrollbar {
    width: 6px;
}

.form-designer-preview::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.form-designer-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}

.form-designer-preview-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.form-designer-preview-title i {
    color: var(--accent-primary);
}

.form-designer-preview-content {
    padding: 24px;
    max-width: 720px;
    margin: 0 auto;
}

/* 右侧设置面板 */
.form-designer-sidebar-right {
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.form-designer-sidebar-right::-webkit-scrollbar {
    width: 6px;
}

.form-designer-sidebar-right::-webkit-scrollbar-track {
    background: transparent;
}

.form-designer-sidebar-right::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.form-designer-sidebar-right-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 5;
}

.form-designer-sidebar-right-header i {
    color: var(--accent-primary);
}

.form-designer-sidebar-right-content {
    padding: 18px;
}

.settings-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.settings-empty-state i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

.settings-empty-state p {
    font-size: 13px;
    margin: 0;
}

.field-settings-content .form-group-custom {
    margin-bottom: 18px;
}

.field-settings-content .form-group-custom:last-child {
    margin-bottom: 0;
}

.field-settings-content .form-group-custom label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.field-settings-content .form-control {
    padding: 9px 12px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s;
}

.field-settings-content .form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.08);
    outline: none;
}

.field-width-options {
    display: flex;
    gap: 6px;
}

.field-width-option {
    flex: 1;
    padding: 8px 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.field-width-option:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.field-width-option.active {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: white;
}

.field-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.field-option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.field-option-item .form-control {
    flex: 1;
}

.field-option-item .btn-remove-option {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.field-option-item .btn-remove-option:hover {
    color: var(--color-error);
    background: rgba(255, 68, 68, 0.1);
}

.btn-add-option {
    padding: 8px 12px;
    background: transparent;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-add-option:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .form-designer-main {
        grid-template-columns: 200px 1fr 240px;
    }
    
    .component-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .form-designer-main {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .form-designer-sidebar-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 200px;
    }
    
    .form-designer-sidebar-right {
        border-left: none;
        border-top: 1px solid var(--border-color);
        max-height: 300px;
    }
    
    .form-designer-editor-content {
        padding: 16px;
    }
    
    .form-preview-field[data-width="50"],
    .form-preview-field[data-width="33"],
    .form-preview-field[data-width="25"] {
        width: 100% !important;
        display: block !important;
        margin-right: 0 !important;
    }
    
    .dynamic-form-field {
        width: 100% !important;
        display: block !important;
    }

    .form-designer-preview-content > div[style*="width"] {
        width: 100% !important;
        display: block !important;
    }
}

@media (max-width: 768px) {
    .form-designer-topbar {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .form-designer-topbar-left,
    .form-designer-topbar-right {
        width: 100%;
    }
    
    .form-designer-topbar-right {
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    
    .form-designer-event-selector-inline {
        width: 100%;
        justify-content: space-between;
    }
    
    .form-designer-event-selector .custom-dropdown {
        flex: 1;
    }
    
    .form-designer-main {
        height: auto;
        min-height: 400px;
    }

    .form-designer-preview {
        height: auto;
        min-height: 400px;
    }

    .form-designer-preview-header {
        padding: 12px 16px;
    }
    
    .form-designer-editor-header {
        padding: 10px 16px;
    }
    
    .form-designer-editor-content {
        padding: 12px;
    }
    
    .form-preview-empty {
        padding: 60px 20px;
    }
    
    .form-preview-empty i {
        font-size: 48px;
    }
    
    .form-preview-empty h4 {
        font-size: 16px;
    }
    
    .field-width-options {
        flex-wrap: wrap;
    }
    
    .field-width-option {
        flex: none;
        width: calc(25% - 6px);
    }
    
    .apply-radio-group,
    .apply-checkbox-group {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .form-designer-title {
        font-size: 16px;
    }
    
    .component-btn {
        padding: 10px 6px;
        font-size: 10px;
    }
    
    .component-btn i {
        font-size: 16px;
    }
    
    .form-designer-sidebar-content {
        padding: 12px;
    }
    
    .sidebar-section-title {
        font-size: 10px;
    }
}

/* 登录/注册页面 */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.auth-brand .brand-text {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 3px;
}

.brand-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.account-select-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.account-select-item:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 140, 0, 0.06);
}

.account-select-item i {
    font-size: 18px;
    color: var(--accent-primary);
}

.account-select-item-info {
    flex: 1;
    min-width: 0;
}

.account-select-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-select-item-type {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 8px;
}

.auth-forms {
    animation: fadeIn 0.3s ease;
}

.auth-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 28px;
    text-align: center;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.auth-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}

.auth-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255,140,0,0.1);
}

.auth-input::placeholder {
    color: var(--text-muted);
}

.auth-form-text {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 6px;
    display: block;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.auth-btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.auth-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.auth-btn-passport {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.auth-btn-passport:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 16px;
}

.passport-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.passport-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.passport-tab.active {
    background: var(--accent-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.passport-bind-form {
    margin-bottom: 16px;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.auth-switch a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 16px;
}



.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

/* 账户设置页面 */
.settings-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.settings-sidebar {
    width: 190px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px;
    position: sticky;
    top: 30px;
}

.settings-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--text-secondary);
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.settings-sidebar-item:last-child {
    margin-bottom: 0;
}

.settings-sidebar-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.settings-sidebar-item.active {
    background: rgba(255, 140, 0, 0.12);
    color: var(--text-primary);
    font-weight: 500;
}

.settings-sidebar-item.active i {
    color: var(--accent-primary);
}

.settings-sidebar-item i {
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.settings-content {
    flex: 1;
    min-width: 0;
    max-width: 720px;
    position: relative;
}

.settings-content > .settings-panel {
    display: none;
    animation: settingsFadeIn 0.2s ease;
}

.settings-content > .settings-panel.active {
    display: block !important;
}

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

.settings-section-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    padding-left: 0;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 16px;
}

.settings-card:last-child {
    margin-bottom: 0;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.settings-card-header i {
    font-size: 15px;
    color: var(--accent-primary);
}

.settings-card-body {
    padding: 20px;
}

.settings-form-group {
    margin-bottom: 16px;
}

.settings-form-group:last-of-type {
    margin-bottom: 0;
}

.settings-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.settings-form-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.settings-info-block {
    padding: 0;
}

.settings-info-item {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.settings-info-item:last-child {
    margin-bottom: 0;
}

.settings-info-item span {
    color: var(--text-primary);
}

.settings-notice-block {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.settings-notice-block i {
    color: var(--accent-warning);
}

.settings-radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-radio-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    overflow: hidden;
}

.settings-radio-option:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.settings-radio-option input[type="radio"] {
    display: none;
}

.settings-radio-option:has(input:checked) {
    background: rgba(255, 140, 0, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.settings-radio-option:has(input:checked)::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 16px 16px;
    border-color: transparent transparent var(--accent-primary) transparent;
}

.settings-radio-option:has(input:checked)::before {
    content: '';
    display: block;
    width: 3px;
    height: 5px;
    border-right: 1.5px solid var(--text-primary);
    border-bottom: 1.5px solid var(--text-primary);
    position: absolute;
    right: 3px;
    bottom: 2px;
    z-index: 1;
    transform: rotate(45deg);
}

.settings-check-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    overflow: hidden;
    margin-bottom: 0;
    flex-shrink: 0;
}

.settings-form-group:has(.settings-check-label) {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.settings-check-label:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.settings-check-label input[type="checkbox"] {
    display: none;
}

.settings-check-label:has(input:checked) {
    background: rgba(255, 140, 0, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.settings-check-label:has(input:checked)::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 16px 16px;
    border-color: transparent transparent var(--accent-primary) transparent;
}

.settings-check-label:has(input:checked)::before {
    content: '';
    display: block;
    width: 3px;
    height: 5px;
    border-right: 1.5px solid var(--text-primary);
    border-bottom: 1.5px solid var(--text-primary);
    position: absolute;
    right: 3px;
    bottom: 2px;
    z-index: 1;
    transform: rotate(45deg);
}

.settings-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.btn-save-notifications {
    margin-top: 0;
}

@media (max-width: 992px) {
    .settings-layout {
        flex-direction: column;
        gap: 16px;
    }

    .settings-sidebar {
        width: 100%;
        position: static;
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 8px;
        overflow-x: auto;
    }

    .settings-sidebar-item {
        margin-bottom: 0;
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 12px;
    }

    .settings-content {
        max-width: none;
    }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.stat-card .card-body-custom {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-primary .stat-icon { background: rgba(255,140,0,0.15); color: var(--accent-primary); }
.stat-warning .stat-icon { background: rgba(255,200,0,0.15); color: var(--color-yellow); }
.stat-success .stat-icon { background: rgba(0,200,100,0.15); color: var(--color-success); }
.stat-info .stat-icon { background: rgba(0,150,255,0.15); color: var(--color-info-bright); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.config-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.config-card:hover {
    border-color: var(--border-hover);
}

.config-guide-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.config-guide-card h5 {
    font-size: 14px;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.config-guide-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.config-guide-card li {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 3px 0;
}

.config-guide-card code {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.status-pending { background: rgba(255,200,0,0.2); color: var(--color-yellow); }
.status-approved { background: rgba(0,200,100,0.2); color: var(--color-success); }
.status-rejected { background: rgba(255,68,68,0.2); color: var(--color-error); }
.status-abnormal { background: rgba(165,55,253,0.2); color: var(--color-purple); }

/* === AdventureX 风格申请表单 === */

/* Hero 区域：大标题 + 欢迎文案 */
.apply-hero-section {
    padding: 40px 0 50px;
    text-align: center;
    position: relative;
}

.apply-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 28px;
    letter-spacing: 2px;
    line-height: 1.2;
}

.apply-hero-welcome {
    max-width: 800px;
    margin: 0 auto;
}

.apply-hero-welcome p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin: 0;
    text-align: left;
}

.apply-hero-welcome strong {
    color: var(--accent-primary);
    font-weight: 600;
}

/* 表单居中 */
.apply-form-card {
    margin-bottom: 0;
}

.apply-form-card .card-body-custom {
    padding: 40px 32px;
}

/* 底部横条进度指示器 */
.apply-step-bars {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0 40px;
}

.apply-step-bar {
    width: 60px;
    height: 4px;
    background: rgba(255, 140, 0, 0.15);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.apply-step-bar .bar-fill {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.apply-step-bar.active {
    background: rgba(255, 140, 0, 0.3);
}

.apply-step-bar.active .bar-fill {
    width: 100%;
}

.apply-step-bar.completed {
    background: rgba(0, 200, 150, 0.2);
}

.apply-step-bar.completed .bar-fill {
    width: 100%;
    background: var(--color-success);
}

.apply-step-bar:hover {
    background: rgba(255, 140, 0, 0.3);
}

/* 导航按钮居中 */
.step-navigation {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 10px;
}

.step-navigation .btn-custom {
    min-width: 120px;
}

.btn-success-custom {
    background: var(--color-success);
    color: var(--bg-primary);
}

.btn-success-custom:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 英雄区域进度条（在标题和提示词下方） */
.apply-hero-progress {
    max-width: 600px;
    margin: 20px auto 0;
    height: 6px;
    background: rgba(255, 140, 0, 0.12);
    border-radius: 3px;
    overflow: hidden;
}

.apply-hero-progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.apply-hero-progress-text {
    max-width: 600px;
    margin: 10px auto 0;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 右侧提示卡片 */
.apply-tips-card {
    position: sticky;
    top: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.apply-tips-card .card-header-custom {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--accent-primary);
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li i {
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

/* 自定义日期选择器 */
.custom-date-input-wrapper {
    position: relative;
}

.custom-date-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 44px 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
    color-scheme: dark;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.custom-date-input::-webkit-calendar-picker-indicator {
    background: transparent;
    color: transparent;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.custom-date-input-wrapper .custom-date-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 16px;
    transition: color 0.2s;
    z-index: 1;
}

.custom-date-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.custom-date-input-wrapper:focus-within .custom-date-icon {
    color: var(--accent-primary);
}

/* 获奖/实习/链接条目 */
.award-item,
.internship-item,
.page-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.award-item .remove-item,
.internship-item .remove-item,
.page-item .remove-item {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s;
}

.award-item .remove-item:hover,
.internship-item .remove-item:hover,
.page-item .remove-item:hover {
    color: var(--color-error);
    background: rgba(255, 68, 68, 0.1);
}

@media (max-width: 768px) {
    .step-indicator {
        flex-wrap: wrap;
        gap: 8px;
    }

    .step {
        flex: 1;
        min-width: 60px;
    }

    .step-line {
        width: 20px;
        margin: 0 2px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-navigation {
        flex-direction: column;
    }

    .step-navigation .btn-custom {
        width: 100%;
    }
}

/* ============================================
   Review Page (审核页面)
   ============================================ */

.review-profile-table {
    width: 100%;
    border-collapse: collapse;
}

.review-profile-table tr {
    border-bottom: 1px solid var(--border-color);
}

.review-profile-table tr:last-child {
    border-bottom: none;
}

.review-profile-table td {
    padding: 12px 10px;
    font-size: 14px;
    color: var(--text-primary);
    vertical-align: top;
}

.review-profile-label {
    width: 130px;
    color: var(--text-secondary);
    font-size: 13px;
    white-space: nowrap;
}

.review-profile-value {
    color: var(--text-primary);
    font-size: 14px;
    word-break: break-word;
}

.review-profile-value.multiline {
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
}

.team-card {
    position: relative;
}

.team-card-header {
    position: relative;
}

.team-card-header .team-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-card-header span {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-primary);
}

.team-event-selector {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    position: relative;
}

.team-event-selector .custom-dropdown {
    min-width: 180px;
}

.team-event-selector .custom-dropdown-trigger {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-primary);
    min-height: auto;
    justify-content: flex-end;
    cursor: pointer;
}

.team-event-selector .custom-dropdown-trigger:hover,
.team-event-selector .custom-dropdown.open .custom-dropdown-trigger {
    background: transparent;
    box-shadow: none;
}

.team-event-selector .custom-dropdown-trigger .dropdown-placeholder {
    color: var(--accent-primary);
}

.team-event-selector .custom-dropdown-trigger .dropdown-arrow {
    color: var(--accent-primary);
    font-size: 11px;
}

.team-event-selector .custom-dropdown-menu {
    min-width: 180px;
    right: 0;
    left: auto;
}

.team-card-body {
    padding-top: 16px;
    min-height: 200px;
    position: relative;
}

.team-content-wrapper {
    position: relative;
    overflow: hidden;
}

.team-content-main {
    width: 100%;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s;
}

.team-content-wrapper.expanded .team-content-main {
    transform: translateX(-70%);
    opacity: 0.3;
    pointer-events: none;
}

.team-content-extra {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s;
    pointer-events: none;
    z-index: 10;
    background: var(--bg-card);
    border-radius: 0;
}

.team-content-wrapper.expanded .team-content-extra {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* 报名和更多队员的容器 */
.apply-extras-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.apply-card {
    background: var(--accent-primary);
    color: var(--text-primary);
    position: relative;
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
    flex-shrink: 0;
}

/* 更多队员独立面板 */
.team-extra-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 12px;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.team-extra-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-primary);
}

.team-extra-members {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 16px 0;
}

.team-extra-panel.show {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
    z-index: 20;
}

/* 展开状态 - 报名卡片向右移动并淡出 */
.apply-card.expanded {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 992px) {
    .apply-card {
        min-height: calc(100vh - 60px);
        position: sticky;
        top: 30px;
    }

    .team-extra-panel {
        min-height: calc(100vh - 60px);
    }
}

.team-extra-header .bi-people-fill {
    color: var(--accent-primary);
    font-size: 11px;
}

.team-extra-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-extra-close-btn:hover {
    color: var(--accent-primary);
    background: rgba(255, 140, 0, 0.1);
}

.team-extra-member-item:hover {
    background: rgba(255, 140, 0, 0.05);
}

.team-extra-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.team-extra-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-extra-member-info {
    flex: 1;
    min-width: 0;
}

.team-extra-member-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-extra-member-email {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 展开状态 - 报名卡片向右移动并淡出 */
.apply-extras-wrapper.expanded .apply-card-container {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.team-empty-text {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
}

.team-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.team-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.team-rename-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.team-rename-btn:hover {
    color: var(--accent-primary);
    background: rgba(255, 140, 0, 0.1);
}

.team-rename-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.team-rename-input {
    flex: 1;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.team-rename-input:focus {
    border-color: var(--accent-primary);
}

.team-rename-confirm,
.team-rename-cancel {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.team-rename-confirm:hover {
    color: var(--color-success-dark);
    background: rgba(39, 174, 96, 0.1);
}

.team-rename-cancel:hover {
    color: var(--color-error-bright);
    background: rgba(231, 76, 60, 0.1);
}

.team-members-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 60px;
    overflow-x: auto;
}

.team-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 70px;
    height: 90px;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    cursor: default;
}

.team-member-card:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 140, 0, 0.08);
}

.team-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--accent-primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.team-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-member-card.leader .team-member-avatar {
    background: var(--accent-primary);
}

.team-member-name {
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-member-badge {
    font-size: 10px;
    color: var(--accent-primary);
    font-weight: 500;
}

.team-member-badge-spacer {
    font-size: 10px;
    height: 14px;
}

.team-member-divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
    margin: 0 4px;
}

.team-expand-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 90px;
    flex-shrink: 0;
    margin-left: auto;
}

.team-expand-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 140, 0, 0.1);
    color: var(--accent-primary);
}

.team-expand-btn i {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-expand-arrow {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-expand-btn.expanded .team-expand-arrow {
    transform: rotate(180deg);
}

.team-extra-members {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
}

.team-extra-member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: -1px;
}

.team-extra-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.team-extra-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-extra-member-info {
    flex: 1;
}

.team-extra-member-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.team-extra-member-email {
    font-size: 11px;
    color: var(--text-muted);
}

.team-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.team-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

.team-btn-create {
    background: var(--text-on-accent);
    color: var(--text-primary);
    flex: 7;
}

.team-btn-create:hover {
    background: var(--bg-code);
}

.team-btn-create:disabled {
    background: var(--text-muted);
    color: var(--text-placeholder);
    cursor: not-allowed;
}

.team-btn-join {
    background: var(--text-primary);
    color: var(--text-on-accent);
    border: 1px solid var(--text-on-accent);
    flex: 3;
}

.team-btn-join:hover {
    background: var(--bg-light);
}

.team-btn-join.active {
    background: var(--text-on-accent);
    color: var(--text-primary);
}

.team-btn-dismiss {
    background: var(--text-on-accent);
    color: var(--text-primary);
    flex: 7;
}

.team-btn-dismiss:hover {
    background: var(--color-error-dark);
}

.team-btn-confirm {
    background: var(--text-on-accent);
    color: var(--text-primary);
    width: 100%;
}

.team-btn-confirm:hover {
    background: var(--bg-code);
}

.team-btn-create-confirm {
    background: var(--text-on-accent);
    color: var(--text-primary);
    width: 100%;
}

.team-btn-create-confirm:hover {
    background: var(--bg-code);
}

.team-join-panel {
    margin-top: 12px;
    animation: teamSlideDown 0.3s ease;
}

.team-join-panel:not(.d-none) {
    display: block !important;
}

.team-create-panel:not(.d-none) {
    display: block !important;
}

.team-join-key-input {
    position: relative;
    margin-bottom: 10px;
}

.team-join-key-input label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.team-key-wrap {
    position: relative;
    z-index: 20;
}

.team-key-input {
    width: 100%;
    padding: 8px 40px 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: monospace;
    outline: none;
}

.team-key-input:focus {
    border-color: var(--accent-primary);
}

.team-scan-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid rgba(255, 140, 0, 0.2);
    color: var(--accent-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    z-index: 1;
    pointer-events: auto;
}

.team-scan-btn:hover {
    color: var(--accent-primary);
    background: rgba(255, 140, 0, 0.1);
}

.scan-frame {
    width: 200px;
    height: 200px;
    margin: 16px auto;
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
}

.scan-corner {
    position: absolute;
    width: 24px;
    height: 24px;
}

.scan-corner::before,
.scan-corner::after {
    content: '';
    position: absolute;
    background: var(--accent-primary);
    border-radius: 2px;
}

.scan-corner-tl { top: -2px; left: -2px; }
.scan-corner-tl::before { top: 0; left: 0; width: 24px; height: 3px; }
.scan-corner-tl::after { top: 0; left: 0; width: 3px; height: 24px; }

.scan-corner-tr { top: -2px; right: -2px; }
.scan-corner-tr::before { top: 0; right: 0; width: 24px; height: 3px; }
.scan-corner-tr::after { top: 0; right: 0; width: 3px; height: 24px; }

.scan-corner-bl { bottom: -2px; left: -2px; }
.scan-corner-bl::before { bottom: 0; left: 0; width: 24px; height: 3px; }
.scan-corner-bl::after { bottom: 0; left: 0; width: 3px; height: 24px; }

.scan-corner-br { bottom: -2px; right: -2px; }
.scan-corner-br::before { bottom: 0; right: 0; width: 24px; height: 3px; }
.scan-corner-br::after { bottom: 0; right: 0; width: 3px; height: 24px; }

.scan-video-wrap {
    width: 200px;
    height: 200px;
    margin: 16px auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: none;
}

.scan-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-create-panel {
    margin-top: 12px;
    animation: teamSlideDown 0.3s ease;
}

.team-create-panel label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.team-create-input {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    margin-bottom: 10px;
}

.team-create-input:focus {
    border-color: var(--accent-primary);
}

.team-disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 20, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
}

.team-disabled-msg {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.team-started-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
    padding: 24px;
    animation: modalFadeIn 0.3s ease-out;
}

.team-started-msg {
    color: var(--text-primary);
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.6;
}

.team-started-verify {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
}

.team-started-verify input {
    flex: 1;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.team-started-verify input:focus {
    border-color: var(--accent-primary);
}

.team-started-verify button {
    flex: 0 0 auto;
    padding: 8px 20px;
    background: var(--accent-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.team-started-verify button:hover {
    opacity: 0.9;
}

.apply-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.apply-sidebar {
    width: 60px;
    flex-shrink: 0;
    padding: 30px 0;
    position: sticky;
    top: 30px;
    display: flex;
    justify-content: center;
}

.apply-progress-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 3px;
}

.apply-progress-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 3px;
}

.apply-progress-line {
    width: 3px;
    height: 60px;
    background: var(--border-hover);
    transition: all 0.3s;
    border-radius: 2px;
}

.apply-progress-segment .apply-progress-line {
    border-radius: 2px;
}

.apply-progress-segment.active .apply-progress-line {
    background: var(--accent-primary);
}

.apply-progress-segment.completed .apply-progress-line {
    background: var(--accent-primary);
}

.apply-content {
    flex: 1;
    min-width: 0;
    padding: 20px 0 40px;
}

.apply-welcome-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.apply-welcome-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.apply-welcome-decoration {
    max-width: 320px;
    margin: 0 auto 30px;
}

.apply-welcome-svg {
    width: 100%;
    height: auto;
}

.apply-welcome-text {
    max-width: 480px;
    margin: 0 auto;
}

.apply-welcome-text p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    text-align: left;
}

.apply-start-btn {
    margin-top: 30px;
    padding: 12px 32px;
    background: var(--accent-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-start-btn:hover {
    background: var(--accent-bright);
    transform: translateY(-2px);
}

.apply-step-container {
    padding: 20px 0;
}

.apply-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 30px;
    margin-bottom: 10px;
}

.apply-form-row {
    display: contents;
}

.apply-form-row-full {
    grid-column: 1 / -1;
}

.apply-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.apply-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.apply-input,
.apply-textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
}

.apply-input:focus,
.apply-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.08);
}

.apply-input::placeholder,
.apply-textarea::placeholder {
    color: var(--text-muted);
}

.apply-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.apply-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.apply-tag-group.equipment-tags {
    margin-top: 10px;
}

.apply-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    overflow: hidden;
}

.apply-tag:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.apply-tag input[type="checkbox"] {
    display: none;
}

.apply-tag:has(input:checked) {
    background: rgba(255, 140, 0, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.apply-tag:has(input:checked)::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 16px 16px;
    border-color: transparent transparent var(--accent-primary) transparent;
}

.apply-tag:has(input:checked)::before {
    content: '';
    display: block;
    width: 3px;
    height: 5px;
    border-right: 1.5px solid var(--text-primary);
    border-bottom: 1.5px solid var(--text-primary);
    position: absolute;
    right: 3px;
    bottom: 2px;
    z-index: 1;
    transform: rotate(45deg);
}

.apply-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.apply-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    overflow: hidden;
}

.apply-pill:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.apply-pill input[type="radio"] {
    display: none;
}

.apply-pill:has(input:checked) {
    background: rgba(255, 140, 0, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.apply-pill:has(input:checked)::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 16px 16px;
    border-color: transparent transparent var(--accent-primary) transparent;
}

.apply-pill:has(input:checked)::before {
    content: '';
    display: block;
    width: 3px;
    height: 5px;
    border-right: 1.5px solid var(--text-primary);
    border-bottom: 1.5px solid var(--text-primary);
    position: absolute;
    right: 3px;
    bottom: 2px;
    z-index: 1;
    transform: rotate(45deg);
}

.apply-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}

.apply-step-nav .apply-nav-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-step-nav .apply-nav-btn.prev-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.apply-step-nav .apply-nav-btn.prev-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.apply-step-nav .apply-nav-btn.next-btn {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.apply-step-nav .apply-nav-btn.next-btn:hover {
    background: var(--accent-bright);
    transform: translateY(-1px);
}

.apply-step-nav .apply-nav-btn.submit-btn {
    background: var(--color-success);
    color: var(--text-primary);
}

.apply-step-nav .apply-nav-btn.submit-btn:hover {
    background: var(--color-success-bg);
    transform: translateY(-1px);
}

.apply-step-nav .apply-nav-btn.apply-nav-submit {
    background: var(--color-success);
    color: var(--text-primary);
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-step-nav .apply-nav-btn.apply-nav-submit:hover {
    background: var(--color-success-bg);
    transform: translateY(-1px);
}

.apply-nav-submit.d-none {
    display: none !important;
}

.apply-nav-next.d-none {
    display: none !important;
}

.apply-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    margin-top: 8px;
}

.apply-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-primary);
}

.apply-checkbox span {
    line-height: 1.5;
}

.apply-confirmation-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
    margin-top: 8px;
}

.confirmation-row {
    display: flex;
    margin-bottom: 8px;
}

.confirmation-row:last-child {
    margin-bottom: 0;
}

.confirmation-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .apply-layout {
        flex-direction: column;
        gap: 20px;
    }

    .apply-sidebar {
        width: 100%;
        position: static;
        padding: 20px 0;
        display: flex;
        gap: 20px;
        overflow-x: auto;
    }

    .apply-sidebar-item {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        gap: 6px;
        min-width: 60px;
    }

    .apply-form-grid {
        grid-template-columns: 1fr;
    }

    .apply-radio-group,
    .apply-checkbox-group {
        flex-direction: column;
    }

    .toolbar-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .form-designer-toolbar {
        padding: 8px;
    }
    
    .toolbar-group {
        margin-bottom: 12px;
    }
    
    .toolbar-group label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .toolbar-btns {
        gap: 4px;
    }
    
    .toolbar-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .field-width-options {
        flex-wrap: wrap;
    }
    
    .field-width-option {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .form-preview-field {
        padding: 10px 12px;
    }
    
    .field-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .field-actions {
        align-self: flex-end;
    }
    
    .dynamic-form-heading1 {
        font-size: 20px;
    }
    
    .dynamic-form-heading2 {
        font-size: 18px;
    }
    
    .dynamic-form-heading3 {
        font-size: 16px;
    }
}
