/* AUTO-GENERATED — do not edit by hand.
 * Regenerate: python scripts/build_app_shell_bundle.py
 * Sources: assets/css/settings/components/forms/index.css
 */

/* === import from ./forms.css (forms.css) */
/*
   -------------------------------------------------------------------------
   Settings Form Styles
   -------------------------------------------------------------------------
   
   Form layout and input styling for settings pages.
   Includes premium-style form rows with labels and custom inputs.
*/

/* Form Row Layout */
.form-row {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    gap: 40px;
}

/* Label Container */
.form-label-container {
    width: 240px;
    flex-shrink: 0;
}

/* Main Label */
.form-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

/* Sub Label (Description) */
.form-sublabel {
    font-size: 12px;
    color: var(--muted2);
    line-height: 1.5;
}

/* Input Container */
.form-input-container {
    flex: 1;
}

/* Custom Text Input Styling */
.custom-text-input input {
    background: var(--panel2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: var(--text) !important;
    padding: 12px 16px !important;
    height: auto !important;
    transition: all 0.2s ease !important;
}

/* Custom Text Input Focus State */
.custom-text-input input:focus {
    border-color: var(--brand1) !important;
    background: var(--panel) !important;
    box-shadow: 0 0 0 3px rgba(var(--brand1-rgb), 0.1) !important;
}


/* === import from ./theme-selector.css (theme-selector.css) */
/*
   -------------------------------------------------------------------------
   Theme Selector Component Styles
   -------------------------------------------------------------------------
   
   Interactive theme selection component with preview cards.
   Supports light, dark, and auto theme options.
*/

/* Theme Selector Grid */
.theme-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Theme Option Card */
.theme-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--panel2);
}

/* Theme Option Hover State */
.theme-option:hover {
    border-color: var(--brand1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Active Theme Option */
.theme-option-active {
    border-color: var(--brand1);
    background: rgba(75, 124, 255, 0.05);
}

/* Theme Preview Area */
.theme-preview {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Light Theme Preview */
.theme-preview-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Dark Theme Preview */
.theme-preview-dark {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Auto Theme Preview */
.theme-preview-auto {
    background: linear-gradient(135deg, #f8fafc 0%, #1e293b 100%);
}

/* Theme Label */
.theme-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* Check Mark Icon */
.theme-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand1);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Show Check Mark on Active Theme */
.theme-option-active .theme-check {
    display: flex;
}


/* === import from ./color-palette.css (color-palette.css) */
/*
   -------------------------------------------------------------------------
   Color Palette Component Styles
   -------------------------------------------------------------------------
   
   Color swatch display components for showing color palettes.
   Includes both general color swatches and brand color grids.
*/

/* Color Palette Grid Container */
.color-palette-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Color Swatch Group */
.color-swatch-group {
    display: flex;
    flex-direction: column;
}

/* Individual Color Swatch */
.color-swatch {
    height: 80px;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

/* Color Swatch Hover Effect */
.color-swatch:hover {
    transform: translateY(-2px);
}

/* Color Label */
.color-label {
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Color Value (Hex/RGB) */
.color-value {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Brand Color Grid (2 rows x 4 columns) */
.brand-color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}


/* === import from ./profile.css (profile.css) */
/* Premium V2 Profile Immersive Styles - 2.0 Refinement */

:root {
    --profile-primary: var(--brand1);
    --profile-secondary: var(--brand0);
    --profile-accent: var(--brand3);
    --glass-bg: var(--glass-bg);
    --glass-border: var(--glass-border);
}

.profile-immersive-layout {
    animation: fadeIn 0.8s ease-out;
    padding: 20px 20px 60px 20px; /* 默认移动端边距，让出四周空间 */
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .profile-immersive-layout {
        padding: 40px 40px 80px 40px; /* 桌面端边距，更宽敞 */
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. Hero Card - Enhanced with Dynamic Gradient */
.profile-hero-card {
    position: relative;
    overflow: hidden;
    background: var(--panel) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow) !important;
    min-height: 300px;
    margin-bottom: 60px !important; /* 增加大标题区域与下方信息的距离 */
    transition: box-shadow 0.4s ease;
}

.profile-hero-card:hover {
    box-shadow: var(--shadow2) !important;
}

.profile-hero-inner {
    transition: padding 0.3s ease;
    padding: 40px 30px; /* 默认移动端内边距 */
    display: flex;
    flex-direction: column; /* 窄屏下垂直排列 */
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .profile-hero-inner {
        padding: 60px 80px; /* 桌面端内边距 */
        flex-direction: row; /* 宽屏下水平排列 */
        align-items: center;
        gap: 60px;
    }
}

/* 2. Avatar System - With Clickable Upload */
.avatar-wrapper {
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-hero-bg::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--profile-secondary) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.35;
    animation: float 20s infinite alternate;
}

@keyframes float {
    from { transform: translate(0, 0); }
    to { transform: translate(-100px, 50px); }
}

/* 2. Avatar System - With Clickable Upload */
.avatar-wrapper {
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-wrapper:hover {
    transform: scale(1.05);
}

.profile-main-avatar {
    border: 6px solid var(--panel);
    box-shadow: var(--shadow2);
    background: linear-gradient(135deg, var(--bg1) 0%, var(--panel) 100%) !important;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--profile-primary);
    color: white;
    border: 3px solid var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
    z-index: 3;
}

.avatar-edit-btn:hover {
    background: var(--brand7);
}

/* 3. Info Cards - Grid Style */
.glass-card-borderless {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--card-shadow) !important;
    transition: all 0.3s ease;
}

.glass-card-borderless:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow) !important;
    border-color: var(--profile-primary) !important;
}

.profile-name {
    letter-spacing: -1px;
    background: var(--hero-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 4. Mini Stats or Badges */
.profile-badge-pill {
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Custom Upload Styling */
/* Disabled / Read-only Glass Cards for God Admin */
.glass-card-disabled {
    background: var(--bg1) !important; /* 更灰的底色 */
    border: 1px dashed var(--muted2) !important;
    backdrop-filter: grayscale(100%) blur(4px) !important;
    cursor: not-allowed;
    opacity: 0.85;
}

.glass-card-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.profile-edit-trigger.disabled {
    pointer-events: none;
    opacity: 0;
}

.readonly-badge {
    color: var(--muted2);
    background: var(--bg1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
