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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 100%;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.main-layout {
    flex: 1;
    display: flex;
    min-height: 0;
    padding: 0;
    position: relative;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
    align-items: center;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: calc((100% - 1400px) / 2);
    min-width: 160px;
    z-index: 1;
    padding: 1rem 1rem 0 1rem;
}

.sidebar .logo {
    flex-shrink: 0;
}

.sidebar-buttons {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.content-box {
    flex: 1;
    border: 1px solid #333;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tab-nav {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.tab-button {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.tab-button:hover {
    color: #ffffff;
}

.tab-button.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    min-height: 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

#overview p {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #dddddd;
    line-height: 1.8;
}

.tab-pane p {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #dddddd;
    line-height: 1.8;
}

.tab-pane h3 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #ffffff;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tab-pane ul {
    font-size: 1.3rem;
    font-weight: 300;
    color: #dddddd;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
}

.tab-pane ul li {
    margin-bottom: 0.4rem;
}

.status-section ul {
    font-size: 1.2rem;
    margin-left: 0;
    list-style: none;
}

.status-section ul li {
    margin-bottom: 0.2rem;
}

.status-section p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #dddddd;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.tab-pane em {
    color: #aaaaaa;
    font-style: italic;
}

.wip-placeholder {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #666;
    background-color: #111;
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid #333;
    margin-bottom: 1.5rem;
}

.result-image {
    width: 100%;
    max-width: 800px;
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.test-block {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    max-width: 800px;
    font-family: 'Courier New', monospace;
}

.test-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
}

.test-label:first-child {
    margin-top: 0;
}

.test-label-baseline {
    color: #aaaaaa;
}

.test-label-aikronus {
    color: #5ca0d3;
}

.test-text {
    font-size: 1rem;
    font-weight: 300;
    color: #dddddd;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.result-stats {
    font-size: 1.1rem;
    font-weight: 300;
    color: #aaaaaa;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid #333;
}

.status-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.status-label {
    font-size: 1.2rem;
    font-weight: 500;
    color: #aaaaaa;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: #dddddd;
    line-height: 1.6;
}

.social-button {
    display: block;
    padding: 0.75rem 1.2rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    letter-spacing: 0.05em;
    text-align: center;
    width: 140px;
}

.social-button:hover {
    transform: translateY(-2px);
}

.social-button:active {
    transform: translateY(0);
}

.linkedin-button {
    background-color: #000000;
    color: #0077B5;
    border: 1px solid #0077B5;
}

.linkedin-button:hover {
    background-color: #0077B5;
    color: #ffffff;
}

.x-button {
    background-color: #000000;
    border: 1px solid #ffffff;
}

.x-button:hover {
    background-color: #1a1a1a;
}

.huggingface-button {
    background-color: #000000;
    color: #B8860B;
    border: 1px solid #B8860B;
}

.huggingface-button:hover {
    background-color: #B8860B;
    color: #000000;
}

.email-display {
    color: #dddddd;
    font-size: 0.8rem;
    font-weight: 300;
    text-align: center;
    padding: 0.5rem 0;
    word-break: break-all;
}

/* Alpha Model tab button - bold with border */
.alpha-model-button {
    font-weight: 700;
    border: 1px solid #ffffff;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    margin-left: auto;
}

.alpha-model-button.active {
    background-color: #ffffff;
    color: #000000;
    border-bottom: none;
}

/* Side-by-side spec tables */
.spec-tables-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.spec-table-wrapper {
    flex: 1;
    min-width: 0;
}

.spec-table-wrapper h3 {
    margin-top: 0;
}

/* Spec tables */
.spec-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.spec-table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #222;
    color: #dddddd;
    font-weight: 300;
}

.spec-table td:first-child {
    color: #aaaaaa;
    width: 40%;
    font-weight: 400;
}

.spec-table-mini {
    font-size: 0.8rem;
    max-width: 100%;
    margin-bottom: 0.75rem;
}

.spec-table-mini td {
    padding: 0.25rem 0.5rem;
}

/* Password section */
.password-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.password-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    max-width: 400px;
}

.password-input {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    color: #ffffff;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 4px;
    outline: none;
}

.password-input:focus {
    border-color: #666;
}

.password-submit {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.password-submit:hover {
    opacity: 0.85;
}

.password-error {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.server-status {
    color: #ff8800;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* System Prompt Box */
.system-prompt-box {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}

.system-prompt-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.system-prompt-text {
    font-size: 0.95rem;
    color: #dddddd;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

/* Data tables */
.data-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.data-table thead th {
    text-align: left;
    padding: 0.6rem 1rem;
    border-bottom: 2px solid #444;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tbody td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #1a1a1a;
    color: #dddddd;
    font-weight: 300;
    line-height: 1.6;
    vertical-align: top;
}

.data-table tbody tr:hover {
    background: #111;
}

.data-table tbody td:first-child {
    color: #ffffff;
    font-weight: 400;
    white-space: nowrap;
}

.data-table tbody td:nth-child(2) {
    color: #aaaaaa;
}

/* Chat */
.chat-single {
    border: 1px solid #555;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    max-width: 700px;
}

.chat-single .arena-input {
    border-top: 1px solid #333;
}

.chat-arena {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.arena-columns {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.arena-col {
    flex: 1;
    border: 1px solid #333;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.arena-col-aikon {
    border-color: #555;
}

.arena-header {
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #333;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.arena-header-aikon {
    color: #ffffff;
    border-bottom-color: #555;
}

.arena-col .spec-table-mini {
    margin: 0.5rem;
    border-bottom: 1px solid #222;
    padding-bottom: 0.5rem;
}

.chat-messages {
    flex: 1;
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-msg {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
    word-wrap: break-word;
    max-width: 95%;
}

.chat-msg-user {
    background: #1a3a5c;
    color: #dddddd;
    align-self: flex-end;
}

.chat-msg-bot {
    background: #1a1a1a;
    color: #dddddd;
    align-self: flex-start;
}

.chat-loading {
    color: #666;
    animation: pulse 1s infinite;
}

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

.arena-input {
    display: flex;
    gap: 0.5rem;
}

.arena-prompt-input {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 4px;
    outline: none;
}

.arena-prompt-input:focus {
    border-color: #666;
}

.arena-send-button {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.arena-send-button:hover {
    opacity: 0.85;
}

footer {
    padding: 0.5rem 1rem;
    border-top: 1px solid #333;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    html, body {
        overflow: auto;
        height: auto;
        min-height: 100%;
    }

    .container {
        padding: 0;
        height: auto;
        min-height: 100vh;
    }

    .main-layout {
        flex-direction: column;
        min-height: 0;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-width: unset;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #333;
    }

    .sidebar .logo {
        width: 100%;
        text-align: center;
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .sidebar-buttons {
        flex: unset;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .social-button {
        width: auto;
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .email-display {
        width: 100%;
        font-size: 0.8rem;
    }

    main {
        padding: 0.5rem;
    }

    .content-box {
        min-height: 0;
    }

    .tab-nav {
        gap: 0;
        padding: 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .tab-button {
        font-size: 0.95rem;
        white-space: nowrap;
        padding: 0.4rem 0.5rem;
        flex-shrink: 0;
    }

    .tab-content {
        padding: 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #overview p {
        font-size: 1.15rem;
        line-height: 1.6;
    }

    .tab-pane p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .tab-pane h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .tab-pane ul {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-left: 1rem;
    }

    .status-section p {
        font-size: 1.05rem;
    }

    .status-label {
        font-size: 1.05rem;
    }

    .status-text {
        font-size: 1.15rem;
    }

    .result-image {
        max-width: 100%;
    }

    .result-stats {
        font-size: 1rem;
    }

    .wip-placeholder {
        font-size: 1rem;
    }

    .alpha-model-button {
        margin-left: 0;
    }

    .spec-tables-row {
        flex-direction: column;
        gap: 1rem;
    }

    .arena-columns {
        flex-direction: column;
    }

    .chat-messages {
        min-height: 150px;
        max-height: 250px;
    }

    .spec-table {
        font-size: 0.95rem;
    }

    .spec-table td {
        padding: 0.4rem 0.5rem;
    }

    footer {
        font-size: 0.7rem;
        padding: 0.5rem;
    }
}
