body {
    background-color: var(--bs-body-bg);
}

#app {
    display: none;
}

#app.show {
    display: block;
}

.app-header {
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
}

.search-input {
    position: relative;
}

.search-input .search-icon {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: var(--bs-secondary-color);
}

.search-input .form-control {
    padding-left: 2.5rem;
}

.agent-list,
.phone-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
}

.agent-meta,
.phone-meta {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}

.selected-indicator {
    font-size: 0.85rem;
    color: var(--bs-primary);
}

.empty-state {
    padding: 1rem;
    color: var(--bs-secondary-color);
}

.tab-pane {
    padding-top: 1.5rem;
}

.migration-step {
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--bs-border-color);
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(var(--bs-primary-rgb), 0.04);
}

.migration-step.completed {
    border-left-color: var(--bs-success);
    background-color: rgba(var(--bs-success-rgb), 0.08);
}

.migration-step.failed {
    border-left-color: var(--bs-danger);
    background-color: rgba(var(--bs-danger-rgb), 0.08);
}

.migration-step.in-progress {
    border-left-color: var(--bs-warning);
    background-color: rgba(var(--bs-warning-rgb), 0.08);
}

.voice-suggestion-list {
    max-height: 260px;
    overflow-y: auto;
}

.voice-suggestion-list .list-group-item {
    cursor: pointer;
}

.voice-suggestion-list .list-group-item.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.voice-suggestion-list .voice-meta {
    font-size: 0.8rem;
}

.login-wrapper {
    max-width: 420px;
    margin: calc(12vh) auto;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-shell main {
    flex: 1 1 auto;
}

.avatar-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--bs-body-bg);
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.85), rgba(var(--bs-primary-rgb), 0.6));
    text-transform: uppercase;
}

.navbar-theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bs-border-color);
    background-color: transparent;
    color: var(--bs-body-color);
}

.navbar-theme-toggle:hover {
    background-color: rgba(var(--bs-body-color-rgb), 0.08);
}

.navbar-nav .nav-link.active {
    font-weight: 600;
}

.global-message {
    transition: opacity 0.2s ease;
}

.global-message.fade-out {
    opacity: 0;
}

.card-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-section-header .section-meta {
    color: var(--bs-secondary-color);
    font-size: 0.95rem;
}

.table-responsive-fixed {
    max-height: 420px;
    overflow-y: auto;
}

.logs-timeline .list-group-item {
    border-radius: 0.75rem;
    border: 1px solid var(--bs-border-color);
    margin-bottom: 0.75rem;
    padding: 1rem 1.25rem;
}

.logs-timeline .list-group-item:last-child {
    margin-bottom: 0;
}

.logs-timeline .badge {
    font-weight: 500;
    letter-spacing: 0.01em;
}

.settings-card .form-label {
    font-weight: 500;
}

.settings-card .form-text {
    color: var(--bs-secondary-color);
}

.theme-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
}
