        /* ==================== CSS Reset & Base Styles ==================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", "微軟正黑體", sans-serif;
            background: #f5f7fa;
            color: #495057;
            line-height: 1.6;
            min-height: 100vh;
        }

        /* ==================== Navigation Bar ==================== */
        .navbar {
            background: #2c3e50;
            height: 60px;
            padding: 0 24px;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .navbar-brand {
            font-size: 18px;
            font-weight: 600;
            color: white;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .navbar-user {
            display: flex;
            align-items: center;
            gap: 16px;
            color: white;
            font-size: 14px;
        }

        .navbar-user button {
            background: rgba(255,255,255,0.1);
            border: 1px solid rgba(255,255,255,0.2);
            color: white;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .navbar-user button:hover {
            background: rgba(255,255,255,0.2);
        }

        /* ==================== Main Menu Bar ==================== */
        .menu-bar {
            background: white;
            height: 50px;
            padding: 0 24px;
            position: fixed;
            top: 60px;
            left: 0;
            right: 0;
            z-index: 999;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        }

        .menu-item {
            padding: 8px 16px;
            color: #5a6c7d;
            font-size: 14px;
            font-weight: 500;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            background: none;
            border: none;
        }

        .menu-item:hover {
            background: #f0f2f5;
            color: #3498db;
        }

        .menu-item.active {
            background: #e8f4fd;
            color: #3498db;
            font-weight: 600;
        }

        /* ==================== Main Content Area ==================== */
        .main-content {
            padding-top: 110px;
            padding-left: 24px;
            padding-right: 24px;
            padding-bottom: 40px;
            max-width: 1400px;
            margin: 0 auto;
            min-height: calc(100vh - 110px);
        }

        .page-section {
            min-height: 600px;
        }

        .page-header {
            margin-bottom: 32px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
        }

        .page-title {
            font-size: 28px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
        }

        .page-subtitle {
            font-size: 14px;
            color: #7f8c8d;
        }

        /* ==================== Section Container ==================== */
        .section {
            background: white;
            border-radius: 8px;
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .section-title {
            font-size: 18px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid #ecf0f1;
        }

        /* ==================== Competition Cards ==================== */
        .competition-card {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 16px;
            transition: all 0.3s;
        }

        .competition-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }

        .competition-header {
            font-size: 18px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .competition-info {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 16px;
            font-size: 14px;
            color: #6c757d;
        }

        .competition-info-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .competition-actions {
            display: flex;
            gap: 12px;
        }

        /* ==================== Buttons ==================== */
        .btn {
            padding: 10px 20px;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s;
        }

        .btn-primary {
            background: #3498db;
            color: white;
        }

        .btn-primary:hover {
            background: #2980b9;
            transform: scale(1.05);
        }

        .btn-primary:disabled {
            background: #95a5a6;
            cursor: not-allowed;
            transform: none;
        }

        .btn-secondary {
            background: white;
            color: #3498db;
            border: 1px solid #3498db;
        }

        .btn-secondary:hover {
            background: #e8f4fd;
        }

        .btn-danger {
            background: #e74c3c;
            color: white;
        }

        .btn-danger:hover {
            background: #c0392b;
        }

        /* ==================== Progress Indicator (Step Wizard) ==================== */
        .step-indicator {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 32px;
            padding: 0 20px;
        }

        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
            position: relative;
        }

        .step:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 20px;
            left: 60%;
            right: -40%;
            height: 2px;
            background: #bdc3c7;
        }

        .step.completed:not(:last-child)::after,
        .step.active:not(:last-child)::after {
            background: #3498db;
        }

        .step-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: white;
            border: 2px solid #bdc3c7;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: #bdc3c7;
            margin-bottom: 8px;
            z-index: 1;
        }

        .step.completed .step-circle,
        .step.active .step-circle {
            border-color: #3498db;
            background: #3498db;
            color: white;
        }

        .step-label {
            font-size: 13px;
            color: #6c757d;
            text-align: center;
        }

        .step.active .step-label {
            color: #3498db;
            font-weight: 600;
        }

        /* ==================== Form Styles ==================== */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            color: #495057;
            font-weight: 500;
        }

        .form-label .required {
            color: #e74c3c;
        }

        .form-control {
            width: 100%;
            padding: 10px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            font-size: 14px;
            transition: all 0.3s;
        }

        .form-control:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
        }

        .form-control.error {
            border-color: #e74c3c;
            box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
        }

        .form-error {
            color: #e74c3c;
            font-size: 12px;
            margin-top: 4px;
        }

        .error-message {
            color: #e74c3c;
            font-size: 13px;
            margin-top: 6px;
            padding: 6px 10px;
            background: #fef5f5;
            border-left: 3px solid #e74c3c;
            border-radius: 3px;
        }

        .form-help {
            color: #6c757d;
            font-size: 12px;
            margin-top: 4px;
        }

        .char-counter {
            text-align: right;
            font-size: 12px;
            color: #6c757d;
            margin-top: 4px;
        }

        .char-counter.over-limit {
            color: #e74c3c;
        }

        textarea.form-control {
            min-height: 150px;
            resize: vertical;
        }

        /* ==================== Radio Group ==================== */
        .radio-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .radio-option {
            padding: 16px;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            background: #f8f9fa;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .radio-option:hover {
            border-color: #3498db;
        }

        .radio-option.selected {
            background: #e8f4fd;
            border: 2px solid #3498db;
        }

        .radio-option input[type="radio"] {
            margin-top: 3px;
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        .radio-content {
            flex: 1;
        }

        .radio-title {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 4px;
        }

        .radio-description {
            font-size: 13px;
            color: #6c757d;
        }

        /* ==================== Team Member Management ==================== */
        .member-card {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 16px;
            position: relative;
        }

        .member-header {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .remove-member {
            background: none;
            border: none;
            color: #e74c3c;
            font-size: 20px;
            cursor: pointer;
            padding: 4px 8px;
        }

        .remove-member:hover {
            background: rgba(231,76,60,0.1);
            border-radius: 4px;
        }

        .add-member-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            width: 100%;
            padding: 12px;
            background: white;
            border: 2px dashed #3498db;
            color: #3498db;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s;
        }

        .add-member-btn:hover {
            background: #e8f4fd;
        }

        .member-count {
            text-align: center;
            color: #6c757d;
            font-size: 14px;
            margin-top: 12px;
        }

        /* ==================== Summary Box ==================== */
        .summary-box {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 24px;
            margin-bottom: 24px;
        }

        .summary-item {
            display: flex;
            padding: 8px 0;
            border-bottom: 1px solid #e9ecef;
        }

        .summary-item:last-child {
            border-bottom: none;
        }

        .summary-label {
            font-weight: 600;
            color: #495057;
            min-width: 120px;
        }

        .summary-value {
            color: #6c757d;
        }

        /* ==================== Checkbox Agreement ==================== */
        .agreement-box {
            background: #fff9e6;
            border: 1px solid #ffc107;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 24px;
        }

        .agreement-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .agreement-checkbox input[type="checkbox"] {
            width: 20px;
            height: 20px;
            margin-top: 2px;
            cursor: pointer;
        }

        .agreement-links {
            display: flex;
            gap: 16px;
            margin-top: 8px;
            margin-left: 32px;
        }

        .agreement-links a {
            color: #3498db;
            text-decoration: underline;
            font-size: 13px;
        }

        /* ==================== Success Page ==================== */
        .success-page {
            text-align: center;
            padding: 40px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 12px;
            color: white;
        }

        .success-icon {
            font-size: 64px;
            margin-bottom: 24px;
        }

        .success-title {
            font-size: 32px;
            font-weight: 600;
            margin-bottom: 32px;
        }

        .team-code-box {
            background: white;
            color: #2c3e50;
            padding: 40px;
            border-radius: 12px;
            margin: 32px auto;
            max-width: 400px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        }

        .team-code-label {
            font-size: 18px;
            margin-bottom: 16px;
            color: #6c757d;
        }

        .team-code {
            font-size: 48px;
            font-weight: 700;
            letter-spacing: 8px;
            color: #3498db;
            margin-bottom: 16px;
        }

        .team-code-notice {
            font-size: 14px;
            color: #856404;
            margin-bottom: 24px;
        }

        .success-actions {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }

        /* ==================== Login Box ==================== */
        .login-box {
            max-width: 400px;
            margin: 0 auto;
            background: white;
            padding: 32px;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            text-align: center;
        }

        .login-title {
            font-size: 20px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 24px;
        }

        .login-box .form-control {
            text-align: center;
            font-size: 24px;
            letter-spacing: 4px;
            text-transform: uppercase;
            height: 48px;
        }

        /* ==================== Work Management ==================== */
        .info-panel {
            background: #f8f9fa;
            border-left: 4px solid #3498db;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 24px;
        }

        .info-row {
            display: flex;
            padding: 6px 0;
        }

        .info-label {
            font-weight: 600;
            color: #495057;
            min-width: 100px;
        }

        .info-value {
            color: #6c757d;
        }

        .time-panel {
            background: #fff3cd;
            border: 1px solid #ffc107;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 24px;
        }

        .countdown {
            font-size: 18px;
            font-weight: 600;
            color: #856404;
            margin: 8px 0;
        }

        .countdown.urgent {
            color: #e74c3c;
        }

        .progress-bar-container {
            width: 100%;
            height: 24px;
            background: #e9ecef;
            border-radius: 12px;
            overflow: hidden;
            margin-top: 12px;
        }

        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #27ae60, #2ecc71);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 11px;
            font-weight: 600;
            transition: all 0.3s;
        }

        .progress-bar-fill.warning {
            background: linear-gradient(90deg, #f39c12, #f1c40f);
        }

        .progress-bar-fill.danger {
            background: linear-gradient(90deg, #e74c3c, #c0392b);
        }

        /* ==================== Table Styles ==================== */
        table {
            width: 100%;
            border-collapse: collapse;
        }

        thead {
            background: #f8f9fa;
        }

        th {
            padding: 12px;
            text-align: left;
            font-weight: 600;
            color: #5a6c7d;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #e9ecef;
        }

        td {
            padding: 16px 12px;
            border-bottom: 1px solid #f1f3f5;
            font-size: 14px;
            color: #495057;
        }

        tr:hover {
            background: #f8f9fa;
        }

        .version-current {
            background: #d4edda !important;
        }

        .version-icon {
            font-size: 20px;
            margin-right: 4px;
        }

        .table-actions {
            display: flex;
            gap: 8px;
        }

        .table-actions button {
            padding: 6px 12px;
            font-size: 12px;
        }

        /* ==================== Upload Area ==================== */
        .upload-area {
            background: #f8f9fa;
            border: 2px dashed #ced4da;
            border-radius: 8px;
            padding: 60px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 20px;
        }

        .upload-area:hover {
            border-color: #3498db;
            background: #e8f4fd;
        }

        .upload-area.dragover {
            border-color: #28a745;
            background: #d4edda;
        }

        .upload-icon {
            font-size: 48px;
            color: #6c757d;
            margin-bottom: 16px;
        }

        .upload-text {
            font-size: 16px;
            color: #495057;
            margin-bottom: 8px;
        }

        .upload-hint {
            font-size: 13px;
            color: #6c757d;
        }

        .upload-progress {
            margin-top: 20px;
        }

        .upload-progress-bar {
            width: 100%;
            height: 32px;
            background: #e9ecef;
            border-radius: 16px;
            overflow: hidden;
            margin-bottom: 12px;
        }

        .upload-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #3498db, #2980b9);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            transition: width 0.3s;
        }

        .upload-stats {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            color: #6c757d;
        }

        /* ==================== Results Display ==================== */
        .results-pending {
            text-align: center;
            padding: 40px;
            background: #fff3cd;
            border: 1px solid #ffc107;
            border-radius: 8px;
        }

        .results-published {
            max-width: 800px;
            margin: 0 auto;
        }

        .score-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 24px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .score-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 24px;
            text-align: center;
        }

        .score-body {
            padding: 40px;
            text-align: center;
        }

        .score-number {
            font-size: 72px;
            font-weight: 700;
            color: #3498db;
            margin-bottom: 16px;
        }

        .score-rank {
            font-size: 18px;
            color: #495057;
            line-height: 1.8;
        }

        .award-card {
            background: #fff9e6;
            border: 2px solid #ffd700;
            border-radius: 8px;
            padding: 24px;
            text-align: center;
            box-shadow: 0 4px 12px rgba(255,215,0,0.2);
        }

        .award-icon {
            font-size: 48px;
            margin-bottom: 16px;
        }

        .award-title {
            font-size: 24px;
            font-weight: 600;
            color: #856404;
        }

        /* ==================== Modal ==================== */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }

        .modal.show {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 8px;
            width: 90%;
            max-width: 700px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

        .modal-header {
            padding: 24px;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 20px;
            color: #2c3e50;
            font-weight: 600;
            margin: 0;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #6c757d;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
        }

        .modal-body {
            padding: 24px;
        }

        .modal-footer {
            padding: 16px 24px;
            border-top: 1px solid #e9ecef;
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }

        /* ==================== Score Details ==================== */
        .score-item {
            margin-bottom: 24px;
        }

        .score-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .score-item-name {
            font-size: 16px;
            font-weight: 600;
        }

        .score-item-value {
            font-size: 24px;
            font-weight: 700;
            color: #3498db;
        }

        .score-item-bar {
            width: 100%;
            height: 20px;
            background: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
        }

        .score-item-fill {
            height: 100%;
            background: linear-gradient(90deg, #3498db, #2980b9);
            transition: width 0.5s;
        }

        .total-score-box {
            background: #e8f4fd;
            padding: 16px;
            border-radius: 8px;
            margin: 24px 0;
            text-align: center;
        }

        .total-score-label {
            font-size: 16px;
            color: #495057;
            margin-bottom: 8px;
        }

        .total-score-value {
            font-size: 32px;
            font-weight: 700;
            color: #2980b9;
        }

        .comment-box {
            background: #f8f9fa;
            padding: 16px;
            border-radius: 8px;
            font-size: 14px;
            line-height: 1.8;
            color: #495057;
        }

        .comment-title {
            font-weight: 600;
            margin-bottom: 12px;
            color: #2c3e50;
        }

        /* ==================== Form Navigation ==================== */
        .form-navigation {
            display: flex;
            justify-content: space-between;
            margin-top: 32px;
            padding-top: 24px;
            border-top: 1px solid #e9ecef;
        }

        /* ==================== Responsive Design ==================== */
        @media (max-width: 768px) {
            .main-content {
                padding-left: 16px;
                padding-right: 16px;
            }

            .menu-bar {
                overflow-x: auto;
            }

            .step-indicator {
                padding: 0;
            }

            .step-label {
                font-size: 11px;
            }

            .step-circle {
                width: 32px;
                height: 32px;
                font-size: 14px;
            }

            .competition-actions {
                flex-direction: column;
            }

            .btn {
                width: 100%;
            }

            .success-actions {
                flex-direction: column;
            }

            .team-code {
                font-size: 36px;
                letter-spacing: 4px;
            }

            .score-number {
                font-size: 48px;
            }

            .modal-content {
                width: 95%;
                max-height: 95vh;
            }

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

        /* ==================== Badge Styles ==================== */
        .badge {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }

        .badge-scratch {
            background: #ff6900;
            color: white;
        }

        .badge-appinventor {
            background: #4caf50;
            color: white;
        }

        .badge-success {
            background: #d4edda;
            color: #155724;
        }

        .badge-warning {
            background: #fff3cd;
            color: #856404;
        }

        .badge-danger {
            background: #f8d7da;
            color: #721c24;
        }

        /* ==================== Empty State ==================== */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #6c757d;
        }

        .empty-icon {
            font-size: 64px;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .empty-text {
            font-size: 16px;
        }

        /* ==================== Utility Classes ==================== */
        .text-center {
            text-align: center;
        }

        .text-muted {
            color: #6c757d;
        }

        .mb-0 { margin-bottom: 0; }
        .mb-1 { margin-bottom: 8px; }
        .mb-2 { margin-bottom: 16px; }
        .mb-3 { margin-bottom: 24px; }
        .mb-4 { margin-bottom: 32px; }

        .mt-0 { margin-top: 0; }
        .mt-1 { margin-top: 8px; }
        .mt-2 { margin-top: 16px; }
        .mt-3 { margin-top: 24px; }
        .mt-4 { margin-top: 32px; }

        .d-none { display: none; }
        .d-block { display: block; }
        .d-flex { display: flex; }

        .hidden {
            display: none !important;
        }

        /* ==================== Competition Detail Modal ==================== */
        .detail-section {
            margin-bottom: 24px;
        }

        .detail-section:last-child {
            margin-bottom: 0;
        }

        .detail-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .detail-title {
            font-size: 22px;
            color: #2c3e50;
            font-weight: 600;
            margin: 0;
        }

        .detail-status {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            margin-top: 8px;
        }

        .detail-status.open {
            background: #d4edda;
            color: #155724;
        }

        .detail-status.closed {
            background: #f8d7da;
            color: #721c24;
        }

        .detail-section-title {
            font-size: 16px;
            color: #2c3e50;
            font-weight: 600;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .detail-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
        }

        .detail-item {
            background: #f8f9fa;
            padding: 16px;
            border-radius: 6px;
        }

        .detail-label {
            font-size: 13px;
            color: #6c757d;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .detail-value {
            font-size: 15px;
            color: #2c3e50;
            font-weight: 500;
        }

        .detail-groups {
            display: grid;
            gap: 12px;
        }

        .detail-group-item {
            background: #f8f9fa;
            padding: 16px;
            border-radius: 6px;
            border-left: 4px solid #3498db;
        }

        .detail-group-name {
            font-size: 15px;
            color: #2c3e50;
            font-weight: 600;
            margin-bottom: 6px;
        }

        .detail-group-grades {
            font-size: 14px;
            color: #6c757d;
        }

        .detail-scoring {
            display: grid;
            gap: 12px;
        }

        .detail-scoring-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            background: #f8f9fa;
            border-radius: 6px;
        }

        .detail-scoring-name {
            font-size: 14px;
            color: #2c3e50;
            font-weight: 500;
        }

        .detail-scoring-weight {
            font-size: 14px;
            color: #3498db;
            font-weight: 600;
        }

        .detail-organizer {
            background: #f8f9fa;
            padding: 16px;
            border-radius: 6px;
        }

        .detail-organizer-item {
            display: flex;
            gap: 12px;
            margin-bottom: 12px;
        }

        .detail-organizer-item:last-child {
            margin-bottom: 0;
        }

        .detail-organizer-label {
            font-size: 14px;
            color: #6c757d;
            min-width: 80px;
        }

        .detail-organizer-value {
            font-size: 14px;
            color: #2c3e50;
            font-weight: 500;
        }

        /* 手機版樣式調整 */
        @media (max-width: 768px) {
            #competitionDetailModal .modal-content {
                width: 100%;
                max-width: 100%;
                max-height: 100vh;
                border-radius: 0;
            }

            .detail-grid {
                grid-template-columns: 1fr;
            }

            .detail-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }
        }

/* ==================== 參賽管理頁面樣式 ==================== */
.competition-entries-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.entry-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.entry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border-color: #2196f3;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.entry-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
    flex: 1;
    line-height: 1.4;
}

.entry-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #6c757d;
}

.entry-info > div {
    display: flex;
    align-items: center;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    color: #2c3e50;
}

.empty-state p {
    margin: 0 0 24px 0;
    color: #6c757d;
    font-size: 14px;
}

/* ==================== Tab 切換樣式 ==================== */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.detail-header h2 {
    margin: 0;
    font-size: 24px;
    color: #2c3e50;
}

.tab-menu {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-item {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.tab-item:hover {
    color: #2196f3;
    background: rgba(33, 150, 243, 0.05);
}

.tab-item.active {
    color: #2196f3;
    border-bottom-color: #2196f3;
    font-weight: 600;
}

.tab-content {
    min-height: 400px;
}

/* ==================== 檔案列表樣式 ==================== */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #2c3e50;
}

.file-item:hover {
    background: #e9ecef;
}

.btn-download {
    margin-left: auto;
    padding: 4px 8px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.btn-download:hover {
    background: #1976d2;
}

.file-preview {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    min-height: 50px;
}

.file-preview-list {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==================== 多檔案上傳樣式 ==================== */
.upload-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.upload-section:last-of-type {
    border-bottom: none;
}

.upload-section .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.file-hint {
    font-size: 12px;
    font-weight: normal;
    color: #6c757d;
    margin-left: auto;
}

.upload-section input[type="file"] {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-section input[type="file"]:hover {
    border-color: #2196f3;
    background: rgba(33, 150, 243, 0.05);
}

.upload-section input[type="file"]:focus {
    outline: none;
    border-color: #2196f3;
    background: white;
}

/* ==================== 使用參賽代碼頁面樣式 ==================== */
.code-input-box {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-align: center;
}

.code-input-box h2 {
    margin: 0 0 24px 0;
    font-size: 20px;
    color: #2c3e50;
}

.code-input-box .form-group {
    margin-bottom: 20px;
}

.code-input-box .form-control {
    text-align: center;
    font-size: 24px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.alert-info {
    padding: 16px;
    margin-top: 20px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
    color: #1565c0;
    font-size: 14px;
}

/* ==================== Badge 樣式補充 ==================== */
.badge-info {
    background: #2196f3;
    color: white;
}

.badge-warning {
    background: #ff9800;
    color: white;
}

.badge-success {
    background: #4caf50;
    color: white;
}

.badge-secondary {
    background: #9e9e9e;
    color: white;
}

/* ==================== 響應式設計 ==================== */
@media (max-width: 768px) {
    .competition-entries-list {
        grid-template-columns: 1fr;
    }

    .tab-menu {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .tab-item {
        padding: 10px 16px;
        font-size: 14px;
    }

    .file-item {
        font-size: 12px;
        padding: 6px 10px;
    }

    .code-input-box {
        margin: 20px;
        padding: 24px;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
