/* Main color scheme */
:root {
    --primary-color: #20498B; /* Dark blue for sidebar */
    --primary-light: #eef3fa; /* Light blue for header background */
    --accent-color: rgba(0, 163, 255, 0.86); /* Blue for charts and highlights */
    --accent-light: #E8F6F9; /* light shade */
    --accent-bar: #E8F6F9; /* light shade */
    --primary-active: #3498db; /* light shade */
    --top-bar: #E8F6F9; /* Topbar section */
    /*--primary-active: #6AA9F0; !* light shade *!*/
    --text-dark: #20498B; /* Dark text color */
    --text-light: #ffffff; /* Light text color */
    --border-color: #e2e8f0; /* Light border color */
    --green-accent: #4cd137; /* Green for positive indicators */
    --primary-dark: #20498B; /* Dark blue (sidebar) */
    /*--primary-light: #eef3fa;    !* Light blue header *!*/
    --accent-blue: #00a3ff; /* Bright blue for charts and buttons */
    --accent-green: #4cd137; /* Green for indicators */
    /*--text-dark: #333333;        !* Dark text *!*/
    --text-muted: #6c757d; /* Muted text */
    --border-light: #e2e8f0; /* Light borders */
    --bg-light: #f8f9fa; /* Light background */
    --active-dropdown-item:#1F66D6; /* Active dropdown */
    --active-drower:#C0E3FD;
    --drower-text:#182C53; /* Dark text */
    --drower-text-hover:#6C6C6C; /* Dark text */
}


body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: #f8f9fa;
}

/* sidebar-toggle menu styles */
.sidebar-toggle-menu {
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    z-index: 100;
}

/* The middle line of the sidebar-toggle */
.sidebar-toggle-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
    top: 13px; /* Center the middle line */
}

/* The top and bottom lines using pseudo-elements */
.sidebar-toggle-menu span::before,
.sidebar-toggle-menu span::after {
    content: '';
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color) !important;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

/* Position the lines */
.sidebar-toggle-menu span::before {
    top: -10px;
    /*
   }

   .sidebar-toggle-menu span::after {
       top: 10px; /* 10px below the middle line */
}

/* Menu open state - create an X */
.sidebar-toggle-menu.open span {
    background: transparent; /* Hide the middle line */
}

.sidebar-toggle-menu.open span::before {
    top: 0;
    transform: rotate(45deg);
}

.sidebar-toggle-menu.open span::after {
    top: 0;
    transform: rotate(-45deg);
}


.text-white {
    color: white !important;
}

.bg-bar {
    /*background: var(--accent-bar);*/
}


/*full override*/

[class*="active"] {
    background: none !important;
}


/* Navbar styling */
.navbar {
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    height: 40px;
}

/* Sidebar styling */
.sidebar {
    background-color: var(--primary-color);
    color: var(--text-light);
    min-height: 100vh;
    padding: 0;
}

.sidebar .nav-link {
    color: var(--text-light);
    padding: 12px 20px;
    border-left: 4px solid transparent;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-color);
}

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

/* Card styling */
.card, .panel {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.card-header, .panel-heading {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    font-weight: 600;
}

/* Dashboard stats cards */
.stat-card {
    padding: 20px;
    position: relative;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    color: #718096;
    font-size: 14px;
}

.stat-change {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background-color: rgba(76, 209, 55, 0.1);
    color: var(--green-accent);
}

/* Chart containers */
.chart-container {
    padding: 15px;
    height: 300px;
}

/* Custom button styling */
.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #0088d6;
    border-color: #0088d6;
}

/* Calendar styling */
.calendar-container {
    background-color: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.calendar-day {
    text-align: center;
    padding: 10px;
    border-radius: 4px;
}

.calendar-day.today {
    background-color: var(--accent-color);
    color: white;
}

/* Announcement section */
.announcement {
    background-color: #e6f7ff;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--accent-color);
}

/* Table styling */
.table thead th {
    background-color: var(--primary-light);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Custom chart colors */
/*.chart-blue {*/
/*    fill: var(--accent-color);*/
/*    stroke: var(--accent-color);*/
/*}*/

/*.chart-secondary {*/
/*    fill: #6c757d;*/
/*    stroke: #6c757d;*/
/*}*/

/* Progress bars */
.progress {
    height: 8px;
    border-radius: 4px;
}

.progress-bar {
    background-color: var(--accent-color);
}

/* Badges and tags */
.badge-primary {
    background-color: var(--accent-color);
}

.badge-success {
    background-color: var(--green-accent);
}

/* Form controls */
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 163, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }

    .stat-value {
        font-size: 24px;
    }
}


/* Global Bootstrap overrides */
body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
}

/* Typography overrides */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-dark);
}

.text-primary {
    color: var(--primary-dark) !important;
}

.text-success {
    color: var(--accent-green) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Navbar overrides */
.navbar {
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
}

.navbar-default {
    background-color: var(--primary-light);
    border-color: var(--border-light);
}

.navbar-brand {
    color: var(--primary-dark) !important;
}

.navbar-default .navbar-nav > li > a {
    color: var(--primary-dark);
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: var(--primary-dark);
    background-color: rgba(26, 59, 117, 0.05);
}

/* Sidebar specific  */
.sidebar {
    background-color: var(--primary-dark);
    color: var(--text-light);
    min-height: 100vh;
}

.sidebar .nav > li > a {
    color: var(--text-light);
    padding: 12px 15px;
    border-left: 3px solid transparent;
}

.sidebar .nav > li > a:hover,
.sidebar .nav > li > a:focus,
.sidebar .nav > li.active > a {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-left: 3px solid var(--accent-blue);
}

.sidebar .nav > li > a > i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Buttons */
.btn-default {
    background-color: #fff;
    border-color: var(--border-light);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #0088d6 !important;
    border-color: #0088d6 !important;
}

.btn-success {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

/* Panels - heavily used in Bootstrap 3 */
.panel {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
}

.panel-default {
    border-color: var(--border-light);
}

.panel-default > .panel-heading {
    background-color: #fff;
    border-color: var(--border-light);
    color: var(--text-dark);
    font-weight: 600;
}

.panel-primary {
    border-color: var(--primary-dark);
}

.panel-primary > .panel-heading {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Tables */
.table > thead > tr > th {
    border-bottom: 2px solid var(--border-light);
    color: var(--text-dark);
    font-weight: 600;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover > tbody > tr:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Forms */
.form-control {
    border-color: var(--border-light);
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 163, 255, 0.25);
}

.input-group-addon {
    background-color: var(--primary-light);
    border-color: var(--border-light);
}

/* List groups */
.list-group-item {
    border-color: var(--border-light);
}

.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Badges */
.badge {
    background-color: var(--accent-blue);
}

.badge-success {
    background-color: var(--accent-green);
}

/* Progress bars */
.progress {
    background-color: var(--primary-light);
    height: 8px;
    border-radius: 4px;
}

.progress-bar {
    background-color: var(--accent-blue);
}

.progress-bar-success {
    background-color: var(--accent-green);
}

/* Alerts */
.alert-info {
    background-color: rgba(0, 163, 255, 0.1);
    border-color: rgba(0, 163, 255, 0.2);
    color: var(--primary-dark);
}

.alert-success {
    background-color: rgba(76, 209, 55, 0.1);
    border-color: rgba(76, 209, 55, 0.2);
    color: #2c7623;
}

/* Nav tabs */
.nav-tabs {
    border-bottom: 1px solid var(--border-light);
}

.nav-tabs > li > a {
    color: var(--text-muted);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border-color: var(--border-light) var(--border-light) transparent;
    color: var(--text-dark);
}

/* Dropdowns */
.dropdown-menu {
    border-color: var(--border-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-right: 2em;
    position: absolute;
}

.dropdown-menu > li > a {
    color: var(--text-dark);
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Pagination */
.pagination > li > a,
.pagination > li > span {
    color: var(--primary-dark);
    border-color: var(--border-light);
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Bootstrap wells */
.well {
    background-color: var(--primary-light);
    border-color: var(--border-light);
}

/* Calendar styling for the dashboard */
.calendar-day {
    text-align: center;
    padding: 8px;
    border-radius: 4px;
}

.calendar-day.active {
    background-color: var(--accent-blue);
    color: white;
}

.calendar-day.today {
    background-color: var(--primary-dark);
    color: white;
}

/* Dashboard stat cards */
.stat-card {
    padding: 15px;
    margin-bottom: 20px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.stat-change {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
    background-color: rgba(76, 209, 55, 0.1);
    color: var(--accent-green);
}

/* Chart colors */

.primary-dark {
    fill: var(--primary-dark);
}

.chart-secondary {
    fill: var(--primary-dark);
}

/* Announcements */
.announcement-box {
    background-color: #e6f3ff;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid var(--accent-blue);
}

/* Modal overrides */
.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border-light);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Tooltips and popovers */
.tooltip-inner {
    background-color: var(--primary-dark);
}

.tooltip.top .tooltip-arrow {
    border-top-color: var(--primary-dark);
}

.popover {
    border-color: var(--border-light);
}

.popover-title {
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border-light);
}

/* Card layouts (for dashboard widgets) */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.card-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    background-color: #fff;
    font-weight: 600;
}

.card-body {
    padding: 15px;
}

.card-footer {
    padding: 10px 15px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

/* Glyphicons colors */
.glyphicon-primary {
    color: var(--primary-dark);
}

.glyphicon-success {
    color: var(--accent-green);
}

.glyphicon-info {
    color: var(--accent-blue);
}

/* Custom search box */
.search-box {
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    padding-left: 30px;
}

.search-box-icon {
    position: absolute;
    left: 10px;
    top: 8px;
    color: var(--text-muted);
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }

    .stat-value {
        font-size: 24px;
    }
}


/* Additional Bootstrap 3 theme classes */

/* Custom background colors */
.bg-primary-dark {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.bg-primary-light {
    background-color: var(--primary-light);
    color: var(--text-dark);
}

.bg-accent {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

.bg-success {
    background-color: var(--accent-green);
    color: var(--text-light);
}

/* Custom text colors */
.text-accent {
    color: var(--accent-blue) !important;
}

/* Bordered cards and panels */
.panel-bordered {
    border-top: 3px solid var(--border-light);
}

.panel-bordered-primary {
    border-top: 3px solid var(--primary-dark);
}

.panel-bordered-accent {
    border-top: 3px solid var(--accent-blue);
}

.panel-bordered-success {
    border-top: 3px solid var(--accent-green);
}

/* Additional button styles */
.btn-accent {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--text-light);
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: #0088d6;
    border-color: #0088d6;
    color: var(--text-light);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.btn-outline-accent {
    background-color: transparent;
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline-accent:hover,
.btn-outline-accent:focus {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

/* Label variations */
.label-primary {
    background-color: var(--primary-dark);
}

.label-accent {
    background-color: var(--accent-blue);
}

.label-success {
    background-color: var(--accent-green);
}

.label-light {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Additional list group styles */
.list-group-item-primary {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.list-group-item-accent {
    background-color: rgba(0, 163, 255, 0.1);
    color: var(--accent-blue);
}

/* Border utilities */
.border-primary {
    border-color: var(--primary-dark) !important;
}

.border-accent {
    border-color: var(--accent-blue) !important;
}

.border-success {
    border-color: var(--accent-green) !important;
}

.border-light {
    border-color: var(--border-light) !important;
}

/* Additional alert styles */
.alert-accent {
    background-color: rgba(0, 163, 255, 0.1);
    border-color: rgba(0, 163, 255, 0.2);
    color: var(--accent-blue);
}

.alert-primary {
    background-color: rgba(26, 59, 117, 0.1);
    border-color: rgba(26, 59, 117, 0.2);
    color: var(--primary-dark);
}

/* Custom callouts (Bootstrap 3 docs style) */
.bs-callout {
    padding: 15px;
    margin: 20px 0;
    border-left-width: 5px;
    border-radius: 3px;
    border-left-style: solid;
}

.bs-callout-primary {
    border-left-color: var(--primary-dark);
    background-color: rgba(26, 59, 117, 0.05);
}

.bs-callout-accent {
    border-left-color: var(--accent-blue);
    background-color: rgba(0, 163, 255, 0.05);
}

.bs-callout-success {
    border-left-color: var(--accent-green);
    background-color: rgba(76, 209, 55, 0.05);
}

/* Additional jumbotron styling */
.jumbotron {
    background-color: var(--primary-light);
    border-radius: 8px;
}

.jumbotron-primary {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.jumbotron-accent {
    background-color: var(--accent-blue);
    color: var(--text-light);
}

/* Image styles */
.img-border {
    border: 1px solid var(--border-light);
    padding: 3px;
    border-radius: 4px;
}

/* Timeline component (common in dashboards) */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    width: 2px;
    background: var(--border-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    margin-left: 40px;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -38px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 3px solid var(--text-light);
}

.timeline-item-primary:before {
    background: var(--primary-dark);
}

.timeline-item-success:before {
    background: var(--accent-green);
}

/* Dashboard-specific widgets */
.widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
    position: relative;
}

.widget-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.widget-body {
    padding: 15px;
}

.widget-footer {
    padding: 10px 15px;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-light);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Activity indicators */
.activity-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.activity-active {
    background-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(76, 209, 55, 0.2);
}

.activity-idle {
    background-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.activity-offline {
    background-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* Additional pagination styles */
.pagination-sm > li > a {
    font-size: 12px;
    line-height: 1.5;
}

.pagination-lg > li > a {
    font-size: 18px;
    line-height: 1.33;
}

/* Tab variations */
.nav-tabs-primary > li.active > a,
.nav-tabs-primary > li.active > a:hover,
.nav-tabs-primary > li.active > a:focus {
    border-top: 2px solid var(--primary-dark);
}

.nav-tabs-accent > li.active > a,
.nav-tabs-accent > li.active > a:hover,
.nav-tabs-accent > li.active > a:focus {
    border-top: 2px solid var(--accent-blue);
}

/* Custom breadcrumb styling */
.breadcrumb {
    background-color: var(--primary-light);
}

/* Progress bar variations */
.progress-xs {
    height: 4px;
}

.progress-sm {
    height: 8px;
}

.progress-md {
    height: 12px;
}

.progress-lg {
    height: 20px;
}

/* File upload styling */
.custom-file-upload {
    border: 1px dashed var(--border-light);
    border-radius: 5px;
    display: inline-block;
    padding: 30px;
    cursor: pointer;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}

.custom-file-upload:hover {
    border-color: var(--accent-blue);
    background-color: rgba(0, 163, 255, 0.05);
}

/* Task list styling */
.task-list {
    padding-left: 0;
    list-style: none;
}

.task-list-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.task-list-item:last-child {
    border-bottom: none;
}

.task-checkbox {
    margin-right: 10px;
}

.task-completed {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Profile image styles */
.profile-img-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.profile-img-md {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.profile-img-lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
}

/* Social media buttons */
.btn-social {
    position: relative;
    padding-left: 44px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-social > :first-child {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 32px;
    line-height: 34px;
    font-size: 1.6em;
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

/* Hover effect for cards/panels */
.panel-hover:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

/* Rating stars */
.rating {
    unicode-bidi: bidi-override;
    direction: rtl;
    text-align: center;
}

.rating > span {
    display: inline-block;
    position: relative;
    width: 1.1em;
    font-size: 20px;
    color: #ffc107;
}

/* Print specific styles */
@media print {
    .no-print {
        display: none !important;
    }

    .sidebar {
        display: none !important;
    }

    .navbar {
        display: none !important;
    }

    body {
        padding: 0 !important;
        margin: 0 !important;
    }

    .container {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .page-break {
        page-break-before: always;
    }
}


/*dash specific css*/
/*
 * Dashboard CSS styles
 */

/* Main Dashboard Styles */
.dashboard-title {
    font-weight: 600;
    color: #34495e;
}

.card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1.5rem;
    border: none;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: 600;
    color: #34495e;
}

/* Stat Cards */
.card .text-success {
    color: #27ae60 !important;
}

.card .text-warning {
    color: #f39c12 !important;
}

.card .text-primary {
    color: #3498db !important;
}

.card .text-info {
    color: #16a085 !important;
}

.icon-stats {
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Progress Bar */
.progress {
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
}

/* Charts */
.chart-container {
    position: relative;
    min-height: 300px;
}

/* Calendar */
.calendar-container {
    margin-top: 1rem;
}

.calendar-container th,
.calendar-container td {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.calendar-container th {
    background-color: #f8f9fa;
    color: #6c757d;
    font-weight: 500;
}

/* Announcement Card */
.alert {
    /*border-radius: 8px;*/
    /*border-left: 4px solid #3498db;*/
    /*background-color: rgba(52, 152, 219, 0.05);*/
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .chart-container {
        min-height: 250px;
    }

    .calendar-container th,
    .calendar-container td {
        padding: 0.3rem;
        font-size: 0.8rem;
    }
}

/*pie chart*/
.pie_container {
    position: relative !important;
}

.pie_center_counter {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pie_footers {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em .9em;
    cursor: pointer;
    user-select: none;
}

.logo_side {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1em;
    padding: 1em 0;
}

.sidebar-form {
    margin: 1.1em .8em !important;
}

.left-controls > * {
    margin: 0;
    padding: 0;
}

.left-controls > ul {
    margin: 0;
    padding: 0;
}

.main-head > nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Main header styling */
.main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0;
    height: 50px;
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
    left: 0;
    background: var(--top-bar) !important;
}

/* Left controls section */
.left-controls {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.left-controls .navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.left-controls .navbar-nav li {
    display: flex;
    align-items: center;
}

/* Logo styling */
.navbar-brand img {
    height: 32px;
    margin-right: 10px;
}

/* Sidebar toggle button */
.sidebar-toggle {
    padding: 15px;
    color: #555;
    transition: color 0.3s ease;
}

.sidebar-toggle:hover {
    color: #000;
}

/* Right navbar section */
.navbar-static-top {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    background: transparent;
    border: none;
    margin: 0;
}

.navbar-static-top .navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
}

.navbar-static-top .navbar-nav > li {
    display: flex;
    align-items: center;
    padding: 0 5px;
}

/* Navigation arrows */
.nav-arrow, .nav-repeat {
    font-size: 18px;
    color: #555;
    cursor: pointer;
    padding: 0 10px;
}

.nav-arrow:hover, .nav-repeat:hover {
    color: #000;
}

/* Clock in section */
#clockin {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 14px;
}

#timer {
    font-weight: bold;
    margin-right: 10px;
}

/* User dropdown section */
/*.dropdown-toggle {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    padding: 15px !important;*/
/*}*/

/*.dropdown-toggle .user-image {*/
/*    height: 30px;*/
/*    width: 30px;*/
/*    border-radius: 50%;*/
/*    margin-right: 5px;*/
/*}*/

/*.dropdown-menu {*/
/*    width: 280px;*/
/*    padding: 0;*/
/*    border-radius: 3px;*/
/*    box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
/*}*/

.user-header {
    padding: 20px;
    text-align: center;
    background-color: #f5f5f5;
}

.user-header img {
    width: 80px;
    height: 80px;
}

.user-body {
    padding: 10px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.user-footer {
    display: flex;
    padding: 10px;
    background-color: #f9f9f9;
}

.term-selector {
    display: flex;
    align-items: center;
    background-color: #f0f7ff;
    padding: 5px 15px;
    border-radius: 4px;
    margin-right: 15px;
}

/* Right section with time and user info */
.user-info-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.time-display {
    font-size: 14px;
    color: #555;
}

.language-selector {
    margin-right: 10px;
}

/* School header styling */
.school-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background-color: #f8f9fa;
    height: 50px;
    width: 100%;
}

.school-logo {
    height: 35px;
    margin-right: 10px;
}

.school-name {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
}

/* Makale specific styles to match the image */
.bg-bar {
    background-color: white;
    border-bottom: 1px solid #e7e7e7;
}

.term-selector {
    background-color: #f0f7ff;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Language dropdown styling */
.language-dropdown {
    padding: 5px 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
}

/* Time display styling */
.time-display {
    color: #6c757d;
    font-weight: 500;
}

/* Make specific adjustments to match the image */
.school-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 15px;
}

.school-logo-container {
    display: flex;
    align-items: center;
}

/* Ensure proper spacing between elements */
.navbar-nav > li:not(:last-child) {
    margin-right: 5px;
}

/* Additional specific styles for the school header in the image */
.school-info {
    display: flex;
    align-items: center;
}

.school-logo {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 50%;
}

.school-name {
    font-weight: 600;
    color: #2c3e50;
}

/* Term selector as shown in the image */
.term-selector {
    display: flex;
    align-items: center;
    background-color: #f0f7ff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: auto;
    margin-right: 10px;
}

.time-display {
    margin-right: 10px;
    font-size: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
}

/* Additional navbar fixes */
.navbar-static-top {
    min-height: 50px;
    margin-bottom: 0;
}

/* cards alignment */
.flex_container {
    display: flex !important;
    align-items: end;
    gap: .7em;
}

.staff_footer {
    display: flex !important;
    flex-direction: column;
    row-gap: .9em;
    padding: 0 !important;
    padding-top: .2em !important;
}

.staff_footer > div {
    margin-left: -1em !important;
    padding: 0 !important;
}

/* Ensure all cards maintain equal height */
.cards {
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cards:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-bodys {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.staff_footer {
    margin-top: auto;
}

/* For the icons in the dashboard */
.icon-stats {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient Pullout Styles */
.pullout-container {
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    padding: 20px 25px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4a90e2;
    font-family: Arial, sans-serif;
    min-width: 400px;
}

/* Icon styling */
.pullout-icon {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 32px;
    height: 32px;
    background-color: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-controls {
    position: absolute;
    top: .3em;
    right: .4em;
}

.slide-controls > button {
    background: none;
}

/* Title styling */
.pullout-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

/* Content styling */
.pullout-content {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Link styling */
.pullout-link {
    display: block;
    margin-top: 12px;
    color: #4a90e2;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.pullout-link:hover {
    text-decoration: underline;
}

/* Email icon at bottom right */
.pullout-email-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: #8da2b5;
    font-size: 20px;
}

/* some other gradient for other states */
.blue-gradient {
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    border-left: 4px solid #5e81ac;
}

.green-gradient {
    background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
    border-left: 4px solid #4caf50;
}

.purple-gradient {
    background: linear-gradient(135deg, #e2b0ff 0%, #9f44d3 100%);
    border-left: 4px solid #7e57c2;
}

.orange-gradient {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    border-left: 4px solid #ff9800;
}


.dropdown {
    position: relative !important;
}
/*.user-header{*/
/*    background: var(--primary-dark) ;*/
/*}*/
.dropdown-menu {
    position: absolute !important;
    transform: translateX(-65%) !important;
    top: 100%;
    width: max-content;
    background: var(--primary-light);
}


/* responsive additional class */

/*.main-head {*/
/*    display: flex;*/
/*    flex-wrap: wrap;*/
/*    width: 100%;*/
/*    min-height: 50px;*/
/*    position: relative;*/
/*}*/

/*.left-controls {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    flex-shrink: 0;*/
/*}*/

/*.left-controls .nav {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    list-style: none;*/
/*}*/

/*.navbar {*/
/*    width: 100%;*/
/*    display: flex;*/
/*    justify-content: flex-end;*/
/*    margin: 0;*/
/*}*/

/*.navbar .nav {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    flex-wrap: wrap;*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    list-style: none;*/
/*}*/

/*.navbar .nav li {*/
/*    display: flex;*/
/*    align-items: center;*/
/*}*/


/*#clockin {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    text-align: center;*/
/*    padding: 5px !important;*/
/*    margin: 5px 0 !important;*/
/*}*/

/*#clockin span,*/
/*#clockin div,*/
/*#clockin button {*/
/*    font-size: 12px;*/
/*    margin: 2px 0;*/
/*    word-wrap: break-word;*/
/*}*/

/*#clockin button {*/
/*    white-space: nowrap;*/
/*    padding: 2px 5px;*/
/*}*/


/*#back-arrow,*/
/*#next-arrow,*/
/*#reload {*/
/*    padding: 5px;*/
/*    cursor: pointer;*/
/*}*/

/*.nav-arrow,*/
/*.nav-repeat {*/
/*    font-size: 18px;*/
/*}*/


/*.dropdown.user-menu {*/
/*    position: relative;*/
/*}*/

/*.dropdown.user-menu .dropdown-toggle {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    padding: 5px;*/
/*    text-decoration: none;*/
/*}*/

/*.dropdown.user-menu .user-image {*/
/*    width: 25px;*/
/*    height: 25px;*/
/*    border-radius: 50%;*/
/*    margin-right: 5px;*/
/*}*/

/*.dropdown-menu {*/
/*    position: absolute;*/
/*    top: 100%;*/
/*    right: 0;*/
/*    z-index: 1000;*/
/*    min-width: 200px;*/
/*    max-width: 90vw;*/
/*    box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
/*}*/

/*.user-header img {*/
/*    width: 60px;*/
/*    height: 60px;*/
/*}*/

/*.user-body {*/
/*    padding: 10px;*/
/*}*/

/*.user-body .col-xs-12 {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 10px;*/
/*}*/

/*.user-footer {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    padding: 10px;*/
/*}*/





@media (max-width: 767px) {
    .main-head {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        padding: 8px 5px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .left-controls {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        order: 1 !important;
    }

    .left-controls .nav {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .navbar {
        /*display: flex !important;*/
        align-items: center !important;
        order: 2 !important;
        margin-left: auto !important;
        padding: 0 !important;
        display: none !important;

    }

    .navbar .nav {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 5px !important;
        margin: 0 !important;
        padding: 0 !important;
    }


    #back-arrow,
    #next-arrow,
    #reload {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 10px !important;
        cursor: pointer !important;
        border-radius: 4px !important;
        margin: 0 2px !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 100 !important;
    }


    .nav-arrow,
    .nav-repeat {
        font-size: 20px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }


    .dropdown.user-menu {
        display: flex !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1000 !important;
    }

    .dropdown.user-menu .dropdown-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        text-decoration: none !important;
        min-width: 44px !important;
        min-height: 44px !important;
        border-radius: 4px !important;
        visibility: visible !important;
        opacity: 1 !important;
        cursor: pointer !important;
    }

    .dropdown.user-menu .user-image {
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        margin-right: 8px !important;
        display: block !important;
        visibility: visible !important;
    }


    .dropdown.user-menu .hidden-xs {
        display: inline-block !important;
        max-width: 100px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 13px !important;
        visibility: visible !important;
    }


    .dropdown-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        z-index: 1050 !important;
        min-width: 280px !important;
        max-width: 90vw !important;
        margin-top: 2px !important;
        padding: 0 !important;
        border: 1px solid #ccc !important;
        border-radius: 6px !important;
        box-shadow: 0 6px 12px rgba(0,0,0,0.175) !important;
        background-color: #fff !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .dropdown.open .dropdown-menu,
    .dropdown-menu.show {
        display: block !important;
    }


    .user-header {
        padding: 15px !important;
        text-align: center !important;
        background-color: #f4f4f4 !important;
        border-bottom: 1px solid #ddd !important;
    }

    .user-header img {
        width: 65px !important;
        height: 65px !important;
        border-radius: 50% !important;
        display: block !important;
        margin: 0 auto 10px auto !important;
    }

    .user-header p {
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1.4 !important;
    }


    .user-body {
        padding: 15px !important;
        border-bottom: 1px solid #ddd !important;
        background-color: #fff !important;
    }

    .user-body .col-xs-12 {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        text-align: center !important;
    }

    .user-body .col-xs-12 a {
        display: inline-block !important;
        padding: 10px 15px !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        text-align: center !important;
        transition: all 0.2s !important;
        min-height: 44px !important;
        line-height: 24px !important;
    }


    .user-footer {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 15px !important;
        background-color: #f9f9f9 !important;
        border-radius: 0 0 6px 6px !important;
    }

    .user-footer .pull-left,
    .user-footer .pull-right {
        float: none !important;
        width: 100% !important;
        display: block !important;
    }

    .user-footer .btn {
        display: inline-block !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        text-align: center !important;
        text-decoration: none !important;
        border: 1px solid #ddd !important;
        border-radius: 4px !important;
        min-height: 44px !important;
        line-height: 20px !important;
        cursor: pointer !important;
        transition: all 0.2s !important;
    }


    #clockin {
        order: 3 !important;
        width: 100% !important;
        margin: 10px 0 5px 0 !important;
        padding: 10px !important;
        text-align: center !important;
        flex-basis: 100% !important;
    }

    #clockin div {
        font-size: 11px !important;
        padding: 4px 8px !important;
        margin: 4px 0 !important;
        border-radius: 4px !important;
    }

    #clockin button {
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-height: 44px !important;
        border-radius: 4px !important;
        cursor: pointer !important;
    }



}


@media (max-width: 480px) {
    .main-head {
        padding: 5px 3px !important;
    }

    #back-arrow,
    #next-arrow,
    #reload {
        min-width: 42px !important;
        min-height: 42px !important;
        padding: 8px !important;
        margin: 0 1px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-arrow,
    .nav-repeat {
        font-size: 18px !important;
        display: block !important;
        visibility: visible !important;
    }


    .dropdown.user-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .dropdown.user-menu .dropdown-toggle {
        padding: 6px 10px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        display: flex !important;
        visibility: visible !important;
    }

    .dropdown.user-menu .user-image {
        width: 24px !important;
        height: 24px !important;
        margin-right: 6px !important;
        display: block !important;
        visibility: visible !important;
    }

    .dropdown.user-menu .hidden-xs {
        display: inline-block !important;
        max-width: 80px !important;
        font-size: 12px !important;
        visibility: visible !important;
    }


    .dropdown-menu {
        min-width: 260px !important;
        max-width: 95vw !important;
        right: 0 !important;
        left: auto !important;
        margin: 0 !important;
        font-size: 13px !important;
        z-index: 1050 !important;
        display: none !important;
        position: absolute !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .dropdown.open .dropdown-menu,
    .dropdown-menu.show {
        display: block !important;
    }

    .user-header {
        padding: 12px !important;
    }

    .user-header img {
        width: 55px !important;
        height: 55px !important;
    }

    .user-header p {
        font-size: 13px !important;
    }

    .user-body {
        padding: 12px !important;
    }

    .user-body .col-xs-12 a {
        padding: 8px 12px !important;
        font-size: 13px !important;
        min-height: 42px !important;
    }

    .user-footer {
        padding: 12px !important;
        gap: 8px !important;
    }

    .user-footer .btn {
        padding: 10px 16px !important;
        font-size: 13px !important;
        min-height: 42px !important;
    }


    #clockin {
        padding: 8px !important;
        margin: 8px 0 5px 0 !important;
    }

    #clockin span,
    #clockin div,
    #clockin button {
        font-size: 11px !important;
    }

    #clockin button {
        min-height: 42px !important;
        padding: 6px 10px !important;
    }
}


@media (max-width: 320px) {
    .main-head {
        min-height: auto !important;
        padding: 4px 2px !important;
        flex-wrap: wrap !important;
    }


    .left-controls {
        display: flex !important;
        align-items: center !important;
        order: 1 !important;
        flex-shrink: 0 !important;
    }

    .navbar {
        display: flex !important;
        align-items: center !important;
        order: 2 !important;
        margin-left: auto !important;
    }

    .navbar .nav {
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
    }

    #back-arrow,
    #next-arrow,
    #reload {
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 6px !important;
        margin: 0 1px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 100 !important;
    }

    .nav-arrow,
    .nav-repeat {
        font-size: 16px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }


    .dropdown.user-menu {
        display: flex !important;
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1000 !important;
    }

    .dropdown.user-menu .dropdown-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 4px 8px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        visibility: visible !important;
        opacity: 1 !important;
        cursor: pointer !important;
    }

    .dropdown.user-menu .user-image {
        width: 22px !important;
        height: 22px !important;
        margin-right: 5px !important;
        display: block !important;
        visibility: visible !important;
    }

    .dropdown.user-menu .hidden-xs {
        display: inline-block !important;
        max-width: 60px !important;
        font-size: 11px !important;
        visibility: visible !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }


    .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        bottom: 10px !important;
        left: 5px !important;
        right: 5px !important;
        width: calc(100vw - 10px) !important;
        max-width: none !important;
        min-width: auto !important;
        margin: 0 !important;
        z-index: 1060 !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        display: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .dropdown.open .dropdown-menu,
    .dropdown-menu.show {
        display: block !important;
        animation: slideUpIn 0.3s ease-out !important;
    }

    @keyframes slideUpIn {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .user-header {
        padding: 10px !important;
    }

    .user-header img {
        width: 50px !important;
        height: 50px !important;
    }

    .user-header p {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    .user-body {
        padding: 10px !important;
    }

    .user-body .col-xs-12 {
        gap: 8px !important;
    }

    .user-body .col-xs-12 a {
        padding: 8px 10px !important;
        font-size: 12px !important;
        min-height: 40px !important;
        line-height: 24px !important;
    }

    .user-footer {
        padding: 10px !important;
        gap: 6px !important;
    }

    .user-footer .btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-height: 40px !important;
    }

    #clockin {
        order: 3 !important;
        width: 100% !important;
        margin: 8px 0 4px 0 !important;
        padding: 6px !important;
        flex-basis: 100% !important;
    }

    #clockin span,
    #clockin div,
    #clockin button {
        font-size: 10px !important;
    }

    #clockin button {
        min-height: 40px !important;
        padding: 5px 8px !important;
    }

    #clockin div {
        padding: 3px 6px !important;
        margin: 3px 0 !important;
    }
}


@media (max-width: 767px) and (orientation: landscape) {
    .main-head {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        min-height: 50px !important;
        padding: 5px !important;
    }

    .left-controls {
        width: auto !important;
        margin-bottom: 0 !important;
        order: 1 !important;
        display: flex !important;
    }

    .navbar {
        width: auto !important;
        order: 2 !important;
        margin-left: auto !important;
        display: flex !important;
    }

    .navbar .nav {
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        display: flex !important;
    }

    #back-arrow,
    #next-arrow,
    #reload {
        display: flex !important;
        min-width: 44px !important;
        min-height: 44px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .dropdown.user-menu {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .dropdown.user-menu .dropdown-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .dropdown.user-menu .hidden-xs {
        display: inline-block !important;
        visibility: visible !important;
    }

    .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        width: auto !important;
        min-width: 280px !important;
        max-width: 90vw !important;
        z-index: 1050 !important;
    }

    #clockin {
        order: 3 !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 5px 0 0 0 !important;
        flex-basis: 100% !important;
    }

    #clockin span,
    #clockin div,
    #clockin button {
        margin: 0 3px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 767px) {
    .sidebar-toggle,
    #back-arrow,
    #next-arrow,
    #reload,
    .dropdown-toggle,
    #clockin button {
        min-height: 44px !important;
        min-width: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .dropdown.user-menu,
    .dropdown.user-menu .dropdown-toggle,
    .dropdown.user-menu .user-image,
    .dropdown.user-menu .hidden-xs,
    #back-arrow,
    #next-arrow,
    #reload,
    .nav-arrow,
    .nav-repeat {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
    }
}

