/* Teams-specific theme overrides */

/* Base: hide Orbit's nav/header/footer when inside Teams */
body.in-teams .page > .app-sidebar,
body.in-teams .page > nav,
body.in-teams .app-header,
body.in-teams .main-header,
body.in-teams footer,
body.in-teams .app-footer {
    display: none !important;
}

body.in-teams .main-content {
    margin-left: 0 !important;
    margin-inline-start: 0 !important;
}

body.in-teams .content {
    padding: 16px !important;
}

/* Teams theme: Default (light) */
body.teams-theme-default {
    --teams-bg: #ffffff;
    --teams-text: #242424;
    --teams-text-secondary: #616161;
    --teams-surface: #f5f5f5;
    --teams-border: #e0e0e0;
    --teams-primary: #6264a7;
    --teams-hover: #f0f0f0;
    --teams-status-available: #92c353;
}

/* Teams theme: Dark */
body.teams-theme-dark {
    --teams-bg: #1f1f1f;
    --teams-text: #ffffff;
    --teams-text-secondary: #adadad;
    --teams-surface: #292929;
    --teams-border: #3b3b3b;
    --teams-primary: #6264a7;
    --teams-hover: #333333;
    --teams-status-available: #92c353;
}

/* Teams theme: High Contrast */
body.teams-theme-contrast {
    --teams-bg: #000000;
    --teams-text: #ffffff;
    --teams-text-secondary: #ffff00;
    --teams-surface: #000000;
    --teams-border: #ffffff;
    --teams-primary: #ffff00;
    --teams-hover: #1a1a1a;
    --teams-status-available: #92c353;
}

/* Apply Teams theme variables */
body.in-teams {
    background-color: var(--teams-bg, #ffffff);
    color: var(--teams-text, #242424);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Rounding Dashboard tiles */
.rounding-tile {
    background: var(--teams-surface, #f5f5f5);
    border: 1px solid var(--teams-border, #e0e0e0);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.rounding-tile:hover {
    background: var(--teams-hover, #f0f0f0);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rounding-tile .tile-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.rounding-tile .tile-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--teams-primary, #6264a7);
}

.rounding-tile .tile-label {
    font-size: 0.875rem;
    color: var(--teams-text-secondary, #616161);
    margin-top: 4px;
}

/* Teams status banner */
.teams-status-banner {
    background: var(--teams-primary, #6264a7);
    color: var(--custom-white, #fff);
    padding: 8px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.teams-status-banner .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teams-status-available, #92c353);
    display: inline-block;
}

/* Meeting side panel optimizations */
body.in-teams.frame-sidePanel .content {
    padding: 8px !important;
    max-width: 320px;
}

body.in-teams.frame-sidePanel .rounding-tile {
    padding: 12px;
}

body.in-teams.frame-sidePanel .tile-value {
    font-size: 1.5rem;
}
