/* GoCall Console — minimal Filament overrides */

:root {
    --gc-border: #e4e4e7;
}

.dark {
    --gc-border: #27272a;
}

/* Sidebar layout — footer tidak tertutup nav */
.fi-main-sidebar {
    display: flex;
    flex-direction: column;
}

.fi-sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.fi-sidebar-header {
    border-bottom: 1px solid var(--gc-border);
}

.fi-sidebar-item-btn {
    border-radius: 0.5rem;
}

.gc-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--primary-600);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Sidebar footer */
.gc-sidebar-footer {
    position: relative;
    z-index: 40;
    flex-shrink: 0;
    margin-top: auto;
    padding: 0.75rem;
    border-top: 1px solid var(--gc-border);
    pointer-events: auto;
}

.gc-sidebar-footer-label {
    margin-bottom: 0.5rem;
    padding-inline: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #71717a;
}

.gc-tenant-switcher {
    position: relative;
}

.gc-tenant-switcher-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gc-border);
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 500;
    color: inherit;
    text-align: left;
    cursor: pointer;
    list-style: none;
    pointer-events: auto;
}

.gc-tenant-switcher-btn::-webkit-details-marker {
    display: none;
}

.gc-tenant-switcher-btn::marker {
    content: '';
}

.gc-tenant-switcher[open] .gc-tenant-switcher-chevron {
    opacity: 1;
}

.gc-tenant-switcher-btn:hover {
    background: color-mix(in srgb, var(--primary-500) 8%, transparent);
}

.gc-tenant-switcher-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    background: var(--primary-600);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    flex-shrink: 0;
}

.gc-tenant-switcher-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gc-tenant-switcher-chevron {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0.5;
}

.gc-tenant-switcher-menu {
    position: absolute;
    bottom: calc(100% + 0.375rem);
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0.375rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gc-border);
    background: var(--fi-sidebar-bg, white);
    box-shadow: 0 4px 16px rgb(0 0 0 / 0.15);
    pointer-events: auto;
}

.dark .gc-tenant-switcher-menu {
    background: var(--fi-sidebar-bg, #09090b);
}

.gc-tenant-switcher-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    text-align: left;
    cursor: pointer;
    background: transparent;
    border: none;
    color: inherit;
}

.gc-tenant-switcher-empty {
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    color: #71717a;
}

.gc-tenant-switcher-item:hover {
    background: color-mix(in srgb, var(--primary-500) 8%, transparent);
}

.gc-tenant-switcher-item.is-active {
    color: var(--primary-600);
    font-weight: 600;
}

.gc-tenant-switcher-link {
    display: block;
    margin-top: 0.25rem;
    padding: 0.5rem 0.625rem;
    border-top: 1px solid var(--gc-border);
    font-size: 0.75rem;
    color: #71717a;
}

.gc-tenant-switcher-link:hover {
    color: var(--primary-600);
}

/* Deferred table loading */
.fi-ta-loading-overlay {
    border-radius: 0.75rem;
}

/* Cards & tables — subtle borders only */
.fi-section,
.fi-ta-ctn {
    border-radius: 0.75rem;
}

/* Login */
.fi-simple-layout {
    background: linear-gradient(160deg, #fafafa 0%, #f4f4f5 50%, #eef2ff 100%);
}

.dark .fi-simple-layout {
    background: linear-gradient(160deg, #09090b 0%, #0a0a0b 40%, #111827 100%);
}

