/* 🎯 母公司状态显示和配置提醒样式 - parent-selection-enhanced.css */

/* 🎯 母公司状态显示区域样式 */
.parent-status-display {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: #fafafa;
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.parent-status-display.has-parent {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.parent-status-display.no-parent {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fefbf2, #fef3c7);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.1);
}

.status-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
}

.parent-status-display.has-parent .status-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.parent-status-display.no-parent .status-icon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.status-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.status-value {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.parent-status-display.has-parent .status-value {
    color: #059669;
}

.parent-status-display.no-parent .status-value {
    color: #d97706;
}

.status-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.status-hint i {
    color: #3b82f6;
    font-size: 0.875rem;
}

/* 🎯 配置提醒区域样式 */
.config-reminder {
    margin-top: 1.5rem;
    border: 2px solid #dbeafe;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    overflow: hidden;
    transition: all 0.3s ease;
}

.config-reminder:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.reminder-content {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
}

.reminder-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.reminder-text {
    flex: 1;
}

.reminder-text h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e40af;
}

.reminder-text p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #1e3a8a;
    line-height: 1.5;
}

.reminder-text ul {
    margin: 0;
    padding-left: 1rem;
    list-style: none;
}

.reminder-text li {
    font-size: 0.85rem;
    color: #1e40af;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reminder-text li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3b82f6;
    flex-shrink: 0;
}

/* 🎯 原有母公司选择功能样式保持不变 */
.parent-company-badge {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    animation: slideInRight 0.3s ease;
}

.parent-company-badge i {
    font-size: 0.875rem;
}

.ultimate-parent-card {
    border: 2px solid #f59e0b !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2) !important;
    position: relative;
    overflow: hidden;
}

.ultimate-parent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
    animation: shimmer 2s infinite;
}

.parent-company-section {
    margin: 1rem 0;
}

.parent-company-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: #fafafa;
    transition: all 0.3s ease;
}

.parent-company-control:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.control-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.control-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.control-content {
    margin-left: 1.5rem;
}

.parent-company-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.radio-option:hover {
    border-color: #d1d5db;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    transition: transform 0.2s ease;
}

.radio-option input[type="radio"]:checked + .radio-mark {
    border-color: #3b82f6;
    background: #3b82f6;
}

.radio-option input[type="radio"]:checked + .radio-mark::after {
    transform: translate(-50%, -50%) scale(1);
}

.ultimate-parent-option {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.ultimate-parent-option:hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
}

.ultimate-parent-option input[type="radio"]:checked + .radio-mark {
    border-color: #f59e0b;
    background: #f59e0b;
}

.ultimate-parent-option.selected {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fde68a, #fed7aa);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

.radio-label i {
    font-size: 1rem;
    color: #6b7280;
}

.ultimate-parent-option .radio-label {
    color: #92400e;
    font-weight: 600;
}

.ultimate-parent-option .radio-label i {
    color: #f59e0b;
}

.parent-company-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #1e40af;
}

.parent-company-hint i {
    color: #3b82f6;
    font-size: 0.875rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* 🎯 快速模板区域优化 */
.jurisdiction-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 0 0 14px 14px;
}

.quick-templates {
    text-align: center;
}

.template-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 500;
}

.template-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.template-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.template-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 🎯 动画效果 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* 🎯 响应式设计 */
@media (max-width: 768px) {
    .reminder-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .reminder-icon {
        align-self: center;
    }
    
    .status-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .status-text {
        align-items: center;
    }
    
    .parent-company-options {
        gap: 0.5rem;
    }
    
    .radio-option {
        padding: 0.5rem 0.75rem;
    }
    
    .radio-label {
        font-size: 0.85rem;
    }
    
    .control-content {
        margin-left: 0;
    }
    
    .parent-company-hint {
        font-size: 0.75rem;
    }
    
    .template-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .template-btn {
        min-width: 120px;
    }
    
    .config-reminder {
        margin-top: 1rem;
    }
    
    .reminder-text h5 {
        font-size: 1rem;
    }
    
    .reminder-text p {
        font-size: 0.85rem;
    }
    
    .reminder-text li {
        font-size: 0.8rem;
    }
}

/* 🎯 焦点状态 */
.radio-option:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* 🎯 禁用状态 */
.radio-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f3f4f6;
}

.radio-option.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 🎯 加载状态 */
.parent-company-control.loading {
    opacity: 0.7;
    pointer-events: none;
}

.parent-company-control.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 🎯 高级交互状态 */
.parent-status-display:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.config-reminder.completed {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.config-reminder.completed .reminder-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: none;
}

/* 🎯 错误状态 */
.parent-status-display.error {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.parent-status-display.error .status-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.parent-status-display.error .status-value {
    color: #dc2626;
}

/* 🎯 工具提示样式 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #374151;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 🎯 成功状态微动画 */
.status-success {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 🎯 深色模式支持（可选） */
@media (prefers-color-scheme: dark) {
    .parent-status-display {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .config-reminder {
        background: linear-gradient(135deg, #1e3a8a, #1e40af);
        border-color: #3b82f6;
    }
    
    .reminder-text h5,
    .reminder-text p,
    .reminder-text li {
        color: #f9fafb;
    }
    
    .parent-company-control {
        background: #1f2937;
        border-color: #374151;
    }
    
    .radio-option {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
}