/* 

Dashboard Template 
http://www.templatemo.com/preview/templatemo_415_dashboard

    1. CSS Imports
    2. General Styles
    3. Sidebar
    4. Charts
    5. Preferences form
    6. Sign in form
    7. tables.html
    8. Bootstrap overrides
    9. Maps
    10. Media Queries
	
--------------------------------------- */

/* 1. CSS Imports
--------------------------------------- */
@import url('http://fonts.googleapis.com/css?family=Open Sans:300,400,700');
@import url(font-awesome.min.css);
@import url(bootstrap.min.css);

/* 2. General Styles
--------------------------------------- */
* { font-family: 'Open Sans', sans-serif; }
html, body { 
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}
body { 
    background-color: rgb(235,235,235);
    min-height: 100vh;
}
h1 { font-size: 24px; }
.btn a {
    color: white;
    text-decoration: none;
}
.logo { 
    display: inline-block;
    order: -1;
}
.logo h1 {
    font-size: 24px;
    margin: 0;
    line-height: 60px;
    padding: 0;
}
.template-page-wrapper {
    display: flex;
    width: 100%;
    max-width: 100vw;
    min-height: calc(100vh - 60px);
    position: relative;
    overflow: visible;
    align-items: flex-start;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.templatemo-content-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    transition: margin-left .3s ease;
    display: block;
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.templatemo-content {
    margin: 0;
    padding: 0;
    background-color: white !important;
    overflow-x: auto;
    overflow-y: visible;
    transition: width .3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 60px);
}

.templatemo-content h1 {
    margin: 0;
    padding: 10px 15px;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.templatemo-content .breadcrumb {
    margin: 0;
    padding: 5px 15px;
    background: transparent;
    border-bottom: 1px solid #e0e0e0;
}

.templatemo-content .templatemo-panels {
    margin: 0;
    padding: 10px 15px;
}

.templatemo-content form {
    max-width: 100%;
}

.templatemo-content label {
    display: block;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.templatemo-content .form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.5;
    height: auto;
    min-height: 42px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.templatemo-content .form-control:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.templatemo-content .margin-bottom-15 {
    margin-bottom: 15px;
}

.templatemo-content .btn {
    margin-right: 10px;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Filter Actions Buttons */
.filter-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem;
}

.filter-actions .btn {
    min-width: 135px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem 1.4rem;
    margin-right: 0;
    transition: all 0.3s ease;
}

.filter-actions .btn i {
    font-size: .9rem;
}

.btn-search {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(49, 130, 206, .35);
}

.btn-search:hover {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    box-shadow: 0 8px 22px rgba(49, 130, 206, .45);
    transform: translateY(-1px);
}

.btn-reset {
    background: #fff;
    color: #4a5568;
    border: 1px solid #cbd5f5;
}

.btn-reset:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

.btn-export {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(72, 187, 120, .35);
}

.btn-export:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    box-shadow: 0 8px 22px rgba(72, 187, 120, .45);
    transform: translateY(-1px);
}

.templatemo-content .btn-success {
    background-color: #4caf50;
    border-color: #4caf50;
}

.templatemo-content .btn-success:hover {
    background-color: #45a049;
    border-color: #45a049;
}

.templatemo-content .btn-danger {
    background-color: #f44336;
    border-color: #f44336;
}

.templatemo-content .btn-danger:hover {
    background-color: #da190b;
    border-color: #da190b;
}
.templatemo-footer {
    clear: both;
    font-size: 13px;
    padding: 20px 0;
    text-align: center;
    color: #718096;
    background: #1a202c;
    margin: 0;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-sizing: border-box;
    transition: width .3s ease;
    display: block;
}
.templatemo-footer:before,
.templatemo-footer:after {
    content: "";
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    opacity: .1;
    pointer-events: none;
}
.templatemo-footer:before {
    left: 0;
    background: linear-gradient(135deg, #4fd1c5, transparent);
}
.templatemo-footer:after {
    right: 0;
    background: linear-gradient(225deg, #63b3ed, transparent);
}
.templatemo-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .5px;
}
.templatemo-footer span i {
    color: #63b3ed;
}
.margin-bottom-15 { margin-bottom: 15px; }
.margin-bottom-30 { margin-bottom: 30px; }

/* 3. Sidebar
------------------------------------------------------*/
#templatemo_search_box {
    width: 150px;
    display: inline-block;
}
.navbar {
    margin-bottom: 0;
    border-radius: 0;
    background-color: #2d3e50 !important;
    border: none;
    position: relative;
    z-index: 1000;
    min-height: 60px;
    height: 60px;
}

.navbar-inverse {
    background-color: #2d3e50 !important;
    border-color: #2d3e50 !important;
}

.navbar-inverse .navbar-header {
    color: #fff !important;
}

.navbar-inverse .logo h1 {
    color: #fff !important;
}

.navbar-header { 
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 0 15px;
    min-height: 60px;
    height: 60px;
    gap: 15px;
}
.templatemo-sidebar {
    padding: 0;
    margin-top: 0;
    display: block !important;
    background: #2d3e50 !important;
    min-height: calc(100vh - 60px);
    height: calc(100vh - 60px);
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    transition: width .3s ease, min-width .3s ease, max-width .3s ease, opacity .2s ease, padding .3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    order: -1;
}

.templatemo-sidebar.navbar-collapse.collapse {
    display: block !important;
}

body.sidebar-collapsed .templatemo-sidebar.navbar-collapse.collapse {
    visibility: visible;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    padding: 0 !important;
}

.sidebar-toggle-btn {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .25rem .5rem;
    cursor: pointer;
    order: 0;
    margin-left: 10px;
}

.sidebar-toggle-btn:focus {
    outline: none;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: opacity .2s ease;
}

body.sidebar-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

body.sidebar-collapsed .templatemo-sidebar {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    padding: 0 !important;
    opacity: 1;
    overflow: visible;
    visibility: visible;
}

body.sidebar-collapsed .templatemo-content {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
}

body.sidebar-collapsed .templatemo-sidebar .templatemo-sidebar-menu {
    padding: 16px 8px;
}

body.sidebar-collapsed .templatemo-footer {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.sidebar-collapsed .templatemo-content-wrapper {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
}
.templatemo-sidebar .templatemo-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 16px 12px;
    overflow: hidden;
    background: transparent;
}
.templatemo-sidebar .templatemo-sidebar-menu > li {
    display: block;
    margin: 0 0 6px 0;
    padding: 0;
    border: 0px;
    width: 100%;
    box-sizing: border-box;
}
.templatemo-sidebar .templatemo-sidebar-menu > li:last-child {
    margin-bottom: 0;
}
.templatemo-sidebar .templatemo-sidebar-menu > li > a {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0;
    border: 0px;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: 8px;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    width: 100%;
    color: #e2e8f0;
    background: transparent;
}

body.sidebar-collapsed .templatemo-sidebar .templatemo-sidebar-menu > li > a {
    padding: 14px;
    justify-content: center;
}

body.sidebar-collapsed .templatemo-sidebar .templatemo-sidebar-menu > li > a > i {
    margin-right: 0;
}

body.sidebar-collapsed .templatemo-sidebar .templatemo-sidebar-menu > li > a {
    font-size: 0;
}

body.sidebar-collapsed .templatemo-sidebar .templatemo-sidebar-menu > li > a > i {
    font-size: 18px;
    margin-right: 0;
}
.templatemo-sidebar-menu a:hover {
    text-decoration: none;
}
.templatemo-sidebar-menu li.sub .templatemo-submenu {
    display: none;
}
.templatemo-sidebar-menu li.sub.open .templatemo-submenu {
    display: block;
}
.templatemo-submenu {
    padding-left: 0;
    margin-top: 4px;
}
.templatemo-submenu li {
    list-style: none;
    background-color: rgba(0, 0, 0, 0.15);
    margin-bottom: 2px;
    border-radius: 6px;
}
.templatemo-submenu li a {
    display: block;
    padding: 12px 16px 12px 48px;
    margin: 0;
    color: #cbd5e0;
    font-size: 13px;
    border-radius: 6px;
    transition: all .2s ease;
}
.templatemo-sidebar-menu > li.sub.open > a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.templatemo-sidebar .templatemo-sidebar-menu > li.active > a,
.templatemo-sidebar .templatemo-sidebar-menu > li > a:hover {
    background-color: rgba(76, 175, 80, 0.2);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.templatemo-sidebar .templatemo-sidebar-menu > li.active > a {
    background-color: rgba(76, 175, 80, 0.25);
    border-left: 3px solid #4caf50;
    font-weight: 500;
}
.templatemo-submenu li > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.templatemo-sidebar .templatemo-sidebar-menu > li > a > i {
    font-size: 18px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    min-width: 24px;
    text-align: center;
    color: #94a3b8;
    transition: color .2s ease;
}
.templatemo-sidebar .templatemo-sidebar-menu > li.active > a > i,
.templatemo-sidebar .templatemo-sidebar-menu > li > a:hover > i {
    color: #4caf50;
}

/* 4. Charts 
--------------------------------------------*/
.templatemo-chart-box {
    display: inline-block;
    text-align: center;
    padding: 20px 30px 30px 0;
}

/* 5. Preferences Form
------------------------------------------*/
#templatemo-preferences-form {
    max-width: 960px;
    margin-bottom: 30px;
}

/* 6. Sign in Form 
--------------------------------------------*/
.templatemo-signin-form {
    padding-top: 50px;
    max-width: 600px;
    margin: 0 auto;
}
.form-horizontal .form-group {
    margin-right: 0;
    margin-left: 0;
}

/* 7. tables.html
------------------------------------------*/
#templatemo_sort_btn { margin-bottom: 20px; }

/* 8. Bootstrap overrides
----------------------------------------------*/
.nav-pills>li>a, .nav-tabs>li>a, .alert, .progress, .panel, .btn, .panel-group .panel, .form-control, .modal-content, .breadcrumb {
    border-radius: 0;
}
.list-group-item:first-child, .panel-heading {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.list-group-item:last-child {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.form-control-feedback { right: 15px; }

/* Dropdown menu fix */
.dropdown-menu {
    z-index: 1050 !important;
    position: absolute !important;
}

select.form-control {
    position: relative;
    z-index: 1;
}

select.form-control:focus {
    z-index: 2;
}

select.form-control option {
    z-index: 1;
}

/* 9. Maps
------------------------------------------------------*/
.jqvmap-zoomin, .jqvmap-zoomout {
    width: 15px;
    height: 15px;
}
.vmap { height: 400px; }

/* 10. Media Queries
------------------------------------------------------*/
@media screen and (min-width: 992px) {
    .templatemo-sidebar {
        width: 250px;
        min-width: 250px;
        max-width: 250px;
        flex-shrink: 0;
        z-index: 1;
    }
    body.sidebar-collapsed .templatemo-sidebar {
        width: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
        z-index: 1;
    }
    .templatemo-content {
        margin: 0;
        width: 100%;
        max-width: 100%;
        z-index: 2;
        position: relative;
    }
    body.sidebar-collapsed .templatemo-content {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 2;
    }
    body.sidebar-collapsed .templatemo-content-wrapper {
        flex: 1 1 100% !important;
        z-index: 2;
        width: 100% !important;
        margin-left: 0 !important;
    }
    .templatemo-footer {
        margin: 0;
        width: 100%;
        max-width: 100%;
        z-index: 2;
        position: relative;
        box-sizing: border-box;
    }
    body.sidebar-collapsed .templatemo-footer {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}
@media screen and (max-width: 991px) {
    .navbar-form {
        padding: 0;
        margin-left: 0;
    }
    .navbar-header { float: none; }
    .navbar-toggle { display: none; }
    .templatemo-sidebar {
        border-top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 250px !important;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        position: fixed;
        top: 60px;
        left: 0;
        height: calc(100% - 60px);
        z-index: 1000;
        background: #2d3e50 !important;
        transform: translateX(-100%);
        transition: transform .3s ease;
    }
    .templatemo-sidebar .templatemo-sidebar-menu {
        padding: 12px;
    }
    .templatemo-sidebar.navbar-collapse.collapse {
        display: block !important;
        transform: translateX(-100%);
        transition: transform .3s ease;
        visibility: visible !important;
    }
    .templatemo-sidebar.navbar-collapse.in,
    body.sidebar-open .templatemo-sidebar {
        transform: translateX(0) !important;
        visibility: visible !important;
    }
    body.sidebar-collapsed:not(.sidebar-open) .templatemo-sidebar {
        transform: translateX(-100%) !important;
    }
    body.sidebar-collapsed:not(.sidebar-open) .templatemo-sidebar.navbar-collapse.collapse {
        transform: translateX(-100%) !important;
        visibility: visible !important;
    }
    body.sidebar-open {
        overflow: hidden;
    }
    .templatemo-content-wrapper { 
        float: none; 
        margin-left: 0 !important;
        width: 100%;
        z-index: 1;
        position: relative;
    }
    .templatemo-content {
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px;
        min-height: auto;
        background-color: white !important;
        z-index: 1;
        position: relative;
    }
    .templatemo-footer {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body > .templatemo-footer {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .templatemo-content h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    .templatemo-content .form-control {
        padding: 10px 12px;
        font-size: 14px;
        line-height: 1.5;
        min-height: 40px;
    }
    .templatemo-content .btn {
        padding: 8px 16px;
        font-size: 13px;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
}
@media screen and (max-width: 767px) {
    .templatemo-chart-box {
        padding-right: 0;
    }
    .templatemo-content {
        padding: 10px !important;
        background-color: white !important;
    }
    .templatemo-content h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    .templatemo-content .breadcrumb {
        font-size: 12px;
        padding: 8px 0;
    }
    .templatemo-content label {
        font-size: 13px;
        margin-top: 12px;
    }
    .templatemo-content .form-control {
        padding: 10px 12px;
        font-size: 14px;
        line-height: 1.5;
        min-height: 40px;
    }
    .templatemo-content .btn {
        padding: 10px 16px;
        font-size: 14px;
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    .templatemo-footer {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body > .templatemo-footer {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .dashboard-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .insight-row {
        flex-direction: column;
    }
    .insight-row .insight-card {
        min-width: 100%;
    }
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
