/**
 * 个性化界面样式
 */

.personalization-btn {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.personalization-btn:hover {
    transform: translateY(-2px) rotate(90deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.personalization-panel {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 320px;
    max-height: 80vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 10001;
    overflow-y: auto;
}

.personalization-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.personalization-header h5 {
    margin: 0;
    font-size: 16px;
}

.personalization-header .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.personalization-body {
    padding: 20px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.setting-group .form-select {
    width: 100%;
}

.module-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-checkboxes .form-check {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* 主题样式 */
.theme-dark {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.theme-dark .card,
.theme-dark .modal-content {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

.theme-dark .navbar-dark {
    background-color: #0d0d0d !important;
}

/* 深色主题下的文字颜色适配 */
.theme-dark .text-muted {
    color: #b0b0b0 !important;
}

.theme-dark .text-dark {
    color: #ffffff !important;
}

.theme-dark .text-white {
    color: #ffffff !important;
}

.theme-dark .text-black {
    color: #ffffff !important;
}

/* 深色主题下的背景颜色适配 */
.theme-dark .bg-light,
.theme-dark .bg-white {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

.theme-dark .card-body {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

.theme-dark .card-header {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

/* 深色主题下的hero-section适配 */
.theme-dark .hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

/* 深色主题下的按钮适配 */
.theme-dark .btn-light {
    background-color: #404040 !important;
    color: #ffffff !important;
    border-color: #505050 !important;
}

.theme-dark .btn-light:hover {
    background-color: #505050 !important;
    color: #ffffff !important;
}

/* 深色主题下的表单元素 */
.theme-dark .form-control,
.theme-dark .form-select {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

.theme-dark .form-control:focus,
.theme-dark .form-select:focus {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #667eea !important;
}

/* 深色主题下的alert */
.theme-dark .alert-light {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

.theme-dark .alert-primary {
    background-color: rgba(102, 126, 234, 0.2) !important;
    color: #ffffff !important;
    border-color: #667eea !important;
}

.theme-dark .alert-warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #ffc107 !important;
    border-color: #ffc107 !important;
}

/* 深色主题下的badge */
.theme-dark .badge {
    color: #ffffff !important;
}

.theme-dark .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000000 !important;
}

/* 深色主题下的progress bar */
.theme-dark .progress {
    background-color: #2d2d2d !important;
}

/* 深色主题下的链接 */
.theme-dark a {
    color: #667eea !important;
}

.theme-dark a:hover {
    color: #5568d3 !important;
}

/* 深色主题下的列表 */
.theme-dark ul,
.theme-dark ol {
    color: #ffffff !important;
}

/* 深色主题下的h1-h6标题 */
.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark h5,
.theme-dark h6 {
    color: #ffffff !important;
}

/* 深色主题下的p标签 */
.theme-dark p {
    color: #ffffff !important;
}

/* 深色主题下的small标签 */
.theme-dark small {
    color: #b0b0b0 !important;
}

/* 深色主题下的strong标签 */
.theme-dark strong {
    color: #ffffff !important;
}

/* 深色主题下的value-card */
.theme-dark .value-card {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #404040 !important;
}

/* 深色主题下的quick-start */
.theme-dark .quick-start {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

/* 深色主题下的container */
.theme-dark .container {
    color: #ffffff !important;
}

/* 深色主题下的section */
.theme-dark section {
    color: #ffffff !important;
}

/* 布局样式 */
.layout-compact .container {
    max-width: 1200px;
}

.layout-compact .card {
    padding: 10px;
    margin-bottom: 10px;
}

.layout-wide .container {
    max-width: 1800px;
}

/* 字体大小 */
.font-small {
    font-size: 14px;
}

.font-medium {
    font-size: 16px;
}

.font-large {
    font-size: 18px;
}

/* 紧凑模式 */
.compact-mode .card-body {
    padding: 10px;
}

.compact-mode .btn {
    padding: 4px 8px;
    font-size: 0.875rem;
}

.compact-mode .navbar {
    padding: 0.25rem 1rem;
}

/* 禁用动画 */
.no-animations * {
    animation: none !important;
    transition: none !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .personalization-panel {
        width: 90%;
        right: 5%;
        top: 10%;
        transform: none;
        max-height: 80vh;
    }
    
    .personalization-btn {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

