        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .login-screen {
            background: white;
            border-radius: 12px;
            padding: 40px;
            max-width: 500px;
            margin: 100px auto;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }

        .login-screen h1 {
            color: #333;
            margin-bottom: 30px;
            text-align: center;
        }

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

        label {
            display: block;
            margin-bottom: 5px;
            color: #555;
            font-weight: 500;
        }

        input[type="text"], input[type="password"], select {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-size: 16px;
            transition: border-color 0.3s;
        }

        input[type="text"]:focus, input[type="password"]:focus, select:focus {
            outline: none;
            border-color: #667eea;
        }

        .role-tags {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        .tag-option {
            flex: 1;
            padding: 10px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s;
        }

        .tag-option:hover {
            border-color: #667eea;
        }

        .tag-option.selected {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        button {
            width: 100%;
            padding: 14px;
            background: #667eea;
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
        }

        button:hover {
            background: #5568d3;
        }

        button:disabled {
            background: #ccc;
            cursor: not-allowed;
        }

        .create-room-link, .superadmin-link {
            text-align: center;
            margin-top: 15px;
            color: #667eea;
            cursor: pointer;
            text-decoration: underline;
        }

        .room-list {
            max-height: 200px;
            overflow-y: auto;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            margin-top: 10px;
        }

        .room-item {
            padding: 12px;
            border-bottom: 1px solid #e0e0e0;
            cursor: pointer;
            transition: background 0.3s;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .room-item:hover {
            background: #f8f9fa;
        }

        .room-item.selected {
            background: #667eea;
            color: white;
        }

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

        .room-info {
            font-size: 12px;
            color: #666;
            margin-top: 3px;
        }

        .room-item.selected .room-info {
            color: rgba(255,255,255,0.8);
        }

        .delete-room-btn {
            padding: 4px 12px;
            font-size: 12px;
            width: auto;
            background: #dc3545;
        }

        .delete-room-btn:hover {
            background: #c82333;
        }

        .main-app {
            display: none;
        }

        .header {
            background: white;
            border-radius: 12px;
            padding: 20px 30px;
            margin-bottom: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-left h1 {
            color: #333;
            font-size: 24px;
        }

        .room-name {
            color: #667eea;
            font-size: 14px;
            margin-top: 5px;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .settings-icon {
            width: 32px;
            height: 32px;
            background: #6c757d;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.3s;
            font-size: 18px;
            color: white;
        }

        .settings-icon:hover {
            background: #5a6268;
        }

        .user-badge {
            padding: 8px 16px;
            background: #667eea;
            color: white;
            border-radius: 20px;
            font-weight: 500;
        }

        .user-badge.superadmin {
            background: #dc3545;
        }

        .logout-btn {
            padding: 8px 20px;
            width: auto;
            background: #dc3545;
        }

        .logout-btn:hover {
            background: #c82333;
        }

        .content {
            display: grid;
            grid-template-columns: 350px 1fr;
            gap: 20px;
        }

        .sidebar {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            max-height: calc(100vh - 160px);
            overflow-y: auto;
        }

        .sidebar h2 {
            color: #333;
            margin-bottom: 20px;
            font-size: 20px;
        }

        .bli-list {
            list-style: none;
        }

        .bli-item {
            padding: 15px;
            margin-bottom: 10px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #667eea;
            cursor: pointer;
            transition: all 0.3s;
        }

        .bli-item.draggable {
            cursor: move;
        }

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

        .bli-item.dragging {
            opacity: 0.5;
        }

        .bli-item.drag-over {
            border-top: 3px solid #667eea;
        }

        .bli-item.active {
            background: #667eea;
            color: white;
        }

        .bli-controls {
            display: flex;
            gap: 5px;
            margin-top: 10px;
        }

        .bli-controls button {
            padding: 6px 12px;
            font-size: 12px;
        }

        .skip-btn {
            background: #ffc107;
        }

        .skip-btn:hover {
            background: #e0a800;
        }

        .delete-btn {
            background: #dc3545;
        }

        .delete-btn:hover {
            background: #c82333;
        }

        .add-bli {
            margin-bottom: 20px;
        }

        .add-bli input {
            margin-bottom: 10px;
        }

        .main-content {
            background: white;
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .current-bli {
            text-align: center;
            margin-bottom: 40px;
        }

        .current-bli h2 {
            color: #667eea;
            font-size: 28px;
            margin-bottom: 10px;
        }

        .current-bli-description {
            color: #666;
            font-size: 18px;
        }

        .voting-status {
            text-align: center;
            color: #666;
            margin-bottom: 20px;
            font-size: 14px;
        }

        .voting-cards {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 40px;
        }

        .card {
            width: 80px;
            height: 120px;
            background: white;
            border: 3px solid #667eea;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            font-weight: bold;
            color: #667eea;
            cursor: pointer;
            transition: all 0.3s;
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
        }

        .card.selected {
            background: #667eea;
            color: white;
            transform: translateY(-10px);
        }

        .participants {
            margin-top: 40px;
        }

        .participants h3 {
            color: #333;
            margin-bottom: 20px;
            font-size: 20px;
        }

        .participant-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }

        .participant-card {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #6c757d;
        }

        .participant-card.voted {
            border-left-color: #28a745;
        }

        .participant-card.observer {
            opacity: 0.6;
            border-left-color: #6c757d;
        }

        .participant-name {
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
        }

        .participant-role {
            font-size: 12px;
            color: #666;
            margin-bottom: 5px;
        }

        .participant-vote {
            font-size: 24px;
            font-weight: bold;
            color: #667eea;
            margin-top: 10px;
        }

        .participant-vote.hidden {
            color: #28a745;
        }

        .admin-controls {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .admin-controls button {
            width: auto;
            padding: 12px 24px;
        }

        .reveal-btn {
            background: #28a745;
        }

        .reveal-btn:hover:not(:disabled) {
            background: #218838;
        }

        .next-btn {
            background: #007bff;
        }

        .next-btn:hover:not(:disabled) {
            background: #0056b3;
        }

        .config-btn {
            background: #6c757d;
        }

        .config-btn:hover {
            background: #5a6268;
        }

        .results {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-top: 20px;
        }

        .results h4 {
            color: #333;
            margin-bottom: 15px;
        }

        .result-stats {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .stat {
            text-align: center;
        }

        .stat-value {
            font-size: 32px;
            font-weight: bold;
            color: #667eea;
        }

        .stat-label {
            color: #666;
            font-size: 14px;
        }

        .observer-controls {
            margin-top: 10px;
        }

        .observer-controls button {
            width: auto;
            padding: 4px 8px;
            font-size: 11px;
        }

        .no-bli {
            text-align: center;
            padding: 60px 20px;
            color: #999;
        }

        .no-bli h3 {
            font-size: 24px;
            margin-bottom: 10px;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 12px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }

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

        .modal-header h2 {
            color: #333;
        }

        .close-btn {
            background: none;
            color: #999;
            font-size: 24px;
            width: auto;
            padding: 0;
            cursor: pointer;
        }

        .card-config {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
        }

        .voting-history {
            margin-top: 20px;
        }

        .history-item {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 10px;
            border-left: 4px solid #28a745;
        }

        .history-title {
            font-weight: 600;
            color: #333;
            margin-bottom: 10px;
        }

        .history-votes {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            font-size: 14px;
            color: #666;
        }

        .history-vote {
            background: white;
            padding: 5px 10px;
            border-radius: 4px;
        }

        .warning-text {
            color: #dc3545;
            font-size: 14px;
            margin-top: 5px;
        }

        .error-message {
            background: #f8d7da;
            border: 1px solid #f5c6cb;
            color: #721c24;
            padding: 12px;
            border-radius: 6px;
            margin-bottom: 15px;
        }

        .success-message {
            background: #d4edda;
            border: 1px solid #c3e6cb;
            color: #155724;
            padding: 12px;
            border-radius: 6px;
            margin-bottom: 15px;
        }

        .loading {
            text-align: center;
            padding: 20px;
            color: #666;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 15px 0;
        }

        .checkbox-group input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        .checkbox-group label {
            margin: 0;
            cursor: pointer;
        }

        .settings-section {
            border-top: 1px solid #e0e0e0;
            padding-top: 20px;
            margin-top: 20px;
        }

        .settings-section h3 {
            color: #333;
            margin-bottom: 15px;
            font-size: 18px;
        }

        .tag-separator {
            border-top: 2px solid #667eea;
            margin: 20px 0 10px 0;
            padding-top: 10px;
        }

        .tag-label {
            font-weight: bold;
            color: #667eea;
            font-size: 16px;
            margin-bottom: 10px;
        }

/* Release Notes Styles */
.release-notes-link {
    color: #000 !important;
    text-decoration: underline;
    cursor: pointer;
}

.release-notes-link:hover {
    opacity: 0.8;
}

.release-notes-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.release-version {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.release-version.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left-color: #fff;
}

.release-version.current h3 {
    color: white;
}

.release-version h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
}

.release-version ul {
    margin-left: 20px;
    line-height: 1.8;
}

.release-version li {
    margin-bottom: 8px;
}

/* BLI URL Links */
.bli-url {
    display: inline-block;
    margin-top: 5px;
    color: #667eea;
    text-decoration: none;
    font-size: 12px;
    padding: 2px 8px;
    background: #e8f0fe;
    border-radius: 4px;
}

.bli-url:hover {
    background: #d2e3fc;
    text-decoration: underline;
}

.bli-item.active .bli-url {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.bli-item.active .bli-url:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Restart Button */
.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover:not(:disabled) {
    background: #e0a800;
}

/* Access Code Display */
#displayAccessCode {
    user-select: all;
}
