/* Custom CSS for MELI Analytics */

body {
    font-size: .875rem;
    background-color: #f8f9fa;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

/* Navbar adjustments */
.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
}

/* Card adjustments */
.card {
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

/* Table adjustments */
.table td,
.table th {
    vertical-align: middle;
}


.badge {
    font-weight: 500;
}

/* Super Compact Table */
.table-super-compact {
    font-size: 0.7rem !important;
}

.table-super-compact th,
.table-super-compact td {
    padding: 2px 4px !important;
    vertical-align: middle;
    line-height: 1.1;
}

.table-super-compact .btn-sm {
    padding: 0.1rem 0.3rem;
    font-size: 0.65rem;
}

/* Sidebar Layout */
#wrapper {
    overflow-x: hidden;
    display: flex;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    transition: margin 0.25s ease-out;
    width: 15rem;
    width: 15rem;
    background-color: #1a237e;
    /* Deep Royal Blue */
    color: white;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#page-content-wrapper {
    width: 100%;
    transition: all 0.25s ease-out;
}

body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
    margin-left: 0;
}

/* Sidebar Links */
.sidebar-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    text-decoration: none;
}

.sidebar-link i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

/* Collapsible Submenus */
.sidebar-submenu {
    font-size: 0.9em;
    background-color: rgba(0, 0, 0, 0.1);
}

.sidebar-submenu .sidebar-link {
    padding-left: 3rem;
}

/* Toggle State for "Icons Only" Mode (Desktop) 
   We will use a different class for desktop toggle vs mobile toggle 
*/

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
        width: 15rem;
        /* Default width */
        transition: width 0.25s ease, margin 0.25s ease;
        overflow-y: auto;
        overflow-x: hidden;
        flex-shrink: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
        margin-left: 0;
        transition: margin-left 0.25s ease, width 0.25s ease;
    }

    /* Collapsed State */
    body.sb-sidenav-collapsed #sidebar-wrapper {
        width: 4rem;
    }

    body.sb-sidenav-collapsed #sidebar-wrapper .sidebar-text,
    body.sb-sidenav-collapsed #sidebar-wrapper .sidebar-heading span,
    body.sb-sidenav-collapsed #sidebar-wrapper .dropdown-toggle::after {
        display: none;
    }

    body.sb-sidenav-collapsed #sidebar-wrapper .sidebar-link i {
        margin-right: 0;
    }

    body.sb-sidenav-collapsed #sidebar-wrapper .sidebar-heading {
        display: flex;
        justify-content: center;
    }

    body.sb-sidenav-collapsed .collapse.show {
        display: none;
    }
}