/*
================================================================================
| CUSTOM ADMINLTE THEME - ROYAL PURPLE
================================================================================
*/

body {
    font-family: 'Source Sans Pro', 'Poppins', sans-serif;
}

.content-wrapper {
    background-color: #f8f9fa;
}

/* --- Purple Links --- */
a {
    color: #6f42c1;
}

a:hover {
    color: #5a32a3;
}

.card-primary.card-outline {
    border-top: 3px solid #6f42c1;
}

/* --- Sidebar Theme (Deep Purple Black) --- */

body .main-sidebar .nav-sidebar .nav-link {
    transition: all 0.2s ease-in-out;
    border-left: 3px solid transparent !important;
}

/* Sidebar Headers */
.nav-header {
    color: #6f42c1 !important;
    font-weight: bold;
    opacity: 0.9;
}

/* Active PARENT Menu Item */
body .main-sidebar .nav-sidebar>.nav-item.menu-open>.nav-link,
body .main-sidebar .nav-sidebar>.nav-item>.nav-link.active {
    background-color: transparent !important;
    color: #ffffff !important;
    border-left: 3px solid #6f42c1 !important;
}

.nav-treeview .nav-icon {
    display: none !important;
}

.nav-treeview .nav-link::before {
    content: '»';
    margin-right: 0.75rem;
    color: #8aa4af;
}

/* Active SUBMENU Item */
.nav-treeview>.nav-item>.nav-link.active {
    background-color: #2d2633 !important;
    color: #ae7dff !important;
    font-weight: bold;
}

body .main-sidebar .nav-sidebar .nav-link:hover {
    background-color: #2d2633 !important;
}

/* --- Header & UI --- */
.main-header {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.card {
    border: none;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    border-radius: 0.35rem;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.card-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.btn {
    border-radius: 0.35rem;
    box-shadow: none !important;
    font-weight: 600;
    transition: all 0.15s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.btn-primary:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #6f42c1;
    box-shadow: 0 0 0 2px rgba(111, 66, 193, 0.25) !important;
}

.table thead.thead-light th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom-width: 1px;
}

.table-hover tbody tr:hover {
    background-color: rgba(111, 66, 193, 0.075);
}

.page-item.active .page-link {
    background-color: #6f42c1;
    border-color: #6f42c1;
}

/* Select2 */
.select2-dropdown {
    border: 1px solid #6f42c1;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 2px rgba(111, 66, 193, 0.25) !important;
}

.select2-results__option--highlighted {
    background-color: #6f42c1 !important;
}

/* Brand */
.brand-link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #4b545c;
}

.brand-link .brand-image {
    float: none !important;
    margin: 0 0 0.25rem 0 !important;
    max-height: 40px;
    width: auto;
}

.brand-link .brand-text {
    max-width: none !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    font-size: 1rem;
    margin: 0 !important;
    display: block;
}

.sidebar-collapse .brand-link {
    flex-direction: row;
    padding: 0.8125rem;
}

.sidebar-collapse .brand-link .brand-text {
    display: none !important;
}

.sidebar-collapse .brand-link .brand-image {
    margin-bottom: 0;
    max-height: 33px;
}

.navbar .nav-item .font-weight-bold {
    max-width: 250px;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}