/**
 * Lina CRM - Tabler UI Integration
 */

/* Sidebar customization */
.navbar-vertical {
    background: var(--tblr-dark);
    border-right: 1px solid rgba(98, 105, 118, 0.16);
}

.navbar-vertical .navbar-brand {
    font-size: 1.25rem;
    padding: 1rem;
}

/* Content area adjustments */
.page-wrapper {
    min-height: 100vh;
}

.page-body {
    margin-top: 1.5rem;
}

/* Card customization */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Form elements */
.form-control:focus {
    box-shadow: none;
    border-color: var(--tblr-primary);
}

/* Table customization */
.table thead th {
    background: rgba(98, 105, 118, 0.16);
    font-weight: 600;
}

/* Button improvements */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn i {
    font-size: 1.1em;
}

/* Status badges */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50rem;
}

/* Avatar customization */
.avatar {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--tblr-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Dark mode specific */
.theme-dark {
    --tblr-body-bg: #1a1d21;
    --tblr-card-bg: #242931;
}

.theme-dark .navbar-vertical {
    background: #242931;
}

.theme-dark .table thead th {
    background: rgba(255, 255, 255, 0.05);
}

/* Select2 customization */
.select2-container--bootstrap-5 .select2-selection {
    border-color: var(--tblr-border-color);
    background-color: var(--tblr-bg-forms);
    color: var(--tblr-body-color);
}

.theme-dark .select2-container--bootstrap-5 .select2-selection {
    background-color: var(--tblr-dark);
    border-color: var(--tblr-border-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-vertical {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1030;
        width: 100%;
        max-width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .navbar-vertical.show {
        transform: translateX(0);
    }
}

/* Print styles */
@media print {
    .navbar-vertical,
    .navbar-expand-md {
        display: none !important;
    }

    .page-wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }
}
