/* ================================================
   Manage Xcelere — CSS custom
   Bootstrap 5 variables + ajustements
   ================================================ */

:root {
    --sidebar-width: 220px;
    --navbar-height: 56px;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-height: calc(100vh - var(--navbar-height));
    position: sticky;
    top: var(--navbar-height);
    flex-shrink: 0;
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-left-color: var(--bs-primary);
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

/* Main content */
.main-content {
    min-height: calc(100vh - var(--navbar-height) - 50px);
}

/* Footer */
.footer {
    margin-left: 0;
}

@media (min-width: 992px) {
    .main-content {
        margin-left: 0;
    }
}

/* Cards */
.card-client {
    border-left: 4px solid var(--bs-primary);
}

.card-client .card-header {
    cursor: pointer;
}

.card-client .card-header:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Version badges */
.badge-version {
    font-size: 0.8rem;
    padding: 0.3em 0.6em;
}

/* Table */
.table-licences {
    font-size: 0.875rem;
}

.table-licences th {
    font-weight: 600;
    white-space: nowrap;
}

.table-licences td {
    vertical-align: middle;
}

/* Actions dropdown */
.dropdown-toggle::after {
    display: none;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
}

/* Progress steps */
.step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
}

.step-item .step-icon {
    width: 24px;
    text-align: center;
}

.step-item.step-pending .step-icon { color: var(--bs-secondary); }
.step-item.step-running .step-icon { color: var(--bs-primary); }
.step-item.step-done .step-icon { color: var(--bs-success); }
.step-item.step-error .step-icon { color: var(--bs-danger); }

/* Truncated text */
.text-truncate-multi {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Search filter */
.search-filter {
    max-width: 350px;
}

/* Responsive fixes */
@media (max-width: 991.98px) {
    .sidebar {
        display: none;
    }
}
