/* hokkaクイズラリー - 管理画面専用スタイル */
/* 抽出日: 2025-08-18 */
/* 元ファイル: templates/admin.html (lines 1046-1513) */

        .priority-section {
            margin-bottom: 3rem;
        }

        .detailed-section {
            margin-top: 2rem;
        }

        .stats-card {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            padding: 1.5rem;
            border-radius: var(--border-radius);
            text-align: center;
        }

        .stats-number {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .stats-label {
            font-size: var(--font-size-sm);
            opacity: 0.9;
        }

        .quick-edit-card {
            background: var(--light-gray);
            padding: 1.5rem;
            border-radius: var(--border-radius);
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }

        .quick-edit-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow);
        }

        .question-preview p {
            color: var(--gray);
            margin: 0.5rem 0;
        }

        .quick-actions {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .export-card {
            background: var(--white);
            padding: 1.5rem;
            border-radius: var(--border-radius);
            border: 2px solid var(--light-gray);
            text-align: center;
            transition: all 0.3s ease;
        }

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

        .export-card h4 {
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        .export-card p {
            color: var(--gray);
            margin-bottom: 1rem;
            font-size: var(--font-size-sm);
        }

        .question-item {
            background: var(--white);
            border: 1px solid var(--light-gray);
            border-radius: var(--border-radius);
            margin-bottom: 1rem;
            overflow: hidden;
        }

        .question-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            background: var(--light-gray);
            border-bottom: 1px solid var(--border-color);
        }

        .question-details {
            padding: 1rem;
        }

        .question-details p {
            margin-bottom: 0.5rem;
            font-size: var(--font-size-sm);
        }

        .admin-section {
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: var(--light-gray);
            border-radius: var(--border-radius);
        }

        .stat-item {
            background: var(--white);
            padding: 1rem;
            border-radius: var(--border-radius);
            border: 1px solid var(--light-gray);
        }

        .stat-item h4 {
            color: var(--primary);
            margin-bottom: 0.5rem;
        }

        .alert {
            padding: 1rem;
            border-radius: var(--border-radius);
            margin-bottom: 1rem;
        }

        .alert-error {
            background: rgba(220, 20, 60, 0.1);
            color: var(--error);
            border: 1px solid var(--error);
        }

        .alert-success {
            background: rgba(34, 139, 34, 0.1);
            color: var(--success);
            border: 1px solid var(--success);
        }

        @media (max-width: 768px) {
            .quick-actions {
                flex-direction: column;
            }
            
            .question-header {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
        }
        
        /* 参加者一覧用スタイル */
        .participants-table-container {
            width: 100%;
            overflow-x: auto;
        }
        
        .participants-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
            table-layout: fixed; /* 列幅を固定制御 */
        }
        
        .participants-table th,
        .participants-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--light-gray);
        }
        
        /* 参加者列（1列目）の幅制限と省略表示 */
        .participants-table th:first-child,
        .participants-table td:first-child {
            width: 150px;
            max-width: 150px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        /* 参加者セル内の改行対応 */
        .participants-table td:first-child div {
            overflow: hidden;
        }
        
        .participants-table td:first-child strong,
        .participants-table td:first-child small {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        /* その他の列の幅設定 - 最適化 */
        .participants-table th:nth-child(2) { width: 80px; } /* 年齢層 */
        .participants-table th:nth-child(3) { width: 90px; } /* クイズ進捗 */
        .participants-table th:nth-child(4) { width: 70px; }  /* スコア */
        .participants-table th:nth-child(5) { width: 80px; }  /* アンケート */
        .participants-table th:nth-child(6) { width: 120px; } /* 登録日時 */
        
        /* 操作列の幅を制限 */
        .participants-table th:last-child,
        .participants-table td:last-child {
            width: 60px;
            min-width: 60px;
            max-width: 60px;
            text-align: center;
            padding: 0.5rem;
        }
        
        /* 操作列内のボタンサイズ最適化 */
        .participants-table td:last-child .btn {
            width: 36px;
            height: 36px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
        }
        
        /* スマホ対応の操作列最適化 */
        @media (max-width: 768px) {
            /* 参加者列の幅をさらに制限 */
            .participants-table th:first-child,
            .participants-table td:first-child {
                width: 100px;
                max-width: 100px;
            }
            
            /* その他の列の幅調整 - モバイル最適化 */
            .participants-table th:nth-child(2) { width: 45px; }  /* 年齢層 */
            .participants-table th:nth-child(3) { width: 50px; }  /* クイズ進捗 */
            .participants-table th:nth-child(4) { width: 45px; }  /* スコア */
            .participants-table th:nth-child(5) { width: 45px; }  /* アンケート */
            
            /* 登録日時列を非表示 */
            .participants-table th:nth-child(6), /* 登録日時列 */
            .participants-table td:nth-child(6) {
                display: none;
            }
            
            /* ヘッダーテキストの短縮 */
            .participants-table th:nth-child(2) {
                font-size: 0;
            }
            .participants-table th:nth-child(2)::after {
                content: "年齢";
                font-size: var(--font-size-sm);
                font-weight: 600;
            }
            
            /* クイズ進捗列の2文字表示 */
            .participants-table th:nth-child(3) {
                font-size: 0;
            }
            .participants-table th:nth-child(3)::after {
                content: "進捗";
                font-size: var(--font-size-sm);
                font-weight: 600;
            }
            
            /* アンケート列の2文字表示 */
            .participants-table th:nth-child(5) {
                font-size: 0;
            }
            .participants-table th:nth-child(5)::after {
                content: "回答";
                font-size: var(--font-size-sm);
                font-weight: 600;
            }
            
            .participants-table th:last-child,
            .participants-table td:last-child {
                width: 45px;
                min-width: 45px;
                max-width: 45px;
                padding: 0.25rem;
            }
            
            .participants-table td:last-child .btn {
                width: 32px;
                height: 32px;
                font-size: 0.9rem;
            }
            
            /* セル内のテキストサイズ調整 */
            .participants-table td {
                font-size: var(--font-size-sm);
                padding: 0.5rem;
            }
        }
        
        @media (max-width: 400px) {
            /* 参加者列のさらなる制限 */
            .participants-table th:first-child,
            .participants-table td:first-child {
                width: 80px;
                max-width: 80px;
            }
            
            /* 小画面でのさらなる列幅調整 - 超小画面最適化 */
            .participants-table th:nth-child(2) { width: 40px; }
            .participants-table th:nth-child(3) { width: 45px; }
            .participants-table th:nth-child(4) { width: 40px; }
            .participants-table th:nth-child(5) { width: 40px; }
            
            .participants-table th:last-child,
            .participants-table td:last-child {
                width: 40px;
                min-width: 40px;
                max-width: 40px;
            }
            
            .participants-table td:last-child .btn {
                width: 28px;
                height: 28px;
                font-size: 0.8rem;
            }
        }
        
        .participants-table th {
            background: var(--light-gray);
            font-weight: 600;
            color: var(--dark);
        }
        
        .participants-table tbody tr:hover {
            background: rgba(210, 105, 30, 0.05);
        }
        
        .status-badge {
            padding: 0.25rem 0.5rem;
            border-radius: 12px;
            font-size: var(--font-size-sm);
            font-weight: 600;
            display: inline-block;
            min-width: 2em;
            text-align: center;
        }
        
        /* スマホでの最適化 */
        @media (max-width: 768px) {
            .status-badge {
                padding: 0.2rem 0.3rem;
                font-size: 0.9rem;
                min-width: auto;
            }
        }
        
        .status-completed {
            background: rgba(34, 139, 34, 0.1);
            color: var(--success);
            border: 1px solid var(--success);
        }
        
        .status-progress {
            background: rgba(255, 193, 7, 0.1);
            color: var(--warning);
            border: 1px solid var(--warning);
        }
        
        .status-not-started {
            background: rgba(128, 128, 128, 0.1);
            color: var(--gray);
            border: 1px solid var(--gray);
        }
        
        .summary-stat {
            text-align: center;
        }
        
        .summary-number {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 0.25rem;
        }
        
        .summary-label {
            font-size: var(--font-size-sm);
            color: var(--gray);
        }

        /* ユーザー管理用スタイル */
        .admin-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }

        .admin-table th,
        .admin-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }

        .admin-table th {
            background: var(--light-gray);
            font-weight: 600;
            color: var(--primary);
        }

        .admin-table tbody tr:hover {
            background: rgba(var(--primary-rgb), 0.05);
        }

        .user-badge {
            display: inline-block;
            padding: 0.25rem 0.5rem;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .user-badge.admin {
            background: var(--accent);
            color: white;
        }

        .user-badge.user {
            background: var(--light-gray);
            color: var(--gray);
        }

        .progress-bar {
            width: 100%;
            height: 6px;
            background: var(--light-gray);
            border-radius: 3px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: var(--success);
            transition: width 0.3s ease;
        }

        .table-container {
            overflow-x: auto;
        }

        .user-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
        }

        .stat-card {
            background: var(--light-gray);
            padding: 1rem;
            border-radius: var(--border-radius);
            text-align: center;
        }

        .stat-number {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
        }

        .stat-label {
            font-size: 0.85rem;
            color: var(--gray);
        }