/* ==========================================================================
   SIAKAD UI — Theme Override
   Replaces AdminDesigns theme.css visual styles with a modern, clean design.
   Loaded AFTER theme.css — all rules use sufficient specificity to override.
   
   Sections:
   1.  Base & Typography
   2.  Content Wrapper & Layout
   3.  Navbar (kill old, style new)
   4.  Breadcrumbs / Topbar
   5.  Sidebar
   6.  Panels / Cards
   7.  Buttons
   8.  Forms & Inputs
   9.  Tables
   10. Modals
   11. Alerts & Callouts
   12. Tabs & Navs
   13. Badges & Labels
   14. Pagination
   15. Dropdowns
   16. Progress Bars
   17. Wells
   18. Tooltips & Popovers
   19. List Groups
   20. Miscellaneous Widgets
   21. Scrollbar
   22. Animations & Transitions
   ========================================================================== */


/* ==========================================================================
   1. BASE & TYPOGRAPHY
   ========================================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #3f4254;
    background-color: #EFF6FA;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: #181c32;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0;
}
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }
h6 { font-size: 13px; }

a:not(.btn) {
    color: #0E7DA7;
    text-decoration: none;
    transition: color 0.15s ease;
}
a:not(.btn):hover, a:not(.btn):focus {
    color: #0E7DA7;
    text-decoration: none;
}

p { margin-bottom: 12px; }

small, .small { font-size: 12px; }
.text-muted { color: #91A3B3 !important; }
.text-primary { color: #0E7DA7 !important; }
.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: #f59e0b !important; }
.text-info { color: #06b6d4 !important; }

::selection {
    background: rgba(14, 125, 167, 0.20);
    color: #085E7F;
}


/* ==========================================================================
   2. CONTENT WRAPPER & LAYOUT
   ========================================================================== */
#content_wrapper {
    background: #EFF6FA !important;
    min-height: 100vh;
}

#content {
    padding: 20px 24px;
}

@media (min-width: 768px) {
    #content {
        padding: 24px 28px;
    }
}

/* Page header */
.content-header,
.page-header,
#content > .row:first-child > .col-md-12 > h3,
#content > h3 {
    font-size: 20px;
    font-weight: 600;
    color: #181c32;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.jumbotron {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(14, 125, 167, 0.07);
    padding: 28px 32px;
}

hr {
    border-top: 1px solid #E8EFF5;
}


/* ==========================================================================
   3. NAVBAR (kill the old AdminDesigns navbar)
   ========================================================================== */
header.navbar,
header.navbar.bg-info,
header.navbar.navbar-fixed-top,
.navbar.navbar-fixed-top {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
}


/* ==========================================================================
   4. BREADCRUMBS / TOPBAR
   ========================================================================== */
#topbar {
    background: #fff;
    border-bottom: 1px solid #E8EFF5;
    padding: 0 24px;
    min-height: 48px;
}

#topbar .breadcrumb {
    background: transparent;
    padding: 14px 0;
    margin: 0;
    font-size: 13px;
    border-radius: 0;
}

#topbar .breadcrumb > li {
    color: #91A3B3;
}

#topbar .breadcrumb > li + li::before {
    content: "/";
    color: #C4D2DD;
    padding: 0 8px;
}

#topbar .breadcrumb > li > a {
    color: #6B8399;
    font-weight: 500;
}

#topbar .breadcrumb > li > a:hover {
    color: #0E7DA7;
}

#topbar .breadcrumb > li.active {
    color: #181c32;
    font-weight: 500;
}


/* ==========================================================================
   5. SIDEBAR & MENU — Functional CSS (replaces theme.css sidebar rules)
   These rules are REQUIRED for main.js menu toggle to work.
   ========================================================================== */

/* --- Sidebar Container Base --- */
#sidebar_left {
    background: linear-gradient(180deg, #0E7DA7 0%, #085E7F 100%);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 240px;
    z-index: 1028;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#sidebar_left .nano-content,
#sidebar_left .sidebar-left-content {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

#sidebar_left .nano-pane {
    display: none !important;
}

#sidebar_left.affix {
    position: fixed !important;
    top: 0 !important;
}

#sidebar_left.affix::before {
    display: none !important;
    width: 0 !important;
}

#sidebar_left.affix > .sidebar-menu {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    overflow: visible !important;
    width: auto !important;
}

/* --- Sidebar-Menu Base --- */
.sidebar-menu {
    padding-bottom: 20px;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sidebar-menu > li {
    margin: 0;
    position: relative;
}

/* Sidebar-Menu Links */
.sidebar-menu > li > a {
    padding: 0;
    line-height: 35px;
    height: 35px;
    overflow: hidden;
    display: block;
    position: relative;
    color: #fff;
    text-decoration: none;
}

/* Sidebar-Menu Top Level - Icon */
.sidebar-menu > li > a > span:nth-child(1) {
    float: left;
    top: 0;
    line-height: 35px;
    width: 38px;
    font-size: 13px;
    text-align: center;
    padding-left: 13px;
}

/* Sidebar-Menu Top Level - Title */
.sidebar-menu > li > a > span:nth-child(2) {
    font-weight: 600;
    padding-left: 6px;
}

/* Sidebar-Menu Top Level - Caret ▼ */
.sidebar-menu li > a > span.caret {
    position: absolute;
    top: 45%;
    right: 13px;
    border-top: 5px solid;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}

/* Caret flipped when menu is open */
.sidebar-menu li > a.menu-open > span.caret {
    border-top: 0;
    border-bottom: 5px solid;
}

/* *** CRITICAL: Submenus hidden by default *** */
.sidebar-menu > li > ul {
    clear: both;
    display: none;
    width: 240px;
    height: auto;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* *** CRITICAL: Show submenu when menu-open toggled by JS *** */
.sidebar-menu li > a.menu-open + ul {
    display: block;
}

/* Sub Level Items */
.sidebar-menu > li > ul > li > a {
    padding: 11px 20px 11px 30px;
    display: block;
    color: inherit;
    text-decoration: none;
}

/* *** CRITICAL: Multi-level submenus hidden by default *** */
.sidebar-menu > li > ul > li ul {
    clear: both;
    display: none;
    width: 240px;
    height: auto;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Multi-level sub links */
.sidebar-menu > li > ul > li > ul li a {
    padding: 9px 12px 9px 30px;
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Active Item Border Left */
.sidebar-menu > li > a.menu-open::after,
.sidebar-menu > li.active > a::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #0E7DA7;
}

/* --- Sidebar State: Open (sb-l-o) --- */
.sb-l-o #sidebar_left {
    left: 0;
    overflow: hidden;
}

.sb-l-o #content_wrapper {
    margin-left: 240px;
}

/* --- Sidebar State: Closed (sb-l-c) --- */
.sb-l-c #sidebar_left {
    left: -240px;
    overflow: hidden;
}

.sb-l-c #content_wrapper {
    margin-left: 0;
}

.sb-l-c .navbar-branding {
    width: 60px;
}

.sb-l-c .navbar-brand {
    display: none;
}

/* --- Sidebar State: Minified/Collapsed (sb-l-m) --- */
body.sb-l-m #sidebar_left {
    z-index: 1028;
    overflow: hidden;
    width: 70px;
    height: 100%;
    left: 0;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

body.sb-l-m #sidebar_left .nano-content,
body.sb-l-m #sidebar_left .sidebar-left-content {
    overflow-y: auto;
    overflow-x: hidden;
}

body.sb-l-m #sidebar_left::before {
    width: 70px;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide ALL text/non-icon elements in minified mode */
body.sb-l-m .sidebar-header,
body.sb-l-m #sidebar_left .sidebar-title,
body.sb-l-m #sidebar_left .sidebar-label,
body.sb-l-m #sidebar_left .sidebar-title-tray,
body.sb-l-m #sidebar_left .caret,
body.sb-l-m #sidebar_left .sui-caret,
body.sb-l-m #sidebar_left .sidebar-proj,
body.sb-l-m #sidebar_left .sidebar-stat,
body.sb-l-m #sidebar_left .sui-role-card,
body.sb-l-m #sidebar_left .sui-sidebar-search,
body.sb-l-m #sidebar_left .sui-section-label,
body.sb-l-m #sidebar_left .sui-divider {
    display: none !important;
}

/* Branding: only hamburger icon, centered */
body.sb-l-m .navbar-branding {
    width: 70px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

body.sb-l-m .navbar-brand {
    display: none !important;
}

body.sb-l-m #toggle_sidemenu_l {
    margin: 0 !important;
    font-size: 17px !important;
    color: rgba(255, 255, 255, 0.55) !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}

body.sb-l-m #toggle_sidemenu_l:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
}

/* Menu items: icon-only, centered in 70px strip */
body.sb-l-m .sidebar-menu > li {
    padding: 1px 0;
    margin: 0;
    position: relative;
}

body.sb-l-m .sidebar-menu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 70px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    overflow: hidden !important;
    background: transparent !important;
    transition: all 0.15s ease !important;
}

/* Icon: centered, consistent size */
body.sb-l-m .sidebar-menu > li > a > span:nth-child(1),
body.sb-l-m .sidebar-menu > li > a > span:first-child,
body.sb-l-m .sidebar-menu > li > a > .sui-menu-icon {
    color: rgba(255, 255, 255, 0.55) !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
    padding: 0 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: color 0.15s ease !important;
}

/* Hover: highlight icon */
body.sb-l-m .sidebar-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

body.sb-l-m .sidebar-menu > li:hover > a > span:nth-child(1),
body.sb-l-m .sidebar-menu > li:hover > a > span:first-child,
body.sb-l-m .sidebar-menu > li:hover > a > .sui-menu-icon {
    color: #fff !important;
}

/* Active: blue accent */
body.sb-l-m .sidebar-menu > li.active > a {
    background: rgba(14, 125, 167, 0.1) !important;
}

body.sb-l-m .sidebar-menu > li.active > a > span:nth-child(1),
body.sb-l-m .sidebar-menu > li.active > a > span:first-child,
body.sb-l-m .sidebar-menu > li.active > a > .sui-menu-icon {
    color: #0E7DA7 !important;
}

body.sb-l-m .sidebar-menu > li.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
    border-radius: 0 3px 3px 0;
    background: #0E7DA7;
}

/* Hide open submenus in minified mode */
body.sb-l-m .sidebar-menu > li > a.menu-open + ul {
    display: none !important;
}

/* Content wrapper margin in minified */
body.sb-l-m #content_wrapper {
    margin-left: 70px;
}

body.sb-l-c.sb-l-m #content_wrapper {
    margin-left: 0;
}

/* --- Toggle Button Styling --- */
#toggle_sidemenu_l {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-block;
}

/* --- Fixed header + sidebar padding --- */
.navbar.navbar-fixed-top + #sidebar_left + #content_wrapper {
    padding-top: 60px;
}

/* --- Topbar/Breadcrumbs Fixed State --- */
#topbar.affix {
    z-index: 1027;
    width: auto;
    left: 0;
    right: 0;
    margin-left: 240px;
    position: fixed;
    transform: translate3d(0, 0, 0);
}

#topbar.affix + #content {
    margin-top: 51px;
}

body.sb-l-o #topbar.affix {
    margin-left: 240px;
}

body.sb-l-m #topbar.affix {
    margin-left: 70px;
}

body.sb-l-c #topbar.affix {
    margin-left: 0;
}

/* --- NanoScroller Sidebar Settings --- */
#sidebar_left.nano.affix {
    padding-bottom: 0;
}

body.sb-l-m #sidebar_left.nano {
    position: fixed;
}

body.sb-l-m #sidebar_left.nano > .nano-content {
    overflow-y: auto;
    overflow-x: hidden;
    right: 0 !important;
    flex: 1 1 0%;
    min-height: 0;
}

body.sb-l-m.mobile-view .nano > .nano-pane {
    display: none !important;
}

/* --- Sidebar-Light sb-l-m Overrides --- */
body.sb-l-m #sidebar_left.sidebar-light {
    background: linear-gradient(180deg, #0E7DA7 0%, #085E7F 100%);
}

/* --- Responsive Sidebar (@media <=900px) --- */
@media (max-width: 900px) {
    body.sb-l-m #sidebar_left {
        width: 50px;
    }
    body.sb-l-m #sidebar_left::before {
        width: 50px;
    }
    body.sb-l-m .sidebar-menu > li > a > span:nth-child(1),
    body.sb-l-m .sidebar-menu > li > a > span:nth-child(1),
    body.sb-l-m .sidebar-menu > li > a > span:first-child {
        width: 100%;
        font-size: 16px;
    }
    body.sb-l-m .sidebar-menu > li > a {
        width: 50px !important;
        height: 38px;
        margin: 0 !important;
    }
    body.sb-l-m #content_wrapper {
        margin-left: 50px;
    }
    body.sb-l-c.sb-l-m #content_wrapper {
        margin-left: 0;
    }
    body.sb-l-m .navbar-branding {
        width: 50px;
    }
    body.sb-l-o .navbar-brand,
    body.sb-l-m .navbar-brand {
        display: none;
    }
    /* Topbar adjustments */
    body.sb-l-o #topbar.affix {
        width: 100%;
        margin-left: 240px;
    }
    body.sb-l-m #topbar.affix {
        width: auto;
        margin-left: 50px;
    }
    body.sb-l-c #topbar.affix {
        width: 100%;
        margin-left: 0;
    }
}


/* ==========================================================================
   6. PANELS / CARDS (Bootstrap 3 .panel → modern card style)
   ========================================================================== */
.panel {
    background: #fff;
    border: 1px solid #E8EFF5;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(14, 125, 167, 0.06);
    margin-bottom: 20px;
    overflow: visible;
    border-top: 2px solid transparent;
}

.panel-heading {
    border-bottom: 1px solid #E8EFF5;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #181c32;
    border-radius: 10px 10px 0 0;
}

.panel-heading .panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #181c32;
    margin: 0;
    line-height: 1.4;
}

.panel-heading .panel-title > a {
    color: inherit;
}

.panel-heading .panel-heading-btn,
.panel-heading .panel-action {
    margin-top: -2px;
}

.panel-body {
    padding: 20px;
    color: #3f4254;
}

.panel-footer {
    background: #F2F8FB;
    border-top: 1px solid #E8EFF5;
    padding: 14px 20px;
    border-radius: 0 0 10px 10px;
}

/* Panel color variants — top accent bar */
.panel-primary { border-top-color: #0E7DA7; }
.panel-primary > .panel-heading { border-left: none; }
.panel-success { border-top-color: #10b981; }
.panel-success > .panel-heading { border-left: none; }
.panel-warning { border-top-color: #f59e0b; }
.panel-warning > .panel-heading { border-left: none; }
.panel-danger { border-top-color: #ef4444; }
.panel-danger > .panel-heading  { border-left: none; }
.panel-info { border-top-color: #06b6d4; }
.panel-info > .panel-heading    { border-left: none; }

.panel-primary > .panel-heading,
.panel-success > .panel-heading,
.panel-warning > .panel-heading,
.panel-danger > .panel-heading,
.panel-info > .panel-heading {
    color: #181c32;
}

.panel-primary > .panel-heading { background-color: #D6EFF8; color: #0a6890; }
.panel-info > .panel-heading    { background-color: #cff2f7; color: #0e7490; }
.panel-success > .panel-heading { background-color: #d1fae5; color: #047857; }
.panel-warning > .panel-heading { background-color: #fef3c7; color: #92400e; }
.panel-danger > .panel-heading  { background-color: #fee2e2; color: #b91c1c; }

/* Admin-form panels */
.admin-form .panel {
    border-radius: 10px;
}

.admin-form .panel-heading {
    border-radius: 10px 10px 0 0;
}

/* Collapsible panels */
.panel-group .panel {
    border-radius: 10px;
    overflow: hidden;
}

.panel-group .panel + .panel {
    margin-top: 8px;
}

.panel-group .panel-heading {
    padding: 0;
    border-bottom: none;
}

.panel-group .panel-heading + .panel-collapse > .panel-body {
    border-top: 1px solid #E8EFF5;
}

/* Accordion toggle */
.panel-group .accordion-toggle {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #181c32;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 150ms ease;
}

.panel-group .accordion-toggle:hover {
    text-decoration: none;
    background: #f8fafc;
}

.panel-group .accordion-toggle:focus {
    text-decoration: none;
    outline: none;
}

/* Accordion icon caret */
.panel-group .accordion-toggle.accordion-icon::before {
    content: '\f107';
    font-family: FontAwesome;
    font-size: 16px;
    color: #94a3b8;
    margin-right: 12px;
    transition: transform 200ms ease;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.panel-group .accordion-toggle.accordion-icon.collapsed::before {
    transform: rotate(-90deg);
}

.panel-group .accordion-toggle .panel-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}

.panel-group .accordion-toggle .widget-menu {
    margin-left: auto;
    flex-shrink: 0;
}

/* Panel border accent */
.panel.panel-border {
    border: 1px solid #E8EFF5;
}

.panel.panel-border.top {
    border-top: 3px solid #c3d0d9;
}

.panel-default.panel-border.top  { border-top-color: #94a3b8; }
.panel-primary.panel-border.top  { border-top-color: #0E7DA7; }
.panel-info.panel-border.top     { border-top-color: #06b6d4; }
.panel-success.panel-border.top  { border-top-color: #22c55e; }
.panel-warning.panel-border.top  { border-top-color: #f59e0b; }
.panel-danger.panel-border.top   { border-top-color: #ef4444; }

.panel-border.top > .panel-heading {
    background: #fff;
}

/* Link unstyled */
a.link-unstyled,
a.link-unstyled:hover,
a.link-unstyled:focus {
    color: inherit;
    text-decoration: none;
}

/* Icon background decoration */
.icon-bg {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    pointer-events: none;
}

/* Panel Tabs — tabs inside .panel-heading */
.panel-heading {
    position: relative;
}

.panel-tabs {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: none;
}

.panel-tabs > li {
    position: relative;
    float: left;
    margin-bottom: -1px;
}

.panel-tabs > li > a {
    display: block;
    line-height: 18px;
    border-radius: 0;
    padding: 10px 18px;
    border-left: 1px solid #E8EFF5;
    border-bottom: none;
    font-size: 13px;
    color: #64748b;
    background: transparent;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.panel-tabs > li > a:hover,
.panel-tabs > li > a:focus {
    background-color: #f8fafc;
    color: #0E7DA7;
    text-decoration: none;
}

.panel-tabs > li.active > a,
.panel-tabs > li.active > a:hover,
.panel-tabs > li.active > a:focus {
    color: #0E7DA7;
    background: #fff;
    border-bottom: 2px solid #0E7DA7;
    cursor: default;
    font-weight: 600;
}

/* Panel tabs left-aligned variant */
.panel-tabs.panel-tabs-left {
    left: 0;
    right: auto;
}

.panel-tabs.panel-tabs-left > li > a {
    border-right: 1px solid #E8EFF5;
    border-left: 1px solid transparent;
}

/* Panel tabs border variant — active top border */
.panel-tabs.panel-tabs-border > li.active > a {
    margin-top: -1px;
    border-top: 2px solid #0E7DA7;
    border-bottom: 2px solid transparent;
}

/* Holder / Wizard menu items */
.holder-style {
    display: block;
    padding: 9px 16px;
    color: #94a3b8;
    border: 0;
    background-color: #f8fafc;
    outline: 2px dashed #d1d5db;
    border-radius: 8px;
    text-align: center;
    transition: all 0.15s ease;
    text-decoration: none;
}

.holder-style:hover,
.holder-style:focus {
    cursor: pointer;
    color: #475569;
    background-color: #f1f5f9;
    outline: 2px dashed #94a3b8;
    border: 0;
    text-decoration: none;
}

.holder-style.holder-active {
    background-color: #fff;
    outline-color: #0E7DA7;
}

.holder-style .holder-icon {
    color: #94a3b8;
    font-size: 30px;
    padding-bottom: 10px;
}

.holder-style:hover .holder-icon,
.holder-style:focus .holder-icon,
.holder-style.holder-active .holder-icon {
    color: #0E7DA7;
}

/* Wizard options row */
.wizard-options {
    list-style: none;
    padding: 0;
}


/* ==========================================================================
   7. BUTTONS
   ========================================================================== */
.btn {
    font-family: inherit;
    font-weight: 500;
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 16px;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    outline: none !important;
    box-shadow: none;
    text-shadow: none;
    background-image: none;
    line-height: 1.5;
    cursor: pointer;
}

.btn:active,
.btn.active {
    box-shadow: none;
}

/* --- Default --- */
.btn-default {
    background: #fff;
    border-color: #D6E2EC;
    color: #3f4254;
}
.btn-default:hover, .btn-default:focus {
    background: #F0F7FB;
    border-color: #C4D2DD;
    color: #181c32;
}

/* --- Primary --- */
.btn-primary {
    background-color: #0E7DA7;
    border-color: #0E7DA7;
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #0E7DA7;
    border-color: #0E7DA7;
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 125, 167, 0.25);
}
.btn-primary:active {
    background-color: #085E7F;
    border-color: #085E7F;
    color: #fff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* --- Success --- */
.btn-success {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}
.btn-success:hover, .btn-success:focus {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

/* --- Warning --- */
.btn-warning {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}
.btn-warning:hover, .btn-warning:focus {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}
.btn-warning:active {
    background: #b45309;
    border-color: #b45309;
    color: #fff;
}

/* --- Danger --- */
.btn-danger {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}
.btn-danger:hover, .btn-danger:focus {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}
.btn-danger:active {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

/* --- Alert (purple, custom) --- */
.btn-alert {
    background: #967adc;
    border-color: #967adc;
    color: #fff;
}
.btn-alert:hover, .btn-alert:focus {
    background: #8362d6;
    border-color: #8362d6;
    color: #fff;
}
.btn-alert:active {
    background: #7e5cd4;
    border-color: #7e5cd4;
    color: #fff;
}

/* --- Info --- */
.btn-info {
    background: #06b6d4;
    border-color: #06b6d4;
    color: #fff;
}
.btn-info:hover, .btn-info:focus {
    background: #0891b2;
    border-color: #0891b2;
    color: #fff;
}

/* --- Link --- */
.btn-link {
    color: #0E7DA7;
    border: none;
    background: transparent;
}
.btn-link:hover { color: #0E7DA7; text-decoration: none; }

/* Sizes */
.btn-lg {
    padding: 10px 24px;
    font-size: 15px;
    border-radius: 10px;
}
.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
}
.btn-xs {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 5px;
}

/* Button groups */
.btn-group > .btn {
    border-radius: 0;
}
.btn-group > .btn:first-child {
    border-radius: 8px 0 0 8px;
}
.btn-group > .btn:last-child {
    border-radius: 0 8px 8px 0;
}
.btn-group > .btn + .btn {
    margin-left: -1px;
}

/* --- Disabled Buttons (all variants) --- */
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
    box-shadow: none !important;
}

.btn-default.disabled,
.btn-default[disabled],
fieldset[disabled] .btn-default {
    background-color: #e2e8f0;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary {
    background-color: #0E7DA7;
    border-color: #0E7DA7;
    color: #fff;
}

.btn-success.disabled,
.btn-success[disabled],
fieldset[disabled] .btn-success {
    background-color: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.btn-warning.disabled,
.btn-warning[disabled],
fieldset[disabled] .btn-warning {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}

.btn-danger.disabled,
.btn-danger[disabled],
fieldset[disabled] .btn-danger {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.btn-info.disabled,
.btn-info[disabled],
fieldset[disabled] .btn-info {
    background-color: #06b6d4;
    border-color: #06b6d4;
    color: #fff;
}

.btn-link.disabled,
.btn-link[disabled],
fieldset[disabled] .btn-link {
    color: #94a3b8;
    text-decoration: none;
}


/* ==========================================================================
   8. FORMS & INPUTS
   ========================================================================== */
.form-control {
    border: 1px solid #D6E2EC;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: #3f4254;
    background: #fff;
    height: auto;
    min-height: 38px;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: #0E7DA7;
    box-shadow: 0 0 0 4px rgba(14, 125, 167, 0.12);
    outline: none;
}

.form-control[disabled],
fieldset[disabled] .form-control {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
}

.form-control[readonly] {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
    cursor: default;
    box-shadow: none;
}

/* Disabled / readonly select */
select.form-control[disabled],
select.form-control[readonly],
fieldset[disabled] select.form-control {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Disabled / readonly textarea */
textarea.form-control[disabled],
textarea.form-control[readonly],
fieldset[disabled] textarea.form-control {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    resize: none;
}

/* Disabled input-group-addon */
.input-group .form-control[disabled] + .input-group-addon,
.input-group .form-control[readonly] + .input-group-addon {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

/* Disabled checkbox / radio */
.checkbox-inline.disabled,
.radio-inline.disabled,
fieldset[disabled] .checkbox-inline,
fieldset[disabled] .radio-inline,
.checkbox.disabled label,
.radio.disabled label,
fieldset[disabled] .checkbox label,
fieldset[disabled] .radio label {
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-control::placeholder {
    color: #91A3B3;
}

/* Labels */
.control-label,
label {
    font-weight: 500;
    font-size: 13px;
    color: #3f4254;
    margin-bottom: 6px;
}

.help-block {
    font-size: 12px;
    color: #91A3B3;
    margin-top: 4px;
}

/* Validation */
.has-error .form-control {
    border-color: #ef4444;
}
.has-error .form-control:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.has-error .help-block,
.has-error .control-label {
    color: #ef4444;
}

.has-success .form-control {
    border-color: #10b981;
}
.has-success .form-control:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Input groups */
.input-group-addon {
    background: #F0F7FB;
    border: 1px solid #D6E2EC;
    border-radius: 8px;
    color: #6B8399;
    font-size: 13px;
    padding: 8px 14px;
}

.input-group .form-control:first-child {
    border-radius: 8px 0 0 8px;
}
.input-group .form-control:last-child {
    border-radius: 0 8px 8px 0;
}
.input-group-addon:first-child {
    border-radius: 8px 0 0 8px;
    border-right: none;
}
.input-group-addon:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

/* Textarea */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Select2 */
.select2-container--default .select2-selection--single {
    border: 1px solid #D6E2EC;
    border-radius: 8px;
    height: 38px;
    line-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    color: #3f4254;
    padding: 0 14px;
    font-size: 13px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 6px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #0E7DA7;
    box-shadow: 0 0 0 3px rgba(14, 125, 167, 0.1);
}

.select2-dropdown {
    border: 1px solid #D6E2EC;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(14, 125, 167, 0.08);
    overflow: hidden;
}

.select2-results__option--highlighted[aria-selected] {
    background: #0E7DA7 !important;
    color: #fff !important;
}

/* Admin form fixes */
.admin-form .panel-body {
    padding: 24px;
}

.admin-form .gui-input,
.admin-form .gui-textarea {
    border: 1px solid #D6E2EC;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: #3f4254;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-form .gui-input:focus,
.admin-form .gui-textarea:focus {
    border-color: #0E7DA7;
    box-shadow: 0 0 0 3px rgba(14, 125, 167, 0.1);
}


/* ==========================================================================
   9. TABLES
   ========================================================================== */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 16px;
}

.table > thead > tr > th {
    background: #EAF3F9;
    border-bottom: 2px solid #D6E8F2;
    font-size: 12px;
    font-weight: 600;
    color: #4A7A94;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px 16px;
    white-space: nowrap;
    vertical-align: middle;
}

.table > tbody > tr > td {
    padding: 12px 16px;
    border-top: 1px solid #E8EFF5;
    vertical-align: middle;
    font-size: 13px;
    color: #3f4254;
}

.table > tbody > tr:first-child > td {
    border-top: none;
}

.table-hover > tbody > tr:hover > td {
    background: #EFF6FA;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: #F2F8FB;
}

/* Selected rows (checkbox in GridView) */
.table > tbody > tr.success > td  { background-color: #f0fdf4; }
.table > tbody > tr.info > td     { background-color: #ecfeff; }
.table > tbody > tr.warning > td  { background-color: #fffbeb; }
.table > tbody > tr.danger > td   { background-color: #fef2f2; }
.table > tbody > tr.active > td   { background-color: #EBF5FA; }

.table-bordered {
    border: 1px solid #E8EFF5;
}
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > td {
    border: 1px solid #E8EFF5;
}

/* Sort icons */
.table > thead > tr > th a {
    color: #6B8399;
    text-decoration: none;
}
.table > thead > tr > th a:hover {
    color: #0E7DA7;
}

/* Responsive table wrapper */
.table-responsive {
    border: none;
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Kartik GridView */
.kv-grid-table {
    border-radius: 8px;
}

.kv-grid-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.grid-view .summary {
    font-size: 12px;
    color: #91A3B3;
    margin-bottom: 12px;
}


/* ==========================================================================
   10. MODALS
   ========================================================================== */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(14, 125, 167, 0.10);
    overflow: hidden;
}

.modal-header {
    background: #fff;
    border-bottom: 1px solid #E8EFF5;
    padding: 18px 24px;
}

.modal-header .modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #181c32;
}

.modal-header .close {
    opacity: 0.5;
    font-size: 22px;
    text-shadow: none;
    margin-top: -2px;
}
.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    background: #F2F8FB;
    border-top: 1px solid #E8EFF5;
    padding: 14px 24px;
}

.modal-backdrop {
    background: #181c32;
}
.modal-backdrop.in {
    opacity: 0.4;
}

/* Ajax CRUD modals */
#ajaxCrudModal .modal-content {
    border-radius: 12px;
}

#ajaxCrudModal .modal-header {
    padding: 18px 24px;
}


/* ==========================================================================
   11. ALERTS & CALLOUTS
   ========================================================================== */
.alert {
    border: none;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 13px;
    border-left: 4px solid transparent;
    margin-bottom: 16px;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left-color: #10b981;
}
.alert-info {
    background: #ecfeff;
    color: #155e75;
    border-left-color: #06b6d4;
}
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left-color: #f59e0b;
}
.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.alert .close {
    opacity: 0.5;
    text-shadow: none;
}
.alert .close:hover {
    opacity: 1;
}

/* Error summary (Yii) */
.error-summary {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    padding: 14px 18px;
    color: #991b1b;
}
.error-summary ul {
    margin-bottom: 0;
    padding-left: 18px;
}


/* ==========================================================================
   12. TABS & NAVS
   ========================================================================== */
.nav-tabs {
    border-bottom: 2px solid #E8EFF5;
}

.nav-tabs > li > a {
    border: none;
    border-radius: 0;
    color: #6B8399;
    font-weight: 500;
    font-size: 13px;
    padding: 10px 18px;
    margin-right: 0;
    transition: color 0.15s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus {
    background: transparent;
    border-color: transparent;
    border-bottom-color: #C4D2DD;
    color: #3f4254;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background: transparent;
    border: none;
    border-bottom: 2px solid #0E7DA7;
    color: #0E7DA7;
    font-weight: 600;
}

.tab-content {
    padding: 16px 0;
}

/* Nav pills */
.nav-pills > li > a {
    border-radius: 8px;
    color: #6B8399;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 16px;
    transition: all 0.15s ease;
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    background: #0E7DA7;
    color: #fff;
}


/* ==========================================================================
   13. BADGES & LABELS
   ========================================================================== */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    line-height: 1.3;
    letter-spacing: 0.2px;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    color: #4A6B82;
    background-color: #E8EFF5;
    border: 1px solid rgba(74, 107, 130, 0.12);
}

.label {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1.3;
    letter-spacing: 0.2px;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    color: #4A6B82;
    border: 1px solid transparent;
}

.label-default, .badge-default { background-color: #E8EFF5; color: #4A6B82; border-color: rgba(74, 107, 130, 0.12); }
.label-primary, .badge-primary { background-color: rgba(14, 125, 167, 0.12); color: #0a6890; border-color: rgba(14, 125, 167, 0.22); }
.label-success, .badge-success { background-color: rgba(16, 185, 129, 0.12); color: #047857; border-color: rgba(16, 185, 129, 0.22); }
.label-warning, .badge-warning { background-color: rgba(245, 158, 11, 0.14); color: #92400e; border-color: rgba(245, 158, 11, 0.25); }
.label-danger, .badge-danger   { background-color: rgba(239, 68, 68, 0.12); color: #b91c1c; border-color: rgba(239, 68, 68, 0.22); }
.label-info, .badge-info       { background-color: rgba(6, 182, 212, 0.12); color: #0e7490; border-color: rgba(6, 182, 212, 0.22); }
.label-system, .badge-system   { background-color: rgba(55, 188, 155, 0.12); color: #1f7a63; border-color: rgba(55, 188, 155, 0.22); }
.label-alert, .badge-alert     { background-color: rgba(150, 122, 220, 0.12); color: #6d4ec0; border-color: rgba(150, 122, 220, 0.22); }
.label-dark, .badge-dark       { background-color: rgba(59, 63, 79, 0.12); color: #2d3040; border-color: rgba(59, 63, 79, 0.22); }


/* ==========================================================================
   14. PAGINATION
   ========================================================================== */
.pagination {
    margin: 12px 0;
}

.pagination > li > a,
.pagination > li > span {
    border: 1px solid #D6E2EC;
    color: #6B8399;
    padding: 7px 14px;
    font-size: 13px;
    line-height: 1.5;
    background: #fff;
    margin-left: -1px;
    transition: all 0.15s ease;
}

.pagination > li:first-child > a,
.pagination > li:first-child > span {
    border-radius: 8px 0 0 8px;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-radius: 0 8px 8px 0;
}

.pagination > li > a:hover {
    background: #F0F7FB;
    color: #0E7DA7;
    border-color: #C4D2DD;
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span {
    background: #0E7DA7;
    border-color: #0E7DA7;
    color: #fff;
}

.pagination > .disabled > a,
.pagination > .disabled > span {
    color: #C4D2DD;
    background: #F2F8FB;
    border-color: #D6E2EC;
}


/* ==========================================================================
   15. DROPDOWNS
   ========================================================================== */
.dropdown-menu {
    border: 1px solid #E8EFF5;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(14, 125, 167, 0.08);
    padding: 6px;
    min-width: 180px;
    font-size: 13px;
}

.dropdown-menu > li > a {
    padding: 8px 14px;
    color: #3f4254;
    border-radius: 6px;
    transition: all 0.1s ease;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: #EFF6FA;
    color: #181c32;
}

.dropdown-menu > li.active > a,
.dropdown-menu > li.active > a:hover {
    background: #0E7DA7;
    color: #fff;
}

.dropdown-menu .divider {
    background: #E8EFF5;
    margin: 4px 6px;
}

.dropdown-header {
    font-size: 11px;
    font-weight: 600;
    color: #91A3B3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px 4px;
}


/* ==========================================================================
   16. PROGRESS BARS
   ========================================================================== */
.progress {
    height: 8px;
    border-radius: 99px;
    background: #E8EFF5;
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar {
    border-radius: 99px;
    box-shadow: none;
    font-size: 10px;
    line-height: 8px;
    transition: width 0.4s ease;
}

.progress-bar-success { background: #10b981; }
.progress-bar-info    { background: #06b6d4; }
.progress-bar-warning { background: #f59e0b; }
.progress-bar-danger  { background: #ef4444; }


/* ==========================================================================
   17. WELLS
   ========================================================================== */
.well {
    background: #F0F7FB;
    border: 1px solid #E8EFF5;
    border-radius: 8px;
    box-shadow: none;
    padding: 16px 20px;
}

.well-sm { padding: 10px 14px; }
.well-lg { padding: 24px 28px; }


/* ==========================================================================
   18. TOOLTIPS & POPOVERS
   ========================================================================== */
.tooltip-inner {
    background: #181c32;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    max-width: 240px;
}

.tooltip.top .tooltip-arrow    { border-top-color: #181c32; }
.tooltip.bottom .tooltip-arrow { border-bottom-color: #181c32; }
.tooltip.left .tooltip-arrow   { border-left-color: #181c32; }
.tooltip.right .tooltip-arrow  { border-right-color: #181c32; }

.popover {
    border: 1px solid #E8EFF5;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(14, 125, 167, 0.08);
}

.popover-title {
    background: #F0F7FB;
    border-bottom: 1px solid #E8EFF5;
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 14px;
}

.popover-content {
    padding: 12px 14px;
    font-size: 13px;
}


/* ==========================================================================
   19. LIST GROUPS
   ========================================================================== */
.list-group {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #E8EFF5;
    box-shadow: 0 1px 3px rgba(14, 125, 167, 0.04);
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #E8EFF5;
    padding: 12px 18px;
    font-size: 13px;
    color: #3f4254;
    transition: all 150ms ease;
    position: relative;
}

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

.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    background: #EBF5FA;
    border-color: transparent;
    border-bottom-color: #E8EFF5;
    color: #0E7DA7;
    border-left: 3px solid #0E7DA7;
    z-index: 1;
}

a.list-group-item:hover,
a.list-group-item:focus {
    background: #f8fafc;
    color: #181c32;
    text-decoration: none;
}

a.list-group-item.active:hover {
    background: #DCEEF6;
    color: #0a6890;
}


/* ==========================================================================
   20. MISCELLANEOUS WIDGETS
   ========================================================================== */

/* Info box / small box */
.info-box,
.small-box {
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(14, 125, 167, 0.06);
    overflow: hidden;
    margin-bottom: 20px;
}

.info-box .info-box-icon,
.small-box .icon {
    border-radius: 10px 0 0 10px;
}

/* Thumbnail */
.thumbnail {
    border: 1px solid #E8EFF5;
    border-radius: 10px;
    padding: 6px;
    box-shadow: none;
}

.thumbnail .caption {
    padding: 10px 8px;
}

/* Loading overlay */
.loading-overlay,
.kv-loader-overlay {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(2px);
}

/* Toastr notifications */
#toast-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
}

#toast-container * {
    box-sizing: border-box;
}

#toast-container > div {
    position: relative;
    pointer-events: auto;
    overflow: hidden;
    margin: 0 0 8px;
    padding: 16px 16px 16px 50px;
    width: 350px;
    border-radius: 10px;
    background-position: 15px center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    color: #fff;
    opacity: 0.95;
    font-size: 13px;
    line-height: 1.5;
}

#toast-container > div:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
    opacity: 1;
    cursor: pointer;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.toast-message {
    word-wrap: break-word;
    font-size: 13px;
}

.toast-message a,
.toast-message label {
    color: #fff;
}

.toast-message a:hover {
    color: #e2e8f0;
    text-decoration: underline;
}

.toast-close-button {
    position: relative;
    right: -0.3em;
    top: -0.3em;
    float: right;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
    opacity: 0.7;
}

.toast-close-button:hover,
.toast-close-button:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    opacity: 1;
}

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 10px 10px;
}

/* Toastr position helpers */
.toast-top-right {
    top: 12px;
    right: 12px;
}

.toast-top-left {
    top: 12px;
    left: 12px;
}

.toast-bottom-right {
    right: 12px;
    bottom: 12px;
}

.toast-bottom-left {
    bottom: 12px;
    left: 12px;
}

.toast-top-center {
    top: 0;
    right: 0;
    width: 100%;
}

.toast-bottom-center {
    bottom: 0;
    right: 0;
    width: 100%;
}

.toast-top-center > div,
.toast-bottom-center > div {
    width: 350px;
    margin-left: auto;
    margin-right: auto;
}

/* Toastr variant colors */
.toast-success {
    background-color: #10b981 !important;
}

.toast-error {
    background-color: #ef4444 !important;
}

.toast-info {
    background-color: #0E7DA7 !important;
}

.toast-warning {
    background-color: #f59e0b !important;
}

/* Empty state */
.empty-state,
.grid-view .empty {
    text-align: center;
    padding: 40px 20px;
    color: #91A3B3;
    font-size: 14px;
}


/* ==========================================================================
   21. SCROLLBAR (global)
   ========================================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #C4D2DD;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: #91A3B3;
}

/* NanoScroller overrides */
.nano > .nano-pane > .nano-slider {
    background: rgba(14, 125, 167, 0.10);
    border-radius: 99px;
}

.nano > .nano-pane {
    background: transparent;
    width: 5px;
}


/* ==========================================================================
   22. NAVBAR-BRANDING FIX
   ========================================================================== */
@media (max-width: 900px) {
    body.sb-l-o .navbar-branding,
    body.sb-l-m .navbar-branding {
        max-width: none !important;
        margin-right: 0 !important;
    }
}


/* ==========================================================================
   23. ANIMATIONS & TRANSITIONS
   ========================================================================== */
.fade.in {
    opacity: 1;
}

.collapse.in {
    display: block;
}

/* Smooth transitions for interactive elements */
.btn,
.form-control,
.nav-tabs > li > a,
.list-group-item,
a {
    transition: all 0.15s ease;
}

/* Kill AdminDesigns animation delays that cause janky sidebar */
.animated {
    animation-duration: 0.3s;
}

.animated-short {
    animation-duration: 0.15s;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 767px) {
    #content {
        padding: 16px;
    }

    .panel-body {
        padding: 14px;
    }

    .panel-heading {
        padding: 12px 14px;
    }

    .modal-body {
        padding: 16px;
    }

    .table > thead > tr > th,
    .table > tbody > tr > td {
        padding: 10px 12px;
    }
}

/* Remove Bootstrap default focus outline on links */
a:focus {
    outline: none;
    outline-offset: 0;
}
