/* main.css */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css');
@import url('https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css');

/* Your custom overrides below */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

.topbar>div{
    margin-bottom: 25px;
}
.row.chartsblock>div {
    margin-bottom: 25px;
}
.bottomblock>div{
    margin-bottom: 25px;
}
.modbtns{
    padding: 5px;
}
.modbtns>svg{
    width: 16px;
}
.text-right{
    text-align: right;
}
.bg-kunlikish{
    background-color: rgba(255, 181, 71, 0.1); 
    color: var(--warning-color);
}
.bg-service{
    background-color: rgba(57, 101, 255, 0.1); 
    color: var(--info-color);
}
.bg-vacancy{
    background-color: rgba(67, 24, 255, 0.1); 
    color: var(--primary-purple);
}
.breadcrumb{
    background: transparent;
    margin: 0;
}
:root {
    --primary-purple: #4318FF;
    --secondary-purple: #7551FF;
    --background-gray: #F4F7FE;
    --card-background: #FFFFFF;
    --text-primary: #1B2559;
    --text-secondary: #A3AED0;
    --border-color: #E0E5F2;
    --success-color: #01B574;
    --danger-color: #EE5D50;
    --warning-color: #FFB547;
    --info-color: #3965FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--background-gray);
    color: var(--text-primary);
    font-size: 0.8rem;
}

.wrapper {
    display: flex;
}

.sidebar {
    width: 280px;
    background: var(--card-background);
    height: 100vh;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    padding: 0;
    padding-bottom: 20px;
    margin: 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-content{
    background: white;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
    margin: 10px;
}
.sidebar-link i, .sidebar-link svg, a.sidebar-link i, a.sidebar-link svg {
    color: var(--text-primary);
}

.sidebar-nav li a:hover {
    background-color: var(--background-gray);
    color: #4b5486;
}
.sidebar-nav li a:hover i {
    color: #4b5486;
}
.sidebar-link {
    color: var(--text-primary);
}
.active>.sidebar-link {
    background-color: var(--primary-purple) !important;
}

.sidebar-nav li.active a svg {
    stroke: white;
}

.sidebar-nav li a svg {
    margin-right: 15px;
    stroke: var(--text-primary);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.top-bar .breadcrumb h1 {
    font-size: 2rem;
    font-weight: 700;
}

.top-bar .breadcrumb p {
    color: var(--text-secondary);
}

.top-bar .actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--card-background);
    padding: 8px 15px;
    border-radius: 20px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
}

.actions .icon-btn {
    background: var(--card-background);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.card {
    background: var(--card-background);
    border-radius: 20px;
    border: none;
    box-shadow: 0px 18px 40px rgba(112, 144, 176, 0.12);
    padding: 20px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.topbar .card{

    height: 100%;
}

.card-header {
    background: none;
    border: none;
    padding: 0 0 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.card-body {
    flex-grow: 1;
    padding: 0
}

.card-footer {
    background: none;
    border: none;
    padding-top: 15px;
}

.card-wide {
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
}

.stat-card {
    padding: 25px 0;
    text-align: center;
}

.stat-card .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--background-gray);
    margin: 0 auto 10px;
}

.stat-card .icon-box svg {
    stroke: var(--primary-purple);
}

.stat-card .stat-title {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 7px;
    transition: all .5s;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    transition: all .5s;
    margin-bottom: 0;
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table th,
.table td {
    border: none;
    vertical-align: middle;
    white-space: nowrap;
}

.table thead th {
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom-color: transparent !important;
}

.table-simple td {}

.table-simple tr:last-child td {
    border-bottom: none;
}

.btn-outline-primary {
    color: var(--primary-purple);
    border-color: var(--primary-purple);
    font-weight: 700;
}

.btn-outline-primary:hover {
    background-color: var(--primary-purple);
    color: white;
}

.datepickerchart {
    border-radius: 20px;
    width: 240px;
    background: #f3f5fb;
    border-color: transparent;
}
.actions>.col-7>h1.h3.mb-3 {
    font-size: 2rem;
    font-weight: 700;
}
p.badge.text-dark.fs-6.fw-semibold.rounded-pill {
    font-size: .75em !important;
}
.sidebar-brand:hover{
    color: #4b5486;


}
.flatpickr-input{
    width: 200px;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 2;
    background-color: #0000000a !important;
    font-size: 13px;
}
.col-title{
    white-space: normal !important;
    min-width: 210px;
}
.settings-panel {
    box-shadow: -19px 0 100px 0 rgba(0, 0, 0, .1);
}
.form-control,.select2-selection[aria-expanded=false] {
    line-height: 1;
    border-radius: 15px !important;
    background: #ffffff94;
}
#description, #descriptionUz, #descriptionRu{
    min-height: calc(8.5em + (.75rem + 2px));
}
a{
    text-decoration: auto;
    color: #3F51B5;
}
.stat-card-little{
    font-weight: 800;
    margin: 0;
    opacity: 0;
    height: 0;
    transition: all .5s;
}
.stat-card-little span{
    font-weight: 100;
}
.stat-card:hover .stat-card-little{
    opacity: 1;
}
.stat-card:hover .stat-value, .stat-card:hover .stat-title{
    opacity: 0.3;
    filter: blur(7px);
}
.online-users-count{
    position:absolute;color: green;right: 20px;top: 10px;font-family: sans-serif;
}

nav.navbar.navbar-expand.navbar-light.bg-white {
    border: 0;
    background-color: transparent !important;
    padding: 41px;
    padding-bottom: 0;
}

.nav-icon {
    color: #3d50b0;
}

.dropdown-menu.dropdown-menu-right.show {
    border-radius: 18px;
    box-shadow: rgba(0, 0, 0, 0.14) 0px 6px 40px;
    border: 0px;
}
.navbar form>input{
    border: 0;
    background: white;
    padding: 18px;
    border-radius: 50px !important;
    margin-left: 16px;
}
.nav-item .indicator{
    background: var(--bs-indigo);
}
.pagination>span {
    border: 0;
    margin: 4px;
    padding: 0;
    background: transparent;
}
.pagination>span.current {
    padding: 0 15px;
    border-radius: 10px;
}
.pagination>span>a {
    background: #00000008;
    border-radius: 10px;
    padding: 10px 15px;
}
.table-action a {
    margin-left: 6px !important;
    text-decoration: none;
    color: #3F51B5;
}
footer.footer {
    position: relative;
    border: 0;
}

.userview-page-picker {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.userview-page-picker a {
    background: var(--primary-purple);
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    padding: 10px 60px;
}