:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --primary: 240 9% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 240 4.8% 95.9%;
    --secondary-foreground: 240 5.9% 10%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 10% 3.9%;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: 240 10% 3.9%;
        --foreground: 0 0% 98%;
        --card: 240 10% 3.9%;
        --card-foreground: 0 0% 98%;
        --primary: 0 0% 98%;
        --primary-foreground: 240 5.9% 10%;
        --secondary: 240 3.7% 15.9%;
        --secondary-foreground: 0 0% 98%;
        --muted: 240 3.7% 15.9%;
        --muted-foreground: 240 5% 64.9%;
        --border: 240 3.7% 15.9%;
        --input: 240 3.7% 15.9%;
        --ring: 240 4.9% 83.9%;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header and Navigation */
header {
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-center {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.logo a:link, .logo a:visited {
    text-decoration: none;
}

.nav-links-left {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links-left a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-links-left a:hover {
    color: hsl(var(--foreground));
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: -0.25rem -0.75rem;
    padding: 0.25rem 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
    text-decoration: none;
    border: 1px solid;
    color: hsl(var(--muted-foreground));
    border-color: hsl(var(--primary));
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-button:hover {
    opacity: 0.9;
    color: hsl(var(--primary));
}

.nav-divider {
    width: 1px;
    background-color: hsl(var(--border));
    margin: 0;
}

/* Main Layout */
main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, hsl(var(--foreground)), hsl(var(--muted-foreground)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, hsl(var(--foreground)), hsl(var(--muted-foreground)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto;
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid;
    cursor: pointer;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.button-primary:hover {
    opacity: 0.9;
}

.button-secondary {
    background-color: transparent;
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}

.button-secondary:hover {
    background-color: hsl(var(--secondary));
}

/* Card Styles */
.status-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Status Indicators */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #10b981;
}

.status-dot.offline {
    background-color: #ef4444;
}

.status-dot.connecting {
    background-color: #f59e0b;
    animation: pulse 2s infinite;
}

.status-dot.success {
    background-color: #10b981;
}

.status-dot.error {
    background-color: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Footer */
footer {
    border-top: 1px solid hsl(var(--border));
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-link {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.footer-link:hover {
    color: hsl(var(--foreground));
    background-color: hsl(var(--muted) / 0.5);
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Table Styles */
.table-container {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 2rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

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

.table th {
    background-color: hsl(var(--muted));
    font-weight: 600;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
}

.table td {
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background-color: hsl(var(--muted) / 0.5);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.25rem;
    border: 1px solid;
}

.badge-success {
    background-color: hsl(142 76% 36% / 0.1);
    color: hsl(142 76% 36%);
    border-color: hsl(142 76% 36% / 0.2);
}

.badge-warning {
    background-color: hsl(38 92% 50% / 0.1);
    color: hsl(38 92% 50%);
    border-color: hsl(38 92% 50% / 0.2);
}

.badge-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-color: hsl(var(--border));
}

.badge-error {
    background-color: hsl(0 84% 60% / 0.1);
    color: hsl(0 84% 60%);
    border-color: hsl(0 84% 60% / 0.2);
}

.badge-info {
    background-color: hsl(221 83% 53% / 0.1);
    color: hsl(221 83% 53%);
    border-color: hsl(221 83% 53% / 0.2);
}

/* Log Row Styles */
.log-row-error {
    background-color: hsl(0 84% 60% / 0.05);
}

.log-row-warning {
    background-color: hsl(38 92% 50% / 0.05);
}

.table tbody tr:hover.log-row-error {
    background-color: hsl(0 84% 60% / 0.1);
}

.table tbody tr:hover.log-row-warning {
    background-color: hsl(38 92% 50% / 0.1);
}

/* Utility Classes */
.text-muted {
    color: hsl(var(--muted-foreground));
}

/* Form Styles */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
}

.form-section h3 {
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--input));
    color: hsl(var(--foreground));
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

.form-textarea:focus {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--input));
    color: hsl(var(--foreground));
    font-family: inherit;
    font-size: 0.875rem;
}

.form-select:focus {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

/* Choices.js custom styling to match theme */
.choices {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.choices__placeholder {
    color: hsl(var(--muted-foreground));
}

.choices__item {
    color: hsl(var(--foreground));
}

.choices[data-type*="select-one"]:after {
    border-color: hsl(var(--muted-foreground)) transparent transparent transparent;
}

.choices__input:focus {
    outline: none;
}

.choices {
    margin-bottom: 0;
}

.choices__inner {
    background-color: hsl(var(--input));
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    color: hsl(var(--foreground));
    min-height: 75px;
    padding: 0.5rem;
}

.choices__list--multiple .choices__item {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: 1px solid hsl(var(--primary));
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}

.choices__list--dropdown {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    max-height: 300px;
}

.choices__item--choice {
    color: hsl(var(--foreground));
    padding: 0.5rem;
    color: black !important;
}

.choices__item--choice:hover {
    background-color: hsl(var(--secondary));
}

.choices__item--choice.is-highlighted {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.choices__input {
    background-color: transparent;
    color: hsl(var(--foreground));
}

.choices__input::placeholder {
    color: hsl(var(--muted-foreground));
}

/* Form-specific overrides for this page */
.scope-field {
    display: flex;
    flex-direction: column;
}


/* Two Column Layout */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.request-section, .role-section {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

/* Role Output */
.role-output {
    background-color: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    padding: 1rem;
    min-height: 200px;
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--muted-foreground));
    font-style: italic;
}

.error {
    color: #ef4444;
    font-weight: 500;
}

/* Auth Callback Styles */
.auth-result-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 600px;
    margin: 2rem auto;
}

.auth-code-section {
    margin-bottom: 2rem;
}

.auth-code-section h3 {
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
    font-size: 1.125rem;
    font-weight: 600;
}

.code-display {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: hsl(var(--muted));
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

#code-value {
    font-size: 1.875rem;
    color: hsl(var(--foreground));
    word-break: break-all;
    text-align: center;
}

.copy-button {
    position: absolute;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: hsl(var(--secondary));
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-button:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.session-status {
    margin-bottom: 1.5rem;
    text-align: center;
}

.status-details {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-align: left;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.success-content {
    margin-top: 2rem;
    text-align: center;
}

.success-content h3 {
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
    font-size: 1.125rem;
    font-weight: 600;
}

.success-content p {
    margin-bottom: 1.5rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.6;
}

.manual-instructions {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: hsl(var(--muted));
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border));
}

.manual-instructions h4 {
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
    font-size: 1rem;
    font-weight: 600;
}

.manual-instructions p {
    margin-bottom: 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.code-block {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: hsl(var(--background));
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.code-block code {
    flex: 1;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
}

/* Elevate Methods */
.elevate-methods {
    max-width: 800px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.method-option {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.method-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 2rem 1.5rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: all 0.2s;
}

.method-button:hover {
    background-color: hsl(var(--secondary));
}

/* Permission Search Interface */
.choice-wrapper, .permission-selection {
    margin-bottom: 1.5rem;
}

.choice-wrapper label, .permission-selection label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.choice-help, .permission-help {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.permission-search-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--input));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.permission-results {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background-color: hsl(var(--input));
    margin-bottom: 1rem;
}

.search-instruction {
    padding: 1rem;
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-style: italic;
}

.permission-option {
    padding: 0.5rem;
    cursor: pointer;
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.permission-option:hover {
    background-color: hsl(var(--secondary));
    color: black;
}

.permission-option:last-child {
    border-bottom: none;
}

.permission-option.selected {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.permission-name {
    font-weight: 500;
}

.permission-provider {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.permission-option.selected .permission-provider {
    color: hsl(var(--primary-foreground));
    opacity: 0.8;
}

.selected-permissions-container {
    margin-top: 1rem;
}

.selected-permissions-container h4 {
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.selected-permissions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selected-permission-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: 0.25rem;
    font-size: 0.75rem;
    gap: 0.25rem;
}

.remove-permission {
    cursor: pointer;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .nav-links-left {
        display: none;
    }

    .nav-left {
        gap: 1rem;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
    }

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

    .table {
        min-width: 600px;
    }

    .auth-result-card {
        margin: 1rem auto;
        padding: 1.5rem;
    }

    .code-display {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .code-block {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .workflow-details .status-card {
        max-width: 100%;
    }

    .auth-providers {
        margin: 0 auto 1rem;
    }

    .sso-button {
        padding: 1rem;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .sso-description {
        font-size: 0.8rem;
    }
}

/* Auth Provider Styles */
.auth-providers {
    max-width: 400px;
    margin: 0 auto 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sso-provider {
    width: 100%;
}

.sso-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    color: hsl(var(--foreground));
}

.sso-button:hover {
    background-color: hsl(var(--secondary));
}

.provider-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.sso-description {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
}

.sso-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sso-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.sso-title {
    font-weight: 500;
}

.divider {
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: hsl(var(--border));
    z-index: 1;
}

.divider span {
    background-color: hsl(var(--background));
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.alternative-auth {
    text-align: center;
}

.alternative-auth p {
    margin-bottom: 1rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Workflow-specific styles */
.workflow-details {
    margin-top: 2rem;
}

/* Additional specific styles for various components */
.textarea-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--input));
    color: hsl(var(--foreground));
    font-family: inherit;
    resize: vertical;
}

.textarea-input:focus {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.scopes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.scope-field {
    display: flex;
    flex-direction: column;
}

.scope-field label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

/* Permission description area */
.permission-description-area {
    margin-top: 1rem;
    padding: 1rem;
    background-color: hsl(var(--muted));
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    min-height: 80px;
}

.permission-description {
    font-size: 0.875rem;
}

.permission-description .permission-name {
    font-weight: 600;
    color: hsl(var(--foreground));
    display: block;
    margin-bottom: 0.5rem;
}

.permission-description .permission-text {
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.permission-description .permission-provider {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
}

.description-placeholder {
    color: hsl(var(--muted-foreground));
    font-style: italic;
}

/* Remove button for selected permissions */
.remove-btn {
    margin-left: 0.25rem;
    cursor: pointer;
    font-weight: bold;
    opacity: 0.7;
}

.remove-btn:hover {
    opacity: 1;
}

/* Utility classes for common inline styles */
.hidden {
    display: none;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.mt-05 {
    margin-top: 0.5rem;
}

.mt-075 {
    margin-top: 0.75rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-15 {
    margin-top: 1.5rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-025 {
    margin-bottom: 0.25rem;
}

.mb-05 {
    margin-bottom: 0.5rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.p-075 {
    padding: 0.75rem;
}

.p-1 {
    padding: 1rem;
}

.p-2 {
    padding: 2rem;
}

.py-025 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.px-05 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.mr-05 {
    margin-right: 0.5rem;
}

.font-mono {
    font-family: 'Courier New', Courier, monospace;
}

/* Error page styles */
.error-title {
    margin-bottom: 1rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
}

.error-message {
    background-color: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Courier New', Courier, monospace;
    text-align: left;
}

.error-actions {
    margin-top: 2rem;
}

/* Form field error styling */
.field-error {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 0.875rem;
}

@media (prefers-color-scheme: dark) {
    .field-error {
        background-color: #450a0a;
        border-color: #7f1d1d;
        color: #f87171;
    }
}

/* Method description styles */
.method-description.hidden {
    display: none;
}

/* Status card max width */
.status-card.narrow {
    max-width: 600px;
}

/* Workflow details */
.workflow-info {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.workflow-details {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: hsl(var(--secondary));
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.workflow-task-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.workflow-task-name {
    font-size: 0.875rem;
}

/* Role information section */
.role-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: hsl(var(--muted) / 0.5);
    border-radius: 0.5rem;
}

/* Scrollbar styling for log viewer */
.table-container::-webkit-scrollbar {
    width: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: hsl(var(--muted));
}

.table-container::-webkit-scrollbar-thumb {
    background: hsl(var(--border));
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--muted-foreground));
}

.role-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.role-info p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* Small button styles */
.button-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.button-small.mr {
    margin-right: 0.5rem;
}
