/* Global Styles */
        :root {
            --primary-color: #007bff;
            --primary-dark: #0056b3;
            --secondary-color: #6c757d;
            --success-color: #28a745;
            --danger-color: #dc3545;
            --light-color: #f8f9fa;
            --dark-color: #343a40;
            --border-color: #dee2e6;
            --transition-speed: 0.3s;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            background-color: black;
            color: white;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
        }
        
        h1, h2, h3 {
            color: var(--primary-color);
            margin-bottom: 1rem;
        }
        
        p {
            margin-bottom: 1rem;
        }
        
        /* Container */
        .container {
            max-width: 900px;
            width: 100%;
            padding: 20px;
            margin: 0 auto;
        }
        
        /* Progress Bar */
        .progress-container {
            width: 100%;
            margin-bottom: 30px;
        }
        
        .progress-steps {
            display: flex;
            justify-content: space-between;
            position: relative;
            margin-bottom: 30px;
        }
        
        .progress-steps::before {
            content: '';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            height: 4px;
            width: 100%;
            background-color: var(--secondary-color);
            z-index: 0;
        }
        
        .progress-bar {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            height: 4px;
            background-color: var(--primary-color);
            z-index: 1;
            transition: width var(--transition-speed) ease;
        }
        
        .step {
            width: 30px;
            height: 30px;
            background-color: var(--secondary-color);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2;
            position: relative;
            color: white;
            font-weight: bold;
            transition: background-color var(--transition-speed) ease;
        }
        
        .step.active {
            background-color: var(--primary-color);
        }
        
        .step.completed {
            background-color: var(--success-color);
        }
        
        .step-label {
            position: absolute;
            top: 35px;
            left: 50%;
            transform: translateX(-50%);
            white-space: nowrap;
            font-size: 14px;
            color: white;
        }
        
        /* Step Content */
        .step-content {
            display: none;
            animation: fadeIn 0.5s ease;
        }
        
        .step-content.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Buttons */
        .button {
            display: inline-block;
            padding: 10px 20px;
            background-color: var(--primary-color);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color var(--transition-speed) ease;
            text-decoration: none;
            margin-right: 10px;
            margin-top: 10px;
        }
        
        .button:hover {
            background-color: var(--primary-dark);
        }
        
        .button:disabled {
            background-color: var(--secondary-color);
            cursor: not-allowed;
        }
        
        .button-container {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
        }
        
        /* Instructions & Info Boxes */
        .instructions {
            margin-top: 20px;
            padding: 15px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 5px;
            border: 1px solid var(--border-color);
        }
        
        .instructions h4 {
            margin-bottom: 10px;
        }
        
        .instructions ul, .instructions ol {
            padding-left: 20px;
        }
        
        .instructions li {
            margin-bottom: 5px;
        }
        
        /* Notifications */
        .notification {
            padding: 15px;
            margin: 15px 0;
            border-radius: 5px;
            display: none;
        }
        
        .notification.success {
            background-color: rgba(40, 167, 69, 0.2);
            border: 1px solid var(--success-color);
            color: var(--success-color);
        }
        
        .notification.error {
            background-color: rgba(220, 53, 69, 0.2);
            border: 1px solid var(--danger-color);
            color: var(--danger-color);
        }
        
        .notification.info {
            background-color: rgba(0, 123, 255, 0.2);
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
        }
        
        /* Loading Spinner */
        .spinner {
            display: none;
            width: 40px;
            height: 40px;
            margin: 20px auto;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 4px solid var(--primary-color);
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* API Status List Styling */
        .api-status-list {
            margin: 20px 0;
            width: 100%;
        }
        
        .api-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .api-item:last-child {
            border-bottom: none;
        }
        
        .api-name {
            font-size: 16px;
            font-weight: normal;
            flex-grow: 1;
        }
        
        /* Status Badge Styling */
        .status-badge {
            display: inline-block;
            min-width: 100px;
            text-align: center;
            padding: 6px 12px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: bold;
            margin-left: 10px;
        }
        
        .status-badge.enabled {
            background-color: rgba(40, 167, 69, 0.8);
            color: white;
        }
        
        .status-badge.disabled {
            background-color: rgba(220, 53, 69, 0.8);
            color: white;
        }
        
        .status-badge.error {
            background-color: rgba(255, 193, 7, 0.8);
            color: black;
        }
        
        .status-badge.pending {
            background-color: rgba(108, 117, 125, 0.8);
            color: white;
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0% { opacity: 0.6; }
            50% { opacity: 1; }
            100% { opacity: 0.6; }
        }
        
        /* Action Container Styling */
        .api-action-container {
            margin-top: 25px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 15px;
        }
        
        /* Info Box Styling */
        .info-box {
            background-color: rgba(0, 123, 255, 0.1);
            border: 1px solid var(--primary-color);
            border-radius: 5px;
            padding: 15px;
            margin-top: 15px;
            width: 100%;
        }
        
        .info-box h4 {
            color: var(--primary-color);
            margin-bottom: 10px;
        }
        
        .info-box p {
            margin-bottom: 12px;
        }
        
        .info-box .button {
            margin-bottom: 10px;
        }
        
        /* API Status Text */
        #api-status-text {
            margin-bottom: 20px;
            font-size: 22px;
        }
        
        /* Project Selection Styling */
        .project-option-container {
            margin-bottom: 25px;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .existing-project-container {
            background-color: rgba(0, 123, 255, 0.1);
            border: 1px solid var(--primary-color);
        }
        
        .new-project-container {
            background-color: rgba(40, 167, 69, 0.1);
            border: 1px solid var(--success-color);
        }
        
        .project-option-title {
            font-weight: bold;
            margin-bottom: 15px;
            font-size: 18px;
        }
        
        .project-select-container {
            display: flex;
            flex-direction: column;
            margin-bottom: 15px;
        }
        
        .project-select {
            width: 100%;
            max-width: 100%;
            margin-bottom: 20px;
            padding: 15px 10px;
            height: 50px;
            font-size: 16px;
            background-color: rgba(30, 30, 30, 0.6);
            color: white;
        }
        
        .project-option-container .button {
            margin-top: 10px;
            align-self: flex-start;
        }
        
        .or-divider {
            text-align: center;
            margin: 25px 0;
            position: relative;
            height: 20px;
        }
        
        .or-divider:before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: var(--border-color);
            z-index: 0;
        }
        
        .or-divider span {
            background-color: black;
            padding: 0 20px;
            position: relative;
            z-index: 1;
            font-weight: bold;
            font-size: 16px;
            color: var(--border-color);
        }
        
        .project-description {
            margin-bottom: 20px;
            opacity: 0.9;
        }
        
        /* FAQ Section */
        .faq-item {
            margin-bottom: 15px;
        }
        
        .faq-question {
            background-color: transparent;
            color: white;
            padding: 10px 15px;
            cursor: pointer;
            border-radius: 5px;
            transition: background-color 0.3s;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid white;
        }
        
        .faq-question:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        .faq-question::after {
            content: '\25BC';
            font-size: 0.8em;
            transition: transform 0.3s;
        }
        
        .faq-question.active::after {
            transform: rotate(180deg);
        }
        
        .faq-answer {
            display: none;
            background-color: transparent;
            padding: 15px;
            border-radius: 0 0 5px 5px;
            border: 1px solid white;
            border-top: none;
        }
        
        /* Copied Message */
        .copied-msg {
            display: none;
            color: var(--success-color);
            margin-left: 10px;
            font-size: 14px;
        }
        
        /* OAuth Client Info Section */
        #oauth-client-info {
            margin-bottom: 20px;
        }
        
        #oauth-client-info p {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 15px;
        }
        
        #oauth-client-info #clientId {
            font-family: monospace;
            background: rgba(255, 255, 255, 0.1);
            padding: 5px 10px;
            border-radius: 4px;
            margin: 0 10px;
            overflow-wrap: anywhere;
            max-width: 100%;
        }
        
        #launch-scopes-page {
            margin-top: 10px;
        }
        
        /* Header */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            margin-bottom: 20px;
        }
        
        .header h1 {
            margin-bottom: 0;
        }
        
        .header-actions {
            display: flex;
            align-items: center;
        }
        
        .sign-out-btn {
            background-color: #5a6268;
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            text-decoration: none;
            font-size: 14px;
            transition: background-color 0.3s;
        }
        
        .sign-out-btn:hover {
            background-color: #4e555b;
        }
        .instruction-row {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            gap: 10px;
        }

        .step-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background-color: #007bff;
            color: white;
            font-weight: bold;
            font-size: 16px;
            flex-shrink: 0;
        }

        .arrow {
            color: #666;
            font-size: 20px;
            margin: 0 5px;
        }

        .copied-msg {
            color: #28a745;
            font-weight: bold;
            margin-left: 10px;
        }