@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --arena-primary: #003366;
    --arena-secondary: #0066cc;
    --arena-accent: #ff6600;
    --arena-background: #f8fafc;
    --arena-surface: #ffffff;
    --arena-text-primary: #1e293b;
    --arena-text-secondary: #64748b;
    --arena-text-muted: #94a3b8;
    --arena-border: #e2e8f0;
    --arena-success: #22c55e;
    --arena-warning: #f59e0b;
    --arena-error: #ef4444;
    --arena-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --arena-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --arena-gradient: linear-gradient(135deg, var(--arena-primary) 0%, var(--arena-secondary) 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--arena-text-primary);
    background-color: var(--arena-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Components */
.main-container {
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Header Styles */
.header {
    background: var(--arena-surface);
    border-bottom: 1px solid var(--arena-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--arena-shadow);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo {
    height: 25px;
    width: auto;
}

.brand-text {
    color: var(--arena-primary);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.brand-separator {
    color: var(--arena-text-secondary);
    font-size: 1.2rem;
    font-weight: 300;
}

.mcp-text {
    color: silver;
    font-size: 30px;
    font-weight: 600;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--arena-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--arena-primary);
}

/* Main Content */
.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    padding: 2rem 0;
}

.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--arena-primary) 0%, var(--arena-secondary) 100%);
    color: white;
    margin: 0rem 0rem 4rem 0rem;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Documentation Section */
.docs-section {
    background: var(--arena-surface);
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--arena-shadow);
    border: 1px solid var(--arena-border);
}

.markdown h1 {
    color: var(--arena-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.markdown h2 {
    color: var(--arena-primary);
    font-size: 2rem;
    font-weight: 600;
    margin: 2.5rem 0 1.5rem 0;
    line-height: 1.3;
}

.markdown h3 {
    color: var(--arena-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

.markdown p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--arena-text-primary);
}

.markdown ul, .markdown ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.markdown li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.markdown strong {
    color: var(--arena-primary);
    font-weight: 600;
}

.markdown code {
    margin-left: 10px;
    background: var(--arena-background);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--arena-secondary);
    border: 1px solid var(--arena-border);
    display: none;
}

.markdown pre {
    background: var(--arena-background);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--arena-border);
}

.markdown pre code {
    background: none;
    padding: 0;
    border: none;
    color: var(--arena-text-primary);
}

/* Tool Categories */
.tool-category {
    background: var(--arena-background);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--arena-border);
}

.tool-category h3 {
    color: var(--arena-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-category-icon {
    font-size: 1.25rem;
}

.tool-list {
    display: grid;
    gap: 1rem;
}

.tool-item {
    background: var(--arena-surface);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--arena-border);
    transition: all 0.2s ease;
}

.tool-item:hover {
    box-shadow: var(--arena-shadow-lg);
    transform: translateY(-2px);
}

.tool-name {
    color: var(--arena-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.tool-description {
    color: var(--arena-text-secondary);
    line-height: 1.6;
}

/* Connection Methods */
.connection-methods {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.connection-method {
    word-break:break-word;
    background: var(--arena-surface);
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid var(--arena-border);
    box-shadow: var(--arena-shadow);
}

.method-title {
    color: var(--arena-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.footer {
    background: var(--arena-primary);
    color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

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

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--arena-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.status-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Enhanced Form Styles for Authorization */
.auth-form {
    background: var(--arena-surface);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--arena-shadow-lg);
    border: 1px solid var(--arena-border);
    width: 90%;
    max-width: 550px;
    margin: 1rem auto 0 auto;
    position: relative;
}

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

.auth-title {
    color: var(--arena-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    color: var(--arena-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Guest Login Card */
.guest-card {
    background: linear-gradient(135deg, var(--arena-success) 0%, #16a34a 100%);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.guest-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.guest-card-content {
    position: relative;
    z-index: 1;
}

.guest-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guest-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.5;
}

.guest-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    gap: 0.5rem;
}

.guest-features li {
    font-size: 0.85rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guest-features li::before {
    content: '✓';
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
}

/* Login Separator */
.login-separator {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.separator-line {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--arena-border), transparent);
    margin: 1rem 0;
}

.separator-text {
    background: var(--arena-surface);
    padding: 0 1.5rem;
    color: var(--arena-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Enhanced Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--arena-text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--arena-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--arena-surface);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--arena-secondary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--arena-text-muted);
    font-size: 0.9rem;
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: var(--arena-gradient);
    color: white;
    box-shadow: var(--arena-shadow);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--arena-shadow-lg);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
}

/* Loading States */
.btn-loading {
    pointer-events: none;
}

.btn-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Security Features */
.security-section {
    border-top: 1px solid var(--arena-border);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.security-title {
    color: var(--arena-text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
}

.security-list li {
    color: var(--arena-text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    border: 1px solid;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    border-color: var(--arena-success);
    color: #15803d;
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border-color: var(--arena-error);
    color: #dc2626;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.05));
    border-color: var(--arena-warning);
    color: #d97706;
}

.alert-gray {
    background: var(--arena-background);
    border-color: var(--arena-border);
    color: var(--arena-text-secondary);
}

/* Loading Spinner Enhancement */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.loading-spinner {
    margin: 2rem 0;
}

.loading-text {
    color: var(--arena-text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Legacy styles for compatibility */
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPj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2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .page-content {
        padding: 0 1rem;
    }

    .docs-section {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .content-wrapper {
        padding-top: 0rem;
        padding-bottom: 6rem;
    }

    .hero-section {
        margin-top: 5rem;
        margin-bottom: 2rem;
    }

    .auth-form {
        padding: 2rem 1.5rem;
        margin: 1rem;
        margin-top: 5rem;
    }

    .tool-category
    {
        padding: 0.8rem;
    }

    .tool-item {
        padding: 1.2rem;
    }
}

.grecaptcha-badge {
    z-index: 1000;
}

.captha-notice {
    margin-top: -15px;
    font-size: 12px;
    padding: 0 10px;
    color: #94a3b8;
}
