body {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    width: 250px;
    margin-left: -250px;
    transition: margin .25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    border-bottom: 1px solid #4f5b69;
}

#sidebar-wrapper .list-group {
    width: 250px;
}

#sidebar-wrapper .list-group-item {
    border: none;
    padding: 1rem 1.25rem;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: #4f5b69 !important;
}

#page-content-wrapper {
    min-width: 100vw;
    background-color: #f4f7f6;
    /* Subtle pattern from heropatterns.com */
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

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

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -250px;
    }
}

/* Dashboard Specific Styles */
.welcome-card {
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    border: none;
}

.stat-card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s;
}

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

.stat-card .icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.chart-placeholder {
    height: 300px;
    width: 100%;
}

.card-header {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Timeline */
.timeline {
    list-style: none;
    padding: 20px 0 20px;
    position: relative;
}

.timeline:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: #eeeeee;
    left: 25px;
    margin-right: -1.5px;
}

.timeline-item {
    margin-bottom: 20px;
    position: relative;
}

.timeline-item:before,
.timeline-item:after {
    content: " ";
    display: table;
}

.timeline-item:after {
    clear: both;
}

.timeline-badge {
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.4em;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    margin-right: -25px;
    background-color: #999999;
    z-index: 100;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-badge.primary { background-color: #0d6efd !important; }
.timeline-badge.success { background-color: #198754 !important; }
.timeline-badge.warning { background-color: #ffc107 !important; }
.timeline-badge.danger { background-color: #dc3545 !important; }
.timeline-badge.info { background-color: #0dcaf0 !important; }

.timeline-panel {
    width: calc(100% - 75px);
    float: right;
    border: 1px solid #d4d4d4;
    border-radius: 2px;
    padding: 20px;
    position: relative;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.timeline-panel:before {
    position: absolute;
    top: 26px;
    left: -15px;
    display: inline-block;
    border-top: 15px solid transparent;
    border-right: 15px solid #ccc;
    border-left: 0 solid #ccc;
    border-bottom: 15px solid transparent;
    content: " ";
}

.timeline-panel:after {
    position: absolute;
    top: 27px;
    left: -14px;
    display: inline-block;
    border-top: 14px solid transparent;
    border-right: 14px solid #fff;
    border-left: 0 solid #fff;
    border-bottom: 14px solid transparent;
    content: " ";
}

.timeline-title {
    margin-top: 0;
    color: inherit;
    font-size: 1.1rem;
    font-weight: bold;
}

.timeline-body > p,
.timeline-body > ul {
    margin-bottom: 0;
}
/* General Table & UI Refinements */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
}

.table .avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.table .avatar-circle span {
    font-size: 0.9rem;
}

.badge.bg-opacity-10 {
    --bs-bg-opacity: .1;
    font-weight: 500;
    padding-top: 0.4em;
    padding-bottom: 0.4em;
}

.setting-card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#settings-tabs .list-group-item.active {
    background-color: #4b6cb7;
    border-color: #4b6cb7;
}

/* Animation & Refined Details */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#sidebar-wrapper .list-group-item.active {
    background-color: #000 !important;
    color: #fff !important;
    border-left: 4px solid #4b6cb7;
}

/* Richer UI Details */
.card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

#sidebar-wrapper .list-group-item.active {
    background-image: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    border-left: 4px solid #8e9eab;
    color: #fff !important;
}