/* Microsoft Fluent Design System - Common Styles */

/* CSS Variables - Microsoft Color Palette */
:root {
    --ms-blue: #0078D4;
    --ms-blue-dark: #106EBE;
    --ms-blue-light: #50E6FF;
    --ms-gray-10: #FAF9F8;
    --ms-gray-20: #F3F2F1;
    --ms-gray-30: #EDEBE9;
    --ms-gray-50: #D2D0CE;
    --ms-gray-90: #605E5C;
    --ms-gray-130: #323130;
    --ms-gray-160: #252423;
    --ms-white: #FFFFFF;
    --ms-black: #000000;
    --ms-green: #107C10;
    --ms-red: #D13438;
    --ms-orange: #FF8C00;
    --ms-purple: #5C2D91;
    
    /* Fluent shadows */
    --shadow-2: 0 0.3px 0.9px rgba(0, 0, 0, 0.1), 0 1.6px 3.6px rgba(0, 0, 0, 0.13);
    --shadow-4: 0 1.6px 3.6px rgba(0, 0, 0, 0.13), 0 0.3px 0.9px rgba(0, 0, 0, 0.1);
    --shadow-8: 0 3.2px 7.2px rgba(0, 0, 0, 0.13), 0 0.6px 1.8px rgba(0, 0, 0, 0.11);
    --shadow-16: 0 6.4px 14.4px rgba(0, 0, 0, 0.13), 0 1.2px 3.6px rgba(0, 0, 0, 0.11);
    
    /* Typography */
    --font-family-base: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    --font-weight-regular: 400;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    font-family: var(--font-family-base);
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    background-color: var(--ms-gray-10);
    color: var(--ms-gray-160);
    font-size: 14px;
    line-height: 1.5;
}

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

/* ===== MICROSOFT HEADER ===== */
.ms-header {
    background: linear-gradient(180deg, var(--ms-white) 0%, #FAFAFA 100%);
    border-bottom: 1px solid var(--ms-gray-30);
    box-shadow: var(--shadow-4);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.ms-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    max-width: 1920px;
    margin: 0 auto;
}

.ms-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ms-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.ms-product-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.ms-product-brand {
    font-weight: var(--font-weight-semibold);
    color: var(--ms-blue);
}

.ms-product-separator {
    color: var(--ms-gray-50);
}

.ms-product-title {
    font-weight: var(--font-weight-semibold);
    color: var(--ms-gray-160);
}

.ms-header-nav {
    display: flex;
    gap: 4px;
    margin-left: 32px;
}

.ms-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: var(--ms-gray-90);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: var(--font-weight-regular);
    transition: all 0.15s ease;
    position: relative;
}

.ms-nav-item:hover {
    background-color: var(--ms-gray-20);
    color: var(--ms-gray-160);
}

.ms-nav-item.active {
    color: var(--ms-blue);
    font-weight: var(--font-weight-semibold);
    background-color: var(--ms-gray-10);
}

.ms-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ms-blue) 0%, var(--ms-blue-light) 100%);
    border-radius: 2px 2px 0 0;
}

.ms-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ms-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: var(--ms-gray-10);
    border-radius: 4px;
    font-size: 13px;
    color: var(--ms-gray-90);
}

.ms-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--ms-blue);
}

.ms-user-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-header-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--ms-gray-90);
    cursor: pointer;
    transition: all 0.1s ease;
}

.ms-header-button.ms-signout-button {
    width: auto;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--ms-blue);
    color: var(--ms-white);
    border: none;
    font-weight: var(--font-weight-semibold);
    border-radius: 4px;
    margin-left: 12px;
    box-shadow: var(--shadow-2);
}

.ms-header-button.ms-signout-button svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.ms-header-button.ms-signout-button svg path {
    stroke: var(--ms-white);
}

.ms-header-button.ms-signout-button span {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
}

.ms-header-button:hover {
    background-color: var(--ms-gray-20);
    color: var(--ms-gray-160);
}

.ms-header-button.ms-signout-button:hover {
    background-color: var(--ms-blue-dark);
    box-shadow: var(--shadow-4);
}

.ms-header-button:active {
    background-color: var(--ms-gray-30);
}

.ms-header-button.ms-signout-button:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-2);
}

/* ===== MAIN CONTENT ===== */
.ms-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--ms-white);
}

/* ===== FOOTER ===== */
.ms-footer {
    background-color: var(--ms-white);
    border-top: 1px solid var(--ms-gray-30);
    padding: 12px 24px;
    flex-shrink: 0;
    font-size: 12px;
}

.ms-footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1920px;
    margin: 0 auto;
    gap: 16px;
    flex-wrap: wrap;
}

.ms-footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ms-footer-text {
    color: var(--ms-gray-90);
}

.ms-footer-link {
    color: var(--ms-gray-90);
    text-decoration: none;
    transition: color 0.1s ease;
}

.ms-footer-link:hover {
    color: var(--ms-blue);
    text-decoration: underline;
}

.ms-footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ms-footer-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background-color: var(--ms-gray-10);
    border-radius: 3px;
    color: var(--ms-gray-90);
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
}

.ms-footer-disclaimer {
    color: var(--ms-gray-60);
    font-size: 10px;
    font-style: italic;
}

.ms-footer-version {
    color: var(--ms-gray-50);
    font-size: 11px;
}

/* ===== CHAT CONTAINER (Microsoft Fluent Design) ===== */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--ms-white);
    overflow: hidden;
}

.chat-history {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background-color: var(--ms-gray-10);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-history::-webkit-scrollbar {
    width: 8px;
}

.chat-history::-webkit-scrollbar-track {
    background: transparent;
}

.chat-history::-webkit-scrollbar-thumb {
    background: var(--ms-gray-50);
    border-radius: 4px;
}

.chat-history::-webkit-scrollbar-thumb:hover {
    background: var(--ms-gray-90);
}

.message-form {
    padding: 16px 24px 20px;
    background: var(--ms-white);
    border-top: 1px solid var(--ms-gray-30);
}

.message-input-container {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.message-input {
    flex: 1;
    min-height: 150px;
    max-height: 400px;
    padding: 12px 16px;
    border: 1px solid var(--ms-gray-50);
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font-family-base);
    line-height: 1.5;
    resize: vertical;
    overflow-y: auto;
    transition: border-color 0.1s ease, box-shadow 0.1s ease;
    background: var(--ms-white);
    color: var(--ms-gray-160);
}

.message-input:focus {
    outline: none;
    border-color: var(--ms-blue);
    box-shadow: 0 0 0 1px var(--ms-blue);
}

.message-input::placeholder {
    color: var(--ms-gray-90);
}

.send-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--ms-blue);
    color: var(--ms-white);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    height: 44px;
    box-shadow: var(--shadow-2);
}

.send-btn:hover {
    background-color: var(--ms-blue-dark);
    box-shadow: var(--shadow-8);
    transform: translateY(-1px);
}

.send-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-2);
}

.send-btn:disabled {
    background-color: var(--ms-gray-50);
    color: var(--ms-gray-90);
    cursor: not-allowed;
    opacity: 0.6;
}

.send-btn svg {
    width: 16px;
    height: 16px;
}

/* ===== MESSAGE PAIRS (Microsoft Fluent Design) ===== */
.message-pair {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--ms-white);
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.user-message {
    padding: 12px 16px;
    background: var(--ms-blue);
    color: var(--ms-white);
    border-radius: 8px 8px 8px 2px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 80%;
    align-self: flex-end;
    box-shadow: var(--shadow-2);
    transition: box-shadow 0.2s ease;
}

.user-message:hover {
    box-shadow: var(--shadow-4);
}

.user-message strong {
    display: block;
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    opacity: 0.9;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-response {
    padding: 12px 16px;
    background: var(--ms-gray-10);
    color: var(--ms-gray-160);
    border-radius: 8px 8px 2px 8px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 85%;
    align-self: flex-start;
    box-shadow: var(--shadow-2);
    transition: box-shadow 0.2s ease;
}

.server-response:hover {
    box-shadow: var(--shadow-4);
}

.server-response strong:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    color: var(--ms-blue);
    margin-bottom: 8px;
}

.server-response strong:first-child::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--ms-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

/* ===== LEGACY HEADER (for backward compatibility) ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background-color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    font-weight: 500;
    color: #333;
}

/* Content Area */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8f9fa;
}

/* Chat page gets full frame - no padding */
.content.chat-content {
    padding: 0 !important;
    background-color: #ffffff !important;
    height: 100vh !important;
    /* Ensure full viewport height */
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Status/Sessions page gets full frame - minimal padding */
.content.status-content {
    padding: 0 !important;
    background-color: #f8f9fa !important;
    height: 100vh !important;
    /* Ensure full viewport height */
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 10px;
}

.nav-link {
    color: white;
    background-color: #0078d4;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #0078d4;
    background-color: white;
    border: 1px solid #0078d4;
}

/* All nav links should have consistent styling - removed separate home styling */

.nav-link.sessions {
    background-color: #107c41;
    border: 1px solid transparent;
}

.nav-link.sessions:hover {
    color: #107c41;
    background-color: white;
    border: 1px solid #107c41;
}

.nav-link.logout {
    background-color: #c5504b;
    border: 1px solid transparent;
}

.nav-link.logout:hover {
    color: #c5504b;
    background-color: white;
    border: 1px solid #c5504b;
}

/* Form Styles */
.form-card {
    background: white;
    padding: 54px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 720px;
    margin: 0 auto;
}

.form-title {
    color: #333;
    font-size: 36px;
    font-weight: 600;
    margin: 0 0 30px 0;
    text-align: center;
}

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

.form-input {
    width: 100%;
    padding: 21px 27px;
    font-size: 27px;
    border: 2px solid #e1e5e9;
    border-radius: 9px;
    box-sizing: border-box;
    outline: none;
}

.form-input:focus {
    border-color: #0078d4;
}

.form-button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background-color: #0078d4;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
}

.form-button:hover {
    color: #0078d4;
    background-color: white;
    border: 1px solid #0078d4;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

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

/* Chat Styles */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 0;
    /* Remove border radius for full frame */
    box-shadow: none;
    /* Remove shadow for full frame */
    overflow: hidden;
}

.chat-history {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Remove horizontal padding for full-width chat */
.content.chat-content .chat-history {
    padding: 20px 10px;
}

.message-form {
    display: flex;
    gap: 10px;
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
    align-items: flex-end;
}

/* Remove horizontal padding for full-width chat */
.content.chat-content .message-form {
    padding: 20px;
}

.message-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    height: 44px;
    line-height: 1.4;
    font-family: inherit;
    box-sizing: border-box;
    overflow-y: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    transition: height 0.1s ease;
}

/* Show scrollbar only when content has newlines and exceeds max height */
.message-input:focus {
    border-color: #0078d4;
    overflow-y: auto;
}

/* Single line mode - no scrolling, fixed height */
.message-input.single-line {
    height: 44px !important;
    overflow-y: hidden !important;
}

/* Multi-line mode - auto height with scrolling when needed */
.message-input.has-newlines {
    height: auto !important;
    min-height: 44px;
    overflow-y: auto;
}

/* Reset class to force height back to minimum */
.message-input.reset {
    height: 44px !important;
}

/* Hide spinner arrows for all input fields */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Hide spinner arrows for textarea and all input types */
.message-input::-webkit-outer-spin-button,
.message-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.send-btn {
    padding: 11px 19px;
    background-color: #0078d4;
    color: white;
    border: 2px solid #0078d4;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    height: 44px;
    width: 100px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.send-btn:hover {
    color: #0078d4;
    background-color: white;
    border: 2px solid #0078d4;
}

/* Loading indicator for chat */
.loading-indicator {
    padding: 15px 20px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
}

.loading-indicator::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    border-top-color: #0078d4;
    animation: spin 1s linear infinite;
}

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

/* Chat Message Styles */
.message-pair {
    margin: 8px 0;
}

.user-message {
    padding: 12px 16px;
    background-color: #0078d4;
    color: white;
    border-radius: 12px 12px 2px 12px;
    margin-left: auto;
    margin-right: 0;
    max-width: 70%;
    width: fit-content;
    display: block;
    text-align: right;
}

/* Failed (rate-limited / error) user messages */
.user-message.failed {
    background-color: #6c757d;
    /* Neutral gray */
    color: #eee;
    opacity: 0.75;
    filter: grayscale(40%);
    position: relative;
}

.user-message.failed strong:first-child {
    color: #ffffff;
}

.user-message-meta {
    margin-top: 6px;
    font-size: 12px;
    text-align: left;
    display: flex;
    gap: 6px;
    align-items: center;
}

.user-message-meta .error-text {
    color: #ffd7d7;
    background: rgba(197, 80, 75, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
}

.user-message-meta .retry-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #ffd7d7;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.user-message-meta .retry-link:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Server/Agent response messages */
.server-response {
    padding: 12px 16px;
    background-color: #f8f9fa;
    color: #333;
    /* Darker color for better readability */
    border-radius: 12px 12px 12px 2px;
    margin-left: 0;
    margin-right: auto;
    max-width: 70%;
    width: fit-content;
    display: block;
    margin-top: 8px;
}

/* Style the "Agent:" label in green - higher specificity */
.server-response strong:first-child {
    color: #107c41 !important;
}

/* Ensure markdown content strong elements don't inherit green from Agent label */
.server-response .markdown-content strong {
    color: #222 !important;
    /* Dark color for better readability */
}

/* Ensure markdown content list items don't inherit green from Agent label */
.server-response .markdown-content li {
    color: #333 !important;
    /* Dark color for better readability */
}

/* Inline message styling for welcome messages */
.server-response .inline-message {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Streaming response styles */
.server-response.streaming {
    /* Keep the same background as regular server responses */
    background-color: #f8f9fa;
}

.server-response.streaming .streaming-content::after {
    content: '█';
    /* Use solid block character for cursor */
    animation: blink 1s infinite;
    color: #666;
    /* Lighter gray color */
    font-weight: normal;
    /* Normal weight for block */
    font-size: 1em;
    /* Same size as surrounding text */
    line-height: 1;
    vertical-align: text-top;
    /* Align with text height */
    margin-left: 2px;
    opacity: 0.8;
    /* Slightly transparent */
}

/* Style for incomplete code blocks during streaming */
.streaming-code {
    position: relative;
    background-color: #f8f9fa;
    border-left: 3px solid #107c41;
}

.streaming-code::after {
    content: '█';
    /* Use solid block character for cursor */
    animation: blink 1s infinite;
    color: #666;
    /* Lighter gray color */
    font-weight: normal;
    /* Normal weight for block */
    font-size: 1em;
    /* Even smaller for code blocks */
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    /* Slightly transparent */
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Error message styles */
.server-response.error {
    background-color: #ffeaea;
    border-left: 3px solid #c5504b;
    color: #721c24;
}

.agent-message {
    padding: 12px 16px;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 12px 12px 12px 2px;
    margin-left: 0;
    margin-right: auto;
    max-width: 70%;
    width: fit-content;
    display: block;
}

/* Markdown formatting within agent messages */
.agent-message h1 {
    font-size: 20px;
    margin: 15px 0 10px 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.agent-message h2 {
    font-size: 18px;
    margin: 12px 0 8px 0;
    color: #2c3e50;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 3px;
}

.agent-message h3 {
    font-size: 16px;
    margin: 10px 0 6px 0;
    color: #34495e;
    font-weight: 600;
}

.agent-message hr {
    border: none;
    border-top: 1px solid #bdc3c7;
    margin: 15px 0;
}

.agent-message ul {
    margin: 10px 0;
    padding-left: 20px;
}

.agent-message li {
    margin: 3px 0;
    list-style-type: disc;
    color: #333 !important;
    /* Dark color for better readability */
}

.agent-message code {
    background-color: #ecf0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

.agent-message pre {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
    border-left: 4px solid #4299e1;
}

.agent-message pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-size: 13px;
    line-height: 1.5;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: white;
    background-color: #0078d4;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #0078d4;
    background-color: white;
    border: 1px solid #0078d4;
}

.nav-link.logout {
    background-color: #c5504b;
    color: white;
    border: 1px solid transparent;
}

.nav-link.logout:hover {
    color: #c5504b;
    background-color: white;
    border: 1px solid #c5504b;
}

.nav-link.sessions {
    background-color: #107c41;
    color: white;
    border: 1px solid transparent;
}

.nav-link.sessions:hover {
    color: #107c41;
    background-color: white;
    border: 1px solid #107c41;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header h1 {
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    color: #666;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Content Container */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #ffffff;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    box-sizing: border-box;
    outline: none;
}

.form-input:focus {
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Button Styles */
.btn {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #0078d4;
    color: white;
}

.btn-primary:hover {
    color: #0078d4;
    background-color: white;
    border: 1px solid #0078d4;
}

.btn-danger {
    background-color: #c5504b;
    color: white;
}

.btn-danger:hover {
    color: #c5504b;
    background-color: white;
    border: 1px solid #c5504b;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background-color: #f8f9fa;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    font-weight: 600;
    color: #495057;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

/* Status Page Styles */
.status-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Full-width status container for status-content pages */
.content.status-content .status-container {
    max-width: none;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.status-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

/* Add padding for full-width status pages */
.content.status-content .status-header {
    padding-left: 20px;
    padding-right: 20px;
}

.session-count {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.sessions-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

/* Full-width table container for status-content pages */
.content.status-content .sessions-table-container {
    flex: 1;
    margin-bottom: 20px;
    overflow: auto;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #dee2e6;
}

.sessions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    table-layout: auto;
}

.sessions-table thead {
    background-color: #f8f9fa;
}

.sessions-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    font-size: 16px;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
}

.sessions-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 16px;
}

.sessions-table td:nth-child(2) {
    white-space: nowrap;
    min-width: 200px;
    font-family: monospace;
    font-size: 16px;
    color: #6c757d;
}

.sessions-table td:nth-child(3) {
    white-space: nowrap;
    min-width: 150px;
    font-family: monospace;
    font-size: 16px;
    color: #6c757d;
}

.sessions-table tbody tr:hover {
    background-color: #f8f9fa;
}

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

.session-id {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: #0078d4;
    background-color: #e7f3ff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #b8daff;
}

.no-sessions {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px !important;
}

.status-footer {
    text-align: center;
    padding-bottom: 30px;
    /* Reduced bottom spacing by half */
}

/* Add padding for full-width status pages */
.content.status-content .status-footer {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
    /* Reduced extra bottom spacing by half */
}

.status-note {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .status-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

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

    .sessions-table {
        min-width: 600px;
    }

    .sessions-table th,
    .sessions-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
}

/* Comprehensive Markdown Content Styles for Chat Messages */
.markdown-content {
    color: #333;
    /* Darker gray for better readability on light background */
    /* Consistent dark color for all agent responses */
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
    color: #222 !important;
    /* Dark color for headings - better readability */
    margin: 8px 0 2px 0;
    /* Reduced spacing underneath headings by 50% */
    font-weight: 600;
    line-height: 1.3;
}

.markdown-content h1 {
    font-size: 24px;
    border-bottom: 2px solid #666;
    /* Dark gray instead of blue */
    padding-bottom: 8px;
}

.markdown-content h2 {
    font-size: 20px;
    border-bottom: 1px solid #666;
    /* Dark gray instead of green */
    padding-bottom: 6px;
}

.markdown-content h3 {
    font-size: 18px;
    color: #222 !important;
    /* Dark color for consistency */
}

.markdown-content h4 {
    font-size: 16px;
    color: #222 !important;
    /* Dark color for consistency */
    border-bottom: 1px solid #666;
    /* Dark gray instead of light gray */
    padding-bottom: 3px;
    margin: 8px 0 4px 0;
    /* Reduced spacing */
}

.markdown-content hr {
    border: none;
    border-top: 2px solid #bdc3c7;
    margin: 20px 0;
    opacity: 0.8;
}

/* Text Formatting */
.markdown-content strong {
    font-weight: 600;
    color: #222 !important;
    /* Dark color for better readability */
}

.markdown-content em {
    font-style: italic;
    color: #333 !important;
    /* Dark color for better readability */
}

.markdown-content u {
    text-decoration: underline;
    color: #333 !important;
    /* Dark color for better readability */
}

/* Code Blocks and Inline Code */
.markdown-content code {
    background-color: #f1f3f4;
    color: #333 !important;
    /* Dark color for better readability */
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    border: 1px solid #e1e5e9;
}

.markdown-content pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    margin: 12px 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}

.markdown-content pre code {
    background-color: transparent;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #000000;
}

/* Markdown tables */
.markdown-table-wrapper {
    margin: 12px 0;
    padding-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #90949c #f1f3f5;
}

.markdown-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.markdown-table-wrapper::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.markdown-table-wrapper::-webkit-scrollbar-thumb {
    background: #c1c4cb;
    border-radius: 4px;
}

.markdown-table-wrapper table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    margin: 0;
}

@supports not (width: max-content) {
    .markdown-table-wrapper table {
        width: auto;
    }
}

.markdown-table-wrapper th,
.markdown-table-wrapper td {
    white-space: nowrap;
}

.markdown-table-wrapper table th,
.markdown-table-wrapper table td {
    border-bottom: 1px solid #dee2e6;
}

/* Lists */
.markdown-content ul,
.markdown-content ol {
    margin: 10px 0;
    padding-left: 24px;
}

.markdown-content ul {
    list-style-type: disc;
}

.markdown-content ol {
    list-style-type: decimal;
}

.markdown-content li {
    margin: 4px 0;
    color: #333 !important;
    /* Dark color for better readability */
    line-height: 1.5;
}

.markdown-content ul ul,
.markdown-content ol ol,
.markdown-content ul ol,
.markdown-content ol ul {
    margin: 2px 0;
}

/* Blockquotes */
.markdown-content blockquote {
    border-left: 4px solid #0078d4;
    margin: 12px 0;
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #555;
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

.markdown-content blockquote p {
    margin: 4px 0;
}

/* Paragraphs and Line Breaks */
.markdown-content p {
    margin: 8px 0;
    line-height: 1.6;
    color: #333;
}

/* Improved spacing for sections */
.markdown-content h1+*,
.markdown-content h2+*,
.markdown-content h3+*,
.markdown-content h4+* {
    margin-top: 2px;
}

/* Special styling for technical terms */
.markdown-content code:has-text(kube-system),
.markdown-content code:has-text(coredns),
.markdown-content code:has-text(cilium) {
    background-color: #e3f2fd;
    color: #1976d2;
}

/* Better spacing between different elements */
.markdown-content h1+p,
.markdown-content h2+p,
.markdown-content h3+p,
.markdown-content h4+p {
    margin-top: 2px;
}

.markdown-content ul+p,
.markdown-content ol+p,
.markdown-content pre+p,
.markdown-content blockquote+p {
    margin-top: 12px;
}

.markdown-content p+ul,
.markdown-content p+ol,
.markdown-content p+pre,
.markdown-content p+blockquote {
    margin-top: 8px;
}

/* Tighter spacing between headers and lists */
.markdown-content h1+ul,
.markdown-content h1+ol,
.markdown-content h2+ul,
.markdown-content h2+ol,
.markdown-content h3+ul,
.markdown-content h3+ol,
.markdown-content h4+ul,
.markdown-content h4+ol {
    margin-top: 4px;
}

/* Tighter spacing between lists and headers */
.markdown-content ul+h1,
.markdown-content ul+h2,
.markdown-content ul+h3,
.markdown-content ul+h4,
.markdown-content ol+h1,
.markdown-content ol+h2,
.markdown-content ol+h3,
.markdown-content ol+h4 {
    margin-top: 8px;
}

/* Streaming cursor styles */
.server-response.streaming .streaming-content::after {
    content: '█';
    font-weight: normal;
    animation: blink 1s infinite;
    color: #666;
    font-size: 1em;
    opacity: 0.8;
    margin-left: 2px;
}

.streaming-code::after {
    content: '█';
    font-weight: normal;
    animation: blink 1s infinite;
    color: #666;
    font-size: 1em;
    opacity: 0.8;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Feedback Modal Styles */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feedback-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.feedback-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.feedback-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.feedback-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.feedback-close:hover {
    background-color: #f0f0f0;
}

.feedback-modal-body {
    padding: 20px;
}

.feedback-modal-body p {
    margin: 0 0 12px 0;
    color: #555;
    font-size: 14px;
}

.feedback-textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
}

.feedback-textarea:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);
}

.feedback-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.feedback-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-cancel {
    background-color: #f0f0f0;
    color: #333;
}

.feedback-cancel:hover {
    background-color: #e0e0e0;
}

.feedback-submit {
    background-color: #0078d4;
    color: white;
}

.feedback-submit:hover {
    background-color: #106ebe;
}

.feedback-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Feedback Buttons on Messages */
.feedback-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

.feedback-thumb-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.feedback-thumb-btn:hover:not(:disabled) {
    background-color: #f0f0f0;
    border-color: #0078d4;
}

.feedback-thumb-btn:disabled {
    cursor: not-allowed;
}

/* Only reduce opacity for disabled buttons that are NOT selected */
.feedback-thumb-btn:disabled:not(.selected) {
    opacity: 0.5;
}

.feedback-thumb-btn.selected {
    background-color: #e3f2fd;
    border-color: #0078d4;
    color: #0078d4;
    opacity: 1 !important;
}

.feedback-thumb-btn.positive.selected {
    background-color: #e8f5e9 !important;
    border-color: #4caf50 !important;
    color: #4caf50 !important;
    opacity: 1 !important;
}

.feedback-thumb-btn.negative.selected {
    background-color: #ffebee !important;
    border-color: #f44336 !important;
    color: #f44336 !important;
    opacity: 1 !important;
}

/* Feedback Modal */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.feedback-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 500px;
    animation: slideDown 0.3s ease-out;
}

.feedback-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.feedback-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.feedback-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.feedback-modal-body {
    padding: 20px;
}

.feedback-modal-body p {
    margin: 0 0 10px 0;
    color: #555;
}

.feedback-modal-body strong {
    color: #0078d4;
    text-transform: capitalize;
}

.feedback-comment-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.feedback-comment-input:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);
}

.feedback-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.feedback-btn-cancel,
.feedback-btn-submit {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-btn-cancel {
    background-color: #f0f0f0;
    color: #333;
}

.feedback-btn-cancel:hover {
    background-color: #e0e0e0;
}

.feedback-btn-submit {
    background-color: #0078d4;
    color: white;
}

.feedback-btn-submit:hover {
    background-color: #005a9e;
}

.feedback-btn-submit:active {
    background-color: #004578;
}

/* ===== LOGIN PAGE STYLES ===== */
.ms-login-body {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.ms-login-container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ms-login-card {
    background: var(--ms-white);
    border-radius: 8px;
    box-shadow: var(--shadow-16);
    padding: 48px 44px;
    text-align: center;
}

.ms-login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.ms-login-title {
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    color: var(--ms-gray-160);
    margin: 0 0 8px 0;
}

.ms-login-subtitle {
    font-size: 15px;
    color: var(--ms-gray-90);
    margin: 0 0 32px 0;
    font-weight: var(--font-weight-regular);
}

.ms-login-form {
    margin-bottom: 32px;
}

.ms-login-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background-color: var(--ms-white);
    border: 2px solid var(--ms-gray-50);
    border-radius: 4px;
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    color: var(--ms-gray-160);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ms-login-button:hover {
    background-color: var(--ms-gray-10);
    border-color: var(--ms-gray-90);
    box-shadow: var(--shadow-4);
}

.ms-login-button:active {
    transform: scale(0.98);
}

.ms-login-error {
    color: var(--ms-red);
    font-size: 13px;
    margin-top: 16px;
    text-align: center;
}

.ms-login-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--ms-gray-30);
}

.ms-login-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ms-gray-90);
    text-align: left;
}

.ms-login-feature svg {
    color: var(--ms-green);
    flex-shrink: 0;
}

.ms-login-footer {
    text-align: center;
}

.ms-login-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--ms-gray-90);
}

.ms-login-footer-links a {
    color: var(--ms-gray-90);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ms-login-footer-links a:hover {
    color: var(--ms-blue);
    text-decoration: underline;
}

.ms-login-footer-links span {
    color: var(--ms-gray-50);
}

/* ===== STATUS PAGE STYLES ===== */
.status-container {
    padding: 32px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ms-gray-30);
}

.status-title {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    color: var(--ms-gray-160);
    margin: 0;
}

.session-count {
    font-size: 14px;
    padding: 8px 16px;
    background-color: var(--ms-blue);
    color: var(--ms-white);
    border-radius: 16px;
    font-weight: var(--font-weight-semibold);
}

.sessions-table-container {
    background: var(--ms-white);
    border-radius: 8px;
    box-shadow: var(--shadow-2);
    overflow: hidden;
    margin-bottom: 24px;
}

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

.sessions-table thead {
    background-color: var(--ms-gray-10);
}

.sessions-table th {
    padding: 16px;
    text-align: left;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    color: var(--ms-gray-160);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--ms-gray-30);
}

.sessions-table td {
    padding: 16px;
    font-size: 14px;
    color: var(--ms-gray-90);
    border-bottom: 1px solid var(--ms-gray-30);
}

.sessions-table tbody tr:hover {
    background-color: var(--ms-gray-10);
}

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

.status-footer {
    padding: 16px;
    background-color: var(--ms-gray-10);
    border-radius: 4px;
}

.status-note {
    margin: 0;
    font-size: 13px;
    color: var(--ms-gray-90);
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ms-header-nav {
        display: none;
    }
    
    .ms-login-card {
        padding: 32px 24px;
    }
    
    .sessions-table {
        font-size: 12px;
    }
    
    .sessions-table th,
    .sessions-table td {
        padding: 12px 8px;
    }
}
