/* ベース設定 */
:root {
    /* カラーパレット - ライトモード (Discord風) */
    --primary-color: #5865F2;
    --primary-dark: #4752C4;
    --primary-light: #E8E9FD;
    --primary-gradient: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    --secondary-color: #2E3267;
    --secondary-light: #E9E4F9;
    --success-color: #3BA55C;
    --success-light: #ECFDF3;
    --warning-color: #FAA61A;
    --warning-light: #FFF5E9;
    --danger-color: #ED4245;
    --danger-light: #FDECEC;
    --info-color: #3E93EC;
    --info-light: #ECF4FD;
    --dark-color: #23272A;
    --text-color: #2E3338;
    --text-secondary: #747F8D;
    --text-light: #96989D;
    --text-muted: #B9BBBE;
    --bg-color: #F2F3F5;
    --bg-light: #FFFFFF;
    --bg-dark: #EBEDEF;
    --sidebar-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --border-color: #DCDDDE;
    --border-light: #EBEDEF;
    
    /* 効果 */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 16px rgba(88, 101, 242, 0.1);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* レイアウト */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 64px;
    --container-padding: 30px;
    
    /* アニメーション */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  /* Coming Soonタブのスタイル */
  .settings-nav-item.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
  }
  
  .settings-nav-item.coming-soon:hover {
    background-color: transparent;
    transform: none;
  }
  
  .settings-nav-item.coming-soon span {
    opacity: 0.7;
  }
  
  .settings-nav-item.coming-soon i {
    opacity: 0.5;
  }
  
  /* Coming Soonバッジ */
  .coming-soon-badge {
    display: inline-block;
    margin-left: auto;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    background-color: var(--warning-color);
    color: white;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
  }
  
  /* settings-nav-item内のテキストとアイコンを含むコンテナ */
  .settings-nav-item-content {
    display: flex;
    align-items: center;
    flex: 1;
  }
  
  /* Coming Soonタブのアニメーション効果 */
  .settings-nav-item.coming-soon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
  }
  
  @keyframes shine {
    to {
      left: 100%;
    }
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 14px;
    line-height: 1.5;
  }
  
  ul {
    list-style: none;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  button {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
  }
  
  /* アプリレイアウト */
  .app-container {
    display: flex;
    min-height: 100vh;
  }
  
  /* サイドバー */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
  }
  
  .sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
  }
  
  .sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .logo {
    height: 30px;
    transition: var(--transition);
  }
  
  .sidebar.collapsed .logo {
    display: none;
  }
  
  .collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--text-light);
    border-radius: 50%;
    transition: var(--transition);
  }
  
  .collapse-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
  }
  
  .sidebar-nav {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
  }
  
  .sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
  }
  
  .theme-switch {
    margin-bottom: 16px;
  }
  
  .theme-toggle-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    border-radius: var(--radius);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
  }
  
  .theme-toggle-btn i {
    margin-right: 12px;
  }
  
  .theme-toggle-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
  }
  
  .sidebar-info {
    font-size: 12px;
    color: var(--text-light);
  }
  
  .sidebar-help {
    display: flex;
    align-items: center;
    margin-top: 8px;
    color: var(--primary-color);
  }
  
  .sidebar-help i {
    margin-right: 8px;
  }
  
  .sidebar-nav ul li {
    position: relative;
    margin-bottom: 8px;
    padding: 0 16px;
  }
  
  .sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-color);
    transition: var(--transition);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
  }
  
  .sidebar-nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
  }
  
  .sidebar-nav ul li a i {
    font-size: 20px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  
  .sidebar-nav ul li a span {
    margin-left: 10px;
    white-space: nowrap;
    opacity: 1;
    transition: var(--transition);
    font-weight: 500;
  }
  
  .sidebar.collapsed .sidebar-nav ul li a span {
    opacity: 0;
    width: 0;
  }
  
  .sidebar-nav ul li a:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
  
  .sidebar-nav ul li.active a {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
  }
  
  .sidebar-nav ul li.active a::before {
    width: 4px;
    opacity: 1;
  }
  
  .sidebar-nav ul li a .menu-tooltip {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 10;
    pointer-events: none;
  }
  
  .sidebar.collapsed .sidebar-nav ul li a:hover .menu-tooltip {
    opacity: 1;
    visibility: visible;
  }
  
  /* メインコンテンツ */
  .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
  }
  
  .sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-collapsed-width);
  }
  
  /* トップヘッダー */
  .top-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    z-index: 990;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
  }
  
  .header-left {
    display: flex;
    align-items: center;
  }
  
  .mobile-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-color);
    margin-right: 15px;
    transition: var(--transition);
  }
  
  .mobile-toggle-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
  }
  
  .search-container {
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    border-radius: 20px;
    padding: 8px 15px;
    width: 300px;
  }
  
  .search-container i {
    color: var(--text-light);
    margin-right: 8px;
  }
  
  .search-input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    color: var(--text-color);
  }
  
  .header-actions {
    display: flex;
    align-items: center;
  }
  
  .header-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-light);
    margin-left: 5px;
    border-radius: 50%;
    transition: var(--transition);
  }
  
  .header-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
  }
  
  .notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--danger-color);
    color: white;
    font-size: 10px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .user-profile {
    display: flex;
    align-items: center;
    margin-left: 15px;
    padding: 5px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
  }
  
  .user-profile:hover {
    background-color: var(--primary-light);
  }
  
  .profile-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .user-info {
    margin: 0 10px;
    white-space: nowrap;
  }
  
  .user-name {
    font-weight: 600;
    font-size: 14px;
  }
  
  .user-role {
    font-size: 12px;
    color: var(--text-light);
  }
  
  /* ページコンテンツ */
  .page-content {
    flex: 1;
    padding: 20px 30px 40px;
    overflow-y: auto;
  }
  
  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
  }
  
  .page-title h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .page-title p {
    color: var(--text-light);
    max-width: 600px;
  }
  
  /* ボタンスタイル */
  .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translateZ(0);
    white-space: nowrap;
  }
  
  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
  }
  
  .btn:hover::before {
    transform: translateY(0);
  }
  
  .btn span, .btn i {
    position: relative;
    z-index: 2;
  }
  
  .primary-btn {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
  }
  
  .primary-btn:hover {
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.3);
    transform: translateY(-2px);
  }
  
  .primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.2);
  }
  
  .primary-btn:disabled {
    background: linear-gradient(135deg, #A0A6E5 0%, #9AA0E0 100%);
    cursor: not-allowed;
    box-shadow: none;
  }
  
  .primary-btn:disabled:hover {
    transform: none;
    box-shadow: none;
  }
  
  .secondary-btn {
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
  }
  
  .secondary-btn:hover {
    background-color: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
  }
  
  .secondary-btn:active {
    transform: translateY(0);
  }
  
  .secondary-btn:disabled {
    color: var(--text-muted);
    background-color: var(--bg-light);
    border-color: var(--border-color);
    cursor: not-allowed;
  }
  
  .secondary-btn:disabled:hover {
    transform: none;
    border-color: var(--border-color);
    color: var(--text-muted);
  }
  
  .text-btn {
    color: var(--primary-color);
    padding: 6px 12px;
    background: transparent;
    position: relative;
  }
  
  .text-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
  }
  
  .text-btn:hover {
    background-color: var(--primary-light);
  }
  
  .text-btn:hover::after {
    width: 100%;
  }
  
  .danger-btn {
    background-color: var(--danger-color);
    color: white;
    box-shadow: 0 4px 12px rgba(237, 66, 69, 0.2);
  }
  
  .danger-btn:hover {
    box-shadow: 0 6px 16px rgba(237, 66, 69, 0.3);
    transform: translateY(-2px);
  }
  
  .danger-text {
    color: var(--danger-color);
  }
  
  .danger-text:hover {
    background-color: var(--danger-light);
  }
  
  .btn i {
    margin-right: 8px;
    font-size: 16px;
  }
  
  .mini-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  /* モーダル */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
  }
  
  .modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    width: 400px;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: modalFadeIn 0.3s;
  }
  
  .large-modal {
    width: 600px;
  }
  
  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .modal-header h2 {
    font-size: 18px;
    font-weight: 600;
  }
  
  .close-modal {
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
  }
  
  .close-modal:hover {
    color: var(--danger-color);
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    gap: 10px;
  }
  
  /* 設定ページスタイル */
  .settings-container {
    display: flex;
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: calc(100vh - 250px);
    border: 1px solid var(--border-light);
  }
  
  /* 設定サイドバー */
  .settings-sidebar {
    width: 240px;
    background-color: var(--bg-dark);
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
  }
  
  .settings-nav {
    padding: 10px 0;
  }
  
  .settings-nav-item {
    padding: 0 10px;
    margin-bottom: 2px;
  }
  
  .settings-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: var(--text-color);
    cursor: pointer;
    border-radius: var(--radius);
    margin: 2px 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }
  
  .settings-nav-item i {
    margin-right: 12px;
    font-size: 18px;
    color: var(--text-secondary);
    width: 24px;
    text-align: center;
  }
  
  .settings-nav-item:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
  }
  
  .settings-nav-item:hover i {
    color: var(--primary-color);
  }
  
  .settings-nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
  }
  
  .settings-nav-item.active i {
    color: var(--primary-color);
  }
  
  .settings-nav-item.danger {
    margin-top: 20px;
    color: var(--danger-color);
  }
  
  .settings-nav-item.danger i {
    color: var(--danger-color);
  }
  
  .settings-nav-item.danger:hover {
    background-color: var(--danger-light);
  }
  
  /* 設定コンテンツ */
  .settings-content {
    flex: 1;
    overflow: auto;
  }
  
  .settings-tab {
    display: none;
    animation: fadeIn 0.3s ease;
  }
  
  .settings-tab.active {
    display: block;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  .settings-section {
    padding: 30px;
  }
  
  .settings-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .settings-section-desc {
    color: var(--text-light);
    margin-bottom: 24px;
  }
  
  .settings-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 24px 0;
  }
  
  .settings-subsection-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-color);
  }
  
  /* フォームスタイル */
  .settings-form {
    margin-top: 20px;
  }
  
  .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
  }
  
  .form-group {
    margin-bottom: 20px;
    flex: 1;
  }
  
  .form-group.full-width {
    width: 100%;
  }
  
  .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
  }
  
  .form-group small {
    display: block;
    color: var(--text-light);
    font-size: 12px;
    margin-top: 4px;
  }
  
  .form-select, .form-input, .form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--bg-light);
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
    font-size: 14px;
  }
  
  .form-select:focus, .form-input:focus, .form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.1);
  }
  
  .form-select:disabled, .form-input:disabled {
    background-color: var(--bg-dark);
    cursor: not-allowed;
    color: var(--text-light);
  }
  
  .form-textarea {
    resize: vertical;
    min-height: 80px;
  }
  
  .mini-select {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 8px;
  }
  
  .checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
  }
  
  .checkbox-label input, .radio-label input {
    margin-right: 8px;
  }
  
  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
  }
  
  .form-actions.centered {
    justify-content: center;
  }
  
  /* プロフィール設定 */
  .profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }
  
  .profile-avatar-container {
    position: relative;
    margin-right: 24px;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow);
  }
  
  .avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .avatar-upload-btn:hover {
    transform: scale(1.1);
  }
  
  .profile-info {
    flex: 1;
  }
  
  .profile-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .profile-info p {
    color: var(--text-light);
    margin-bottom: 8px;
  }
  
  .badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
  }
  
  .admin-badge {
    background-color: var(--primary-light);
    color: var(--primary-color);
  }
  
  .success-badge {
    background-color: var(--success-light);
    color: var(--success-color);
  }
  
  .warning-badge {
    background-color: var(--warning-light);
    color: var(--warning-color);
  }
  
  .error-badge {
    background-color: var(--danger-light);
    color: var(--danger-color);
  }
  
  /* パスワード関連 */
  .password-input-container {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .password-input {
    padding-right: 40px;
  }
  
  .password-toggle-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
  }
  
  .password-toggle-btn:hover {
    color: var(--primary-color);
  }
  
  .password-strength {
    margin-top: 8px;
    margin-bottom: 16px;
  }
  
  .strength-bar {
    height: 6px;
    background-color: var(--bg-dark);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
  }
  
  .strength-fill {
    height: 100%;
    background-color: var(--danger-color);
    border-radius: 3px;
    transition: var(--transition);
  }
  
  .strength-fill.weak {
    background-color: var(--danger-color);
    width: 25%;
  }
  
  .strength-fill.medium {
    background-color: var(--warning-color);
    width: 50%;
  }
  
  .strength-fill.strong {
    background-color: var(--success-color);
    width: 75%;
  }
  
  .strength-fill.very-strong {
    background-color: var(--success-color);
    width: 100%;
  }
  
  .strength-text {
    font-size: 12px;
    color: var(--text-light);
  }
  
  .password-requirements {
    background-color: var(--bg-color);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .password-requirements p {
    margin-bottom: 8px;
    color: var(--text-secondary);
  }
  
  .password-requirements ul {
    margin-left: 20px;
    color: var(--text-light);
  }
  
  .password-requirements ul li {
    list-style-type: disc;
    margin-bottom: 4px;
  }
  
  /* ログイン履歴 */
  .login-history {
    margin-bottom: 16px;
  }
  
  .login-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: var(--bg-color);
    border-radius: var(--radius);
    margin-bottom: 12px;
  }
  
  .login-info {
    display: flex;
    align-items: center;
    flex: 1;
  }
  
  .login-device {
    display: flex;
    align-items: center;
    margin-right: 24px;
  }
  
  .login-device i {
    font-size: 24px;
    margin-right: 12px;
    color: var(--text-secondary);
  }
  
  .device-details h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .device-details p {
    font-size: 12px;
    color: var(--text-light);
  }
  
  .login-time {
    display: flex;
    flex-direction: column;
  }
  
  .time-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
  }
  
  .time-value {
    font-size: 13px;
    font-weight: 500;
  }
  
  /* 外部サービス連携 */
  .integration-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 24px;
  }
  
  .integration-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
  }
  
  /* 案件ボード風のステータスバー */
  .integration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border-color);
    transition: background 0.3s ease;
  }
  
  .integration-card[data-integration="google"]::before {
    background: var(--success-color);
  }
  
  .integration-card[data-integration="google"].connected::before {
    background: var(--success-color);
  }
  
  .integration-card[data-integration="microsoft"]::before {
    background: #00a4ef;
  }
  
  .integration-card[data-integration="slack"]::before {
    background: #4a154b;
  }
  
  .integration-card[data-integration="salesforce"]::before {
    background: #1798c1;
  }
  
  .integration-card[data-integration="timerex"]::before {
    background: var(--primary-color);
  }
  
  .integration-card[data-integration="timerex"].connected::before {
    background: var(--success-color);
  }
  
  .integration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
  }
  
  .integration-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-light);
  }
  
  .integration-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 24px;
    color: white;
  }
  
  .integration-logo.google {
    background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335);
  }
  
  .integration-logo.microsoft {
    background: linear-gradient(135deg, #00A1F1, #7CBB00, #FFB900, #F65314);
  }
  
  .integration-logo.salesforce {
    background-color: #00A1E0;
  }
  
  .integration-logo.slack {
    background: linear-gradient(135deg, #36C5F0, #2EB67D, #ECB22E, #E01E5A);
  }
  
  .integration-logo.timerex {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
  }
  
  .integration-info {
    flex: 1;
  }
  
  .integration-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .integration-info p {
    font-size: 13px;
    color: var(--text-light);
  }
  
  .integration-status {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
  }
  
  .integration-status.connected {
    color: var(--success-color);
  }
  
  /* Coming Soonスタイル */
  .status-text.coming-soon {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success-color);
    margin-right: 6px;
  }
  
  .integration-content {
    padding: 16px;
  }
  
  .integration-details {
    margin-bottom: 16px;
  }
  
  .detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .detail-label {
    width: 120px;
    font-size: 13px;
    color: var(--text-secondary);
  }
  
  .detail-value {
    font-size: 13px;
    font-weight: 500;
  }
  
  .detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--bg-color);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
  }
  
  .connect-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
  }
  
  .integration-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  
  /* 無効化されたボタンのスタイル */
  .integration-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--border-color);
    color: var(--text-light);
  }
  
  .integration-actions .btn:disabled:hover {
    background-color: var(--border-color);
    transform: none;
  }
  
  /* 通知設定 */
  .notification-controls {
    margin-top: 20px;
  }
  
  .notification-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }
  
  .notification-control-header h3 {
    font-size: 16px;
    font-weight: 600;
  }
  
  .notification-channels {
    background-color: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
  }
  
  .channel-labels {
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .channel-label {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
  }
  
  .channel-label:first-child {
    flex: 1;
  }
  
  .channel-label:not(:first-child) {
    width: 80px;
    justify-content: center;
  }
  
  .channel-label i {
    margin-right: 6px;
  }
  
  .notification-items {
    padding: 12px;
  }
  
  .notification-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
  }
  
  .notification-item:last-child {
    border-bottom: none;
  }
  
  .notification-type {
    flex: 1;
  }
  
  .notification-type h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .notification-type p {
    font-size: 12px;
    color: var(--text-light);
  }
  
  .notification-toggles {
    display: flex;
  }
  
  .notification-toggles .toggle-switch {
    margin: 0 30px;
  }
  
  /* トグルスイッチ */
  .toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
  }
  
  .toggle-switch.large {
    width: 50px;
    height: 26px;
  }
  
  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-dark);
    transition: var(--transition);
    border-radius: 22px;
  }
  
  .toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
  }
  
  .toggle-switch.large .toggle-slider:before {
    height: 20px;
    width: 20px;
  }
  
  input:checked + .toggle-slider {
    background-color: var(--primary-color);
  }
  
  input:checked + .toggle-slider:before {
    transform: translateX(18px);
  }
  
  .toggle-switch.large input:checked + .toggle-slider:before {
    transform: translateX(24px);
  }
  
  /* 通知頻度設定 */
  .notification-frequency {
    background-color: var(--bg-color);
    border-radius: var(--radius);
    padding: 16px;
  }
  
  .time-range {
    display: flex;
    align-items: center;
  }
  
  .time-input {
    width: 100px;
  }
  
  .time-separator {
    margin: 0 10px;
    color: var(--text-light);
  }
  
  /* APIキー管理 */
  .apikey-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
  }
  
  .apikey-info {
    display: flex;
    padding: 15px;
    background-color: var(--info-light);
    border-radius: var(--radius);
    margin-right: 20px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
  }
  
  .apikey-info i {
    margin-right: 12px;
    font-size: 20px;
    color: var(--info-color);
    flex-shrink: 0;
  }
  
  .apikey-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
  }
  
  .apikey-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  
  .apikey-table th,
  .apikey-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
  }
  
  .apikey-table th {
    background-color: var(--bg-color);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
  }
  
  .apikey-table tr:last-child td {
    border-bottom: none;
  }
  
  .key-name {
    display: flex;
    align-items: center;
  }
  
  .key-name i {
    margin-right: 8px;
    color: var(--primary-color);
  }
  
  .key-value-container {
    display: flex;
    align-items: center;
  }
  
  .key-value {
    font-family: monospace;
    background-color: var(--bg-color);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin-right: 8px;
  }
  
  .key-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
  }
  
  .key-copy-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
  }
  
  .permission-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .permission-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--bg-color);
    border-radius: 12px;
    font-size: 11px;
    color: var(--text-secondary);
  }
  
  .table-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
  }
  
  .table-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
  }
  
  .table-action-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
  }
  
  .table-action-btn.delete-btn:hover {
    background-color: var(--danger-light);
    color: var(--danger-color);
  }
  
  .table-action-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-color);
    color: white;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .table-action-btn[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
  }
  
  /* APIログ */
  .apikey-logs {
    margin-top: 30px;
  }
  
  .logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }
  
  .log-filters {
    display: flex;
    gap: 10px;
  }
  
  .logs-table-container {
    overflow-x: auto;
  }
  
  .logs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  
  .logs-table th,
  .logs-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    font-size: 13px;
  }
  
  .logs-table th {
    background-color: var(--bg-color);
    font-weight: 600;
    color: var(--text-secondary);
  }
  
  .logs-table tr:last-child td {
    border-bottom: none;
  }
  
  .status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
  }
  
  .status-badge.success {
    background-color: var(--success-light);
    color: var(--success-color);
  }
  
  .status-badge.error {
    background-color: var(--danger-light);
    color: var(--danger-color);
  }
  
  /* セキュリティ設定 */
  .security-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
  }
  
  .security-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
  }
  
  .security-card-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-light);
  }
  
  .security-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 20px;
    color: var(--primary-color);
    background-color: var(--primary-light);
  }
  
  .security-info {
    flex: 1;
  }
  
  .security-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .security-info p {
    font-size: 13px;
    color: var(--text-light);
  }
  
  .security-card-content {
    padding: 16px;
  }
  
  .two-factor-setup {
    display: flex;
    gap: 24px;
  }
  
  .qr-code-container {
    background-color: white;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .qr-code {
    max-width: 150px;
    height: auto;
  }
  
  .two-factor-instructions {
    flex: 1;
  }
  
  .two-factor-instructions h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
  }
  
  .two-factor-instructions ol {
    margin-left: 20px;
    margin-bottom: 16px;
  }
  
  .two-factor-instructions ol li {
    margin-bottom: 8px;
    color: var(--text-secondary);
  }
  
  .backup-code {
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    padding: 10px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
  }
  
  .code-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-right: 8px;
  }
  
  .backup-code code {
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 1px;
    margin-right: 8px;
  }
  
  .code-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
  }
  
  .code-copy-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
  }
  
  .security-warning {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    background-color: var(--warning-light);
    border-radius: var(--radius);
    margin-bottom: 16px;
    color: var(--warning-color);
    font-size: 13px;
    line-height: 1.5;
  }
  
  .security-warning i {
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
  }
  
  .ip-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }
  
  .ip-list-header h4 {
    font-size: 16px;
    font-weight: 600;
  }
  
  .ip-list {
    margin-bottom: 16px;
  }
  
  .ip-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: var(--bg-color);
    border-radius: var(--radius);
    margin-bottom: 8px;
  }
  
  .ip-info {
    display: flex;
    align-items: center;
  }
  
  .ip-address {
    font-family: monospace;
    font-size: 14px;
    font-weight: 500;
    margin-right: 12px;
  }
  
  .ip-desc {
    font-size: 13px;
    color: var(--text-light);
  }
  
  /* セキュリティログ */
  .security-log-content {
    max-height: 300px;
    overflow-y: auto;
  }
  
  .security-logs {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .security-log-item {
    display: flex;
    background-color: var(--bg-color);
    padding: 12px 16px;
    border-radius: var(--radius);
  }
  
  .log-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
  }
  
  .log-icon.success {
    background-color: var(--success-light);
    color: var(--success-color);
  }
  
  .log-icon.warning {
    background-color: var(--warning-light);
    color: var(--warning-color);
  }
  
  .log-icon.error {
    background-color: var(--danger-light);
    color: var(--danger-color);
  }
  
  .log-details {
    flex: 1;
  }
  
  .log-action {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
  }
  
  .log-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
  }
  
  /* 表示設定 */
  .appearance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .appearance-card {
    background-color: var(--bg-light);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
  }
  
  .appearance-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
  }
  
  .theme-options {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  
  .theme-option {
    flex: 1;
    min-width: 100px;
  }
  
  .theme-option input[type="radio"] {
    display: none;
  }
  
  .theme-card {
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
  }
  
  .theme-preview {
    height: 100px;
    margin-bottom: 8px;
  }
  
  .light-preview {
    background: linear-gradient(to bottom, #F2F3F5 0%, #FFFFFF 100%);
  }
  
  .dark-preview {
    background: linear-gradient(to bottom, #36393F 0%, #2F3136 100%);
  }
  
  .system-preview {
    background: linear-gradient(to right, #F2F3F5 0%, #FFFFFF 50%, #36393F 50%, #2F3136 100%);
  }
  
  .theme-name {
    text-align: center;
    padding: 8px;
    font-size: 13px;
    color: var(--text-secondary);
  }
  
  .theme-option input[type="radio"]:checked + .theme-card {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
  }
  
  .theme-option input[type="radio"]:checked + .theme-card .theme-name {
    color: var(--primary-color);
    font-weight: 600;
  }
  
  .color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .color-option input[type="radio"] {
    display: none;
  }
  
  .color-swatch {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
  }
  
  .color-swatch.blue {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  }
  
  .color-swatch.purple {
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
  }
  
  .color-swatch.green {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
  }
  
  .color-swatch.orange {
    background: linear-gradient(135deg, #E67E22 0%, #D35400 100%);
  }
  
  .color-swatch.red {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
  }
  
  .color-option input[type="radio"]:checked + .color-swatch::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
  }
  
  .color-option input[type="radio"]:checked + .color-swatch::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
  }
  
  /* ダークモード */
  body.theme-dark {
    /* Discord風ダークテーマ */
    --primary-color: #7289DA;
    --primary-dark: #5F73BC;
    --primary-light: #414980;
    --primary-gradient: linear-gradient(135deg, #7289DA 0%, #5F73BC 100%);
    
    --text-color: #FFFFFF;
    --text-secondary: #B9BBBE;
    --text-light: #8E9297;
    --text-muted: #72767D;
    
    --bg-color: #36393F;
    --bg-light: #40444B;
    --bg-dark: #2F3136;
    
    --sidebar-bg: #2F3136;
    --card-bg: #40444B;
    
    --border-color: #202225;
    --border-light: #4F545C;
    
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 16px rgba(114, 137, 218, 0.2);
  
    /* Success, warning, danger, info colorの調整 */
    --success-light: rgba(59, 165, 92, 0.2);
    --warning-light: rgba(250, 166, 26, 0.2);
    --danger-light: rgba(237, 66, 69, 0.2);
    --info-light: rgba(62, 147, 236, 0.2);
  }
  
  /* ダークモード時のヘッダーとコントロール改善 */
  body.theme-dark .top-header {
    background-color: #202225 !important; /* Discord の暗めのバックグラウンド */
    border-bottom-color: #4F545C !important;
    backdrop-filter: none !important;
  }
  
  body.theme-dark .search-container {
    background-color: #202225;
  }
  
  body.theme-dark .search-input {
    color: #FFFFFF;
  }
  
  body.theme-dark .filter-select,
  body.theme-dark .form-select,
  body.theme-dark .form-input,
  body.theme-dark .form-textarea {
    background-color: #2F3136;
    border-color: #4F545C;
    color: #FFFFFF;
  }
  
  body.theme-dark .secondary-btn {
    background-color: #4F545C;
    border-color: #72767D;
    color: #FFFFFF;
  }
  
  body.theme-dark .secondary-btn:hover {
    background-color: #5D6269;
    border-color: #7289DA;
  }
  
  body.theme-dark .secondary-btn i {
    color: #FFFFFF;
  }
  
  body.theme-dark .sidebar-nav ul li.active a {
    background-color: #42464D; /* Discord アクティブ項目 */
    color: var(--primary-color);
  }
  
  body.theme-dark .sidebar-nav ul li a:hover {
    background-color: #42464D;
    color: var(--text-color);
  }
  
  body.theme-dark .settings-nav-item.active {
    background-color: #42464D;
  }
  
  body.theme-dark .qr-code-container {
    background-color: #2F3136;
    border-color: #4F545C;
  }
  
  body.theme-dark .toggle-slider {
    background-color: #72767D;
  }
  
  body.theme-dark .key-value {
    background-color: #2F3136;
    color: #FFFFFF;
  }
  
  body.theme-dark code {
    color: #FFFFFF;
  }
  
  /* レスポンシブ設定 */
  @media (max-width: 1024px) {
    .integration-cards,
    .security-card-container,
    .appearance-cards {
      grid-template-columns: 1fr;
    }
    
    .two-factor-setup {
      flex-direction: column;
      align-items: center;
    }
  }
  
  @media (max-width: 768px) {
    :root {
      --container-padding: 15px;
    }
    
    .settings-container {
      flex-direction: column;
    }
    
    .settings-sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid var(--border-color);
    }
    
    .settings-nav {
      display: flex;
      overflow-x: auto;
      padding: 10px;
    }
    
    .settings-nav-item {
      flex: 0 0 auto;
      margin: 0 5px;
      white-space: nowrap;
    }
    
    .profile-header {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    
    .profile-avatar-container {
      margin-right: 0;
      margin-bottom: 16px;
    }
    
    .form-row {
      flex-direction: column;
      gap: 0;
    }
    
    .apikey-header {
      flex-direction: column;
    }
    
    .apikey-info {
      margin-right: 0;
      margin-bottom: 16px;
    }
    
    .notification-channels {
      overflow-x: auto;
    }
    
    .notification-item {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .notification-type {
      margin-bottom: 10px;
    }
    
    .notification-toggles {
      width: 100%;
      justify-content: space-around;
    }
    
    .notification-toggles .toggle-switch {
      margin: 0;
    }
    
    .channel-labels {
      display: none;
    }
    
    .sidebar {
      transform: translateX(-100%);
      box-shadow: none;
    }
    
    .sidebar.open {
      transform: translateX(0);
      box-shadow: var(--shadow-lg);
    }
    
    .main-content {
      margin-left: 0;
    }
    
    .sidebar.collapsed + .main-content {
      margin-left: 0;
    }
    
    .top-header {
      padding: 0 15px;
    }
    
    .search-container {
      width: 200px;
    }
    
    .mobile-menu-overlay {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 990;
      opacity: 0;
      visibility: hidden;
      transition: var(--transition);
    }
    
    .mobile-menu-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    
    .mobile-toggle-btn {
      display: flex;
      margin-right: 15px;
    }
  }
  
  @media (max-width: 576px) {
    .settings-section {
      padding: 20px 15px;
    }
    
    .user-info {
      display: none;
    }
    
    .user-profile {
      margin-left: 5px;
    }
    
    .security-logs .log-meta {
      flex-direction: column;
      gap: 5px;
    }
    
    .login-history-item {
      flex-direction: column;
    }
    
    .login-status {
      margin-top: 10px;
    }
    
    .login-info {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .login-device {
      margin-right: 0;
      margin-bottom: 10px;
    }
    
    .login-time {
      margin-top: 10px;
    }
    
    .modal-content.large-modal {
      width: 95%;
    }
  }
  
  /* ローディングインジケーター */
  .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .loading-content {
    text-align: center;
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .loading-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
  }