/* ===================================
   MODERN HEADER STYLES - TOSCA THEME
   =================================== */

:root {
    --tosca-primary: #16a085;
    --tosca-dark: #0d7f6d;
    --tosca-light: #1abc9c;
    --tosca-lighter: #48c9b0;
    --navy-dark: #1a2332;
    --navy-medium: #2c3e50;
    --navy-light: #34495e;
    --white: #ffffff;
    --gray-light: #ecf0f1;
    --gray-medium: #bdc3c7;
    --gray-dark: #7f8c8d;
    --text-dark: #2c3e50;
    --text-light: #b8c7ce;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ===================================
              BODY
   =================================== */
html,
body {
  height: 100%;
}
.layout-boxed html,
.layout-boxed body {
  height: 100%;
}
body {
  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  overflow-y: auto;
}
/* Layout */
.wrapper {
  height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}
.wrapper:before,
.wrapper:after {
  content: " ";
  display: table;
}
.wrapper:after {
  clear: both;
}
.layout-boxed .wrapper {
  max-width: 1250px;
  margin: 0 auto;
  min-height: 100%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  position: relative;
}
.layout-boxed {
  background-color: #f9fafc;
}

/* ===================================
   MAIN CONTENT WRAPPER
   =================================== */
.content-wrapper {
    min-height: calc(100vh - 70px - 60px); /* viewport - header - footer */
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    margin-left: 230px;
    padding-bottom: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Background Pattern (Optional) */
.content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.03) 0%, rgba(13, 127, 109, 0.03) 100%);
    pointer-events: none;
}

/* Full width on mobile */
@media (max-width: 767px) {
    .content-wrapper {
        margin-left: 0;
        padding-bottom: 20px;
    }
}

/* ===================================
   CONTENT HEADER (PAGE HEADER)
   =================================== */
.content-header {
    padding: 25px 30px;
    position: relative;
    background: var(--white);
    margin-bottom: 25px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.content-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--tosca-primary) 0%,
        var(--tosca-light) 50%,
        var(--tosca-primary) 100%);
}

.content-header h1 {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Small text in title */
.content-header h1 small {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
    margin-left: 10px;
}

/* ===================================
   BREADCRUMB
   =================================== */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    list-style: none;
}

.breadcrumb > li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb > li a {
    color: var(--tosca-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
}

.breadcrumb > li a:hover {
    color: var(--tosca-dark);
    background: rgba(22, 160, 133, 0.1);
}

.breadcrumb > li a i {
    font-size: 14px;
}

.breadcrumb > li.active {
    color: var(--text-light);
    font-weight: 500;
    padding: 4px 8px;
}

/* Breadcrumb separator */
.breadcrumb > li + li:before {
    content: '›';
    color: var(--gray-medium);
    font-size: 18px;
    font-weight: 300;
    padding: 0;
    margin-right: 8px;
}

/* ===================================
   MAIN CONTENT SECTION
   =================================== */
.content {
    padding: 0 30px;
    position: relative;
    z-index: 1;
}

/* Content animations */
.content > .row,
.content > .box,
.content > .alert,
.content > .callout {
    animation: fadeInContent 0.5s ease;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 991px) {
    .content-header {
        padding: 20px 25px;
        margin-bottom: 20px;
    }

    .content-header h1 {
        font-size: 24px;
    }

    .content-header h1::before {
        height: 28px;
    }

    .content {
        padding: 0 25px;
    }
}

@media (max-width: 767px) {
    .content-header {
        padding: 18px 20px;
        border-radius: 0;
        margin-bottom: 15px;
    }

    .content-header h1 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .content-header h1::before {
        height: 26px;
        width: 4px;
    }

    .content-header h1 small {
        font-size: 14px;
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }

    .breadcrumb {
        font-size: 13px;
        flex-direction: row;
    }

    .breadcrumb > li {
        display: inline-flex;
    }

    .content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .content-header {
        padding: 15px;
    }

    .content-header h1 {
        font-size: 20px;
    }

    .breadcrumb {
        font-size: 12px;
        gap: 4px;
    }

    .breadcrumb > li + li:before {
        margin-right: 4px;
    }

    .content {
        padding: 0 15px;
    }
}

/* ===================================
   ALTERNATIVE HEADER STYLES
   =================================== */

/* Compact Header */
.content-header.compact {
    padding: 15px 30px;
    margin-bottom: 15px;
}

.content-header.compact h1 {
    font-size: 22px;
    margin-bottom: 8px;
}

/* Centered Header */
.content-header.centered {
    text-align: center;
}

.content-header.centered h1::before {
    display: none;
}

.content-header.centered .breadcrumb {
    justify-content: center;
}

/* Header with Background */
.content-header.with-bg {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    color: var(--white);
}

.content-header.with-bg h1 {
    color: var(--white);
}

.content-header.with-bg h1::before {
    background: var(--white);
}

.content-header.with-bg .breadcrumb > li a {
    color: var(--white);
}

.content-header.with-bg .breadcrumb > li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.content-header.with-bg .breadcrumb > li.active {
    color: rgba(255, 255, 255, 0.8);
}

.content-header.with-bg .breadcrumb > li + li:before {
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   EMPTY STATE
   =================================== */
.content-empty {
    text-align: center;
    padding: 60px 20px;
}

.content-empty-icon {
    font-size: 64px;
    color: var(--gray-medium);
    margin-bottom: 20px;
    opacity: 0.5;
}

.content-empty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.content-empty-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.content-empty-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.content-empty-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.3);
    color: var(--white);
}

/* ===================================
   LOADING STATE
   =================================== */
.content-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    flex-direction: column;
    gap: 20px;
}

.content-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-light);
    border-top-color: var(--tosca-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.content-loading-text {
    color: var(--text-light);
    font-size: 14px;
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .content-wrapper {
        margin-left: 0;
        background: white;
    }

    .content-wrapper::before {
        display: none;
    }

    .content-header {
        box-shadow: none;
        border-bottom: 2px solid #ddd;
        border-radius: 0;
    }

    .content-header::before {
        display: none;
    }

    .content-header h1::before {
        display: none;
    }

    .breadcrumb {
        display: none;
    }

    .content {
        padding: 0;
    }
}

/* Fixed layout */
.fixed .main-header,
.fixed .main-sidebar,
.fixed .left-side {
  position: fixed;
}
.fixed .main-header {
  top: 0;
  right: 0;
  left: 0;
}
.fixed .content-wrapper,
.fixed .right-side {
  padding-top: 50px;
}
@media (max-width: 767px) {
  .fixed .content-wrapper,
  .fixed .right-side {
    padding-top: 100px;
  }
}
.fixed.layout-boxed .wrapper {
  max-width: 100%;
}
.fixed .wrapper {
  overflow: hidden;
}
.hold-transition .content-wrapper,
.hold-transition .right-side,
.hold-transition .main-footer,
.hold-transition .main-sidebar,
.hold-transition .left-side,
.hold-transition .main-header .navbar,
.hold-transition .main-header .logo,
.hold-transition .menu-open .fa-angle-left {
  /* Fix for IE */
  -webkit-transition: none;
  -o-transition: none;
  transition: none;
}
/* Content */
.content {
  min-height: 250px;
  padding: 15px;
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
}
/* H1 - H6 font */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: 'Source Sans Pro', sans-serif;
}
/* General Links */
a {
  color: #3c8dbc;
}
a:hover,
a:active,
a:focus {
  outline: none;
  text-decoration: none;
  color: #72afd2;
}
/* Page Header */
.page-header {
  margin: 10px 0 20px 0;
  font-size: 22px;
}
.page-header > small {
  color: #666;
  display: block;
  margin-top: 5px;
}

/* ===================================
   MAIN HEADER BASE
   =================================== */
.fixed .main-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.main-header {
    position: relative;
    max-height: 70px;
    z-index: 1030;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--tosca-light);
}

.main-header .navbar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
    margin-left: 230px;
    border: none;
    min-height: 70px;
    border-radius: 0;
    background: transparent;
}

.layout-top-nav .main-header .navbar {
    margin-left: 0;
}

/* ===================================
   LOGO STYLES
   =================================== */
.main-header .logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    float: left;
    height: 70px;
    font-size: 22px;
    line-height: 70px;
    text-align: center;
    width: 230px;
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    padding: 0 20px;
    font-weight: 600;
    overflow: hidden;
    background: var(--navy-dark);
    color: var(--white);
    text-decoration: none;
    position: relative;
}

.main-header .logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--tosca-light);
}

.main-header .logo:hover {
    background: var(--navy-medium);
    color: var(--tosca-lighter);
}

.main-header .logo .logo-icon {
    font-size: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.main-header .logo .logo-lg {
    display: block;
}

.main-header .logo .logo-lg img {
    max-width: 180px;
    max-height: 50px;
    object-fit: contain;
    vertical-align: middle;
}

.main-header .logo .logo-mini {
    display: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.main-header .logo .logo-mini img {
    max-width: 40px;
    max-height: 40px;
}

/* ===================================
   SIDEBAR TOGGLE
   =================================== */
.main-header .sidebar-toggle {
    float: left;
    background-color: transparent;
    background-image: none;
    padding: 23px 20px;
    font-family: Arial, sans-serif;
    border: none;
    color: var(--white);
    transition: all 0.3s ease;
    position: relative;
}

.main-header .sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--tosca-lighter);
}

.main-header .sidebar-toggle:focus,
.main-header .sidebar-toggle:active {
    background: rgba(255, 255, 255, 0.15);
}

.main-header .sidebar-toggle .toggle-icon,
.main-header .sidebar-toggle::before {
    display: inline-block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: all 0.3s ease;
}



.main-header .sidebar-toggle .toggle-icon::before,
.main-header .sidebar-toggle .toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: currentColor;
    left: 0;
    transition: all 0.3s ease;
}

.main-header .sidebar-toggle .toggle-icon::before {
    top: -8px;
}

.main-header .sidebar-toggle .toggle-icon::after {
    top: 8px;
}

/* ===================================
   TIME DISPLAY
   =================================== */
.navbar-time {
    float: left;
    padding: 15px 25px;
    color: var(--white);
    font-family: "Segoe UI", sans-serif;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.time-display {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.date-display {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   USER MENU
   =================================== */
.main-header .navbar-custom-menu,
.main-header .navbar-right {
    float: right;
}

.main-header .navbar .nav > li.user > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: var(--white);
    transition: all 0.3s ease;
    background: transparent;
    margin: 1vh auto;
}

.main-header .navbar .nav > li.user > a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    position: relative;
    display: inline-block;
}

.user-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--white);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.main-header .navbar .nav > li.user > a:hover .user-image {
    border-color: var(--tosca-lighter);
    transform: scale(1.05);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.3);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1);
    }
}

.user-name {
    font-weight: 500;
    font-size: 15px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow::before {
    content: '▼';
    font-size: 10px;
    opacity: 0.7;
}

/* ===================================
   DROPDOWN MENU
   =================================== */
.main-header .navbar .nav > li.user .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
    overflow: hidden;
    min-width: 280px;
    padding: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-header {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    padding: 30px 20px;
    text-align: center;
    color: var(--white);
    border-bottom: none;
}

.user-avatar-large {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.user-avatar-large .img-circle {
    width: 80px;
    height: 80px;
    border: 4px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.status-indicator-large {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background: #2ecc71;
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.3);
}

.user-info {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-info-name {
    font-size: 18px;
    font-weight: 600;
    display: block;
}

.user-info-email {
    font-size: 13px;
    opacity: 0.9;
    display: block;
}

.user-footer {
    padding: 20px;
    background: var(--white);
}

.footer-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.footer-buttons .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-profile {
    background: var(--gray-light);
    color: var(--navy-dark);
}

.btn-profile:hover {
    background: var(--tosca-lighter);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-logout {
    background: var(--tosca-primary);
    color: var(--white);
}

.btn-logout:hover {
    background: var(--tosca-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.footer-buttons .btn .icon-user::before {
    content: '👤';
}

.footer-buttons .btn .icon-logout::before {
    content: '🚪';
}

/* ===================================
   SIDEBAR COLLAPSED STATE
   =================================== */
.sidebar-collapse .main-header .logo .logo-lg {
    display: none;
}

.sidebar-collapse .main-header .logo .logo-mini {
    display: block;
}

.sidebar-collapse .main-header .logo {
    width: 70px;
}

.sidebar-collapse .main-header .navbar {
    margin-left: 70px;
}

/* ===================================
   ADDITIONAL POLISH
   =================================== */
.navbar-toggle {
    color: var(--white);
    border: 0;
    margin: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better focus states */
*:focus {
    outline: 2px solid var(--tosca-lighter);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--tosca-lighter);
    outline-offset: 2px;
}

.main-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    padding-top: 70px;
    width: 230px;
    z-index: 810;
    background: var(--navy-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    overflow-x: hidden;
}

.main-sidebar::-webkit-scrollbar {
    width: 6px;
}

.main-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.main-sidebar::-webkit-scrollbar-thumb {
    background: var(--tosca-primary);
    border-radius: 3px;
}

.main-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--tosca-light);
}

/* ===================================
   USER PANEL
   =================================== */
.user-panel {
    position: relative;
    width: 100%;
    padding: 20px 15px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.1) 0%, rgba(13, 127, 109, 0.1) 100%);
    margin-bottom: 10px;
}

.user-panel-avatar {
    position: relative;
    flex-shrink: 0;
}

.user-panel-avatar .img-circle {
    width: 45px;
    height: 45px;
    border: 3px solid var(--tosca-light);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.user-panel:hover .user-panel-avatar .img-circle {
    border-color: var(--tosca-lighter);
    transform: scale(1.05);
}

.user-status-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border: 2px solid var(--navy-dark);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.3);
    animation: pulse 2s infinite;
}

.user-panel-info {
    flex: 1;
    min-width: 0;
}

.user-panel-name {
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-panel-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    color: var(--tosca-light);
    font-weight: 500;
}

/* ===================================
   OUTLET PANEL
   =================================== */
.outlet-panel {
    padding: 15px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border-radius: 8px;
    margin: 0 10px 15px 10px;
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.3);
}

.outlet-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.outlet-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.outlet-label i {
    font-size: 12px;
}

.outlet-name {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.outlet-name:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

.outlet-name i {
    font-size: 12px;
    opacity: 0.7;
}

/* ===================================
   SIDEBAR MENU
   =================================== */
.sidebar {
    padding-bottom: 20px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Menu Headers */
.sidebar-menu > li.header {
    padding: 20px 15px 12px 15px;
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.header-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.header-text {
    white-space: nowrap;
}

/* Menu Items */
.sidebar-menu > li.menu-item {
    position: relative;
    margin: 2px 8px;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-link {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--tosca-light);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-link {
    background: rgba(22, 160, 133, 0.15);
    color: var(--white);
    transform: translateX(3px);
}

.menu-item:hover .menu-link::before {
    transform: scaleY(1);
}

/* Active Menu Item */
.menu-item.active .menu-link,
.menu-link.active {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.3);
}

.menu-item.active .menu-link .menu-icon {
    color: var(--white);
    transform: scale(1.1);
}

/* Menu Icons */
.menu-icon {
    width: 20px;
    height: 20px;
    font-size: 16px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: var(--tosca-light);
}

.menu-item:hover .menu-icon {
    color: var(--tosca-lighter);
    transform: scale(1.1);
}

/* Menu Text */
.menu-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Menu Badge */
.menu-badge {
    padding: 3px 8px;
    background: #e74c3c;
    color: var(--white);
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Highlighted Menu Item (e.g., Transaksi Baru) */
.menu-item.highlight .menu-link {
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.2) 0%, rgba(13, 127, 109, 0.2) 100%);
    border: 1px solid var(--tosca-primary);
}

.menu-item.highlight:hover .menu-link {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    color: var(--white);
    border-color: var(--tosca-light);
}

/* ===================================
   SIDEBAR COLLAPSED STATE
   =================================== */
@media (min-width: 768px) {
    .sidebar-mini.sidebar-collapse .content-wrapper,
    .sidebar-mini.sidebar-collapse .right-side,
    .sidebar-mini.sidebar-collapse .main-footer {
        margin-left: 70px !important;
        z-index: 840;
    }

    .sidebar-mini.sidebar-collapse .main-sidebar {
        transform: translate(0, 0);
        width: 70px !important;
        z-index: 850;
    }

    .sidebar-mini.sidebar-collapse .user-panel-info,
    .sidebar-mini.sidebar-collapse .menu-text,
    .sidebar-mini.sidebar-collapse .menu-badge,
    .sidebar-mini.sidebar-collapse .outlet-panel,
    .sidebar-mini.sidebar-collapse .sidebar-menu li.header {
        display: none !important;
    }

    .sidebar-mini.sidebar-collapse .user-panel {
        justify-content: center;
        padding: 15px 10px;
    }

    .sidebar-mini.sidebar-collapse .menu-link {
        justify-content: center;
        padding: 12px 10px;
    }

    .sidebar-mini.sidebar-collapse .menu-icon {
        font-size: 20px;
    }

    /* Hover expand effect */
    .sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu > li.menu-item:hover > .menu-link > .menu-text {
        display: block !important;
        position: absolute;
        left: 70px;
        top: 0;
        padding: 12px 20px;
        background: var(--tosca-primary);
        color: var(--white);
        border-radius: 0 8px 8px 0;
        white-space: nowrap;
        box-shadow: var(--shadow-md);
        z-index: 1000;
        min-width: 160px;
    }
}

/* ===================================
   ADDITIONAL POLISH
   =================================== */
.sidebar-menu,
.main-sidebar .user-panel {
    white-space: nowrap;
}

.sidebar-menu:hover {
    overflow: visible;
}

/* Smooth transitions for all interactive elements */
.menu-item,
.menu-link,
.menu-icon,
.user-panel-avatar .img-circle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.menu-link:focus {
    outline: 2px solid var(--tosca-lighter);
    outline-offset: 2px;
}

/* Treeview menu styles (if needed) */
.sidebar-menu .treeview-menu {
    padding-left: 25px;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-menu .treeview-menu > li > a {
    padding: 10px 15px;
    color: var(--text-light);
    font-size: 13px;
}

.sidebar-menu .treeview-menu > li > a:hover {
    color: var(--tosca-lighter);
}

/* Arrow for expandable menus */
.menu-link > .fa-angle-left,
.menu-link > .pull-right-container > .fa-angle-left {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.menu-open > .menu-link > .fa-angle-left {
    transform: translateY(-50%) rotate(-90deg);
}

/* Active treeview menu */
.menu-item.active > .treeview-menu {
    display: block;
}

.sidebar-expanded-on-hover .main-sidebar {
    box-shadow: 3px 0 12px rgba(0, 0, 0, 0.2);
}

/* ===================================
   MAIN FOOTER
   =================================== */
.main-footer {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    padding: 20px 25px;
    color: var(--navy-medium);
    margin-left: 230px;
    border-top: 3px solid var(--tosca-primary);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--tosca-primary) 0%,
        var(--tosca-light) 50%,
        var(--tosca-primary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ===================================
   FOOTER CONTAINER
   =================================== */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    gap: 20px;
}

/* ===================================
   FOOTER LEFT
   =================================== */
.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-weight: 600;
    font-size: 14px;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.copyright-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(22, 160, 133, 0.3);
}

.company-link {
    color: var(--tosca-primary);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: all 0.3s ease;
}

.company-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--tosca-primary), var(--tosca-light));
    transition: width 0.3s ease;
}

.company-link:hover {
    color: var(--tosca-dark);
}

.company-link:hover::after {
    width: 100%;
}

.footer-text {
    color: var(--gray-dark);
    font-size: 13px;
    font-weight: 500;
}

/* ===================================
   FOOTER RIGHT
   =================================== */
.footer-right {
    display: flex;
    align-items: center;
}

.version-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.3);
    transition: all 0.3s ease;
}

.version-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.4);
}

.version-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-number {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 12px;
    min-width: 30px;
    text-align: center;
}

/* ===================================
   GENERAL DROPDOWN STYLES
   =================================== */
.dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    border: none;
    border-radius: 12px;
    padding: 8px 0;
    margin-top: 8px;
    background: var(--white);
    min-width: 200px;
    animation: dropdownSlideIn 0.3s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu > li > a {
    color: var(--text-dark);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu > li > a > .glyphicon,
.dropdown-menu > li > a > .fa,
.dropdown-menu > li > a > .ion {
    width: 18px;
    text-align: center;
    color: var(--tosca-primary);
    transition: all 0.3s ease;
}

.dropdown-menu > li > a:hover {
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.1) 0%, rgba(13, 127, 109, 0.1) 100%);
    color: var(--tosca-dark);
    padding-left: 25px;
}

.dropdown-menu > li > a:hover > .glyphicon,
.dropdown-menu > li > a:hover > .fa,
.dropdown-menu > li > a:hover > .ion {
    color: var(--tosca-dark);
    transform: scale(1.1);
}

.dropdown-menu > .divider {
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gray-light) 50%,
        transparent 100%);
    height: 1px;
    margin: 8px 15px;
}

/* ===================================
   NOTIFICATIONS MENU
   =================================== */
.navbar-nav > .notifications-menu > .dropdown-menu,
.navbar-nav > .messages-menu > .dropdown-menu,
.navbar-nav > .tasks-menu > .dropdown-menu {
    width: 320px;
    padding: 0;
    margin: 0;
    top: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.navbar-nav > .notifications-menu > .dropdown-menu > li,
.navbar-nav > .messages-menu > .dropdown-menu > li,
.navbar-nav > .tasks-menu > .dropdown-menu > li {
    position: relative;
}

/* Header */
.navbar-nav > .notifications-menu > .dropdown-menu > li.header,
.navbar-nav > .messages-menu > .dropdown-menu > li.header,
.navbar-nav > .tasks-menu > .dropdown-menu > li.header {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    padding: 15px 20px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-nav > .notifications-menu > .dropdown-menu > li.header::before {
    content: '🔔';
    margin-right: 8px;
}

.navbar-nav > .messages-menu > .dropdown-menu > li.header::before {
    content: '💬';
    margin-right: 8px;
}

.navbar-nav > .tasks-menu > .dropdown-menu > li.header::before {
    content: '✓';
    margin-right: 8px;
}

/* Footer */
.navbar-nav > .notifications-menu > .dropdown-menu > li.footer > a,
.navbar-nav > .messages-menu > .dropdown-menu > li.footer > a,
.navbar-nav > .tasks-menu > .dropdown-menu > li.footer > a {
    background: var(--gray-light);
    padding: 12px 20px;
    color: var(--tosca-primary) !important;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    display: block;
}

.navbar-nav > .notifications-menu > .dropdown-menu > li.footer > a:hover,
.navbar-nav > .messages-menu > .dropdown-menu > li.footer > a:hover,
.navbar-nav > .tasks-menu > .dropdown-menu > li.footer > a:hover {
    background: var(--tosca-primary);
    color: var(--white) !important;
    text-decoration: none;
}

/* Menu List */
.navbar-nav > .notifications-menu > .dropdown-menu > li .menu,
.navbar-nav > .messages-menu > .dropdown-menu > li .menu,
.navbar-nav > .tasks-menu > .dropdown-menu > li .menu {
    max-height: 280px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: hidden;
    overflow-y: auto;
}

.navbar-nav > .notifications-menu > .dropdown-menu > li .menu::-webkit-scrollbar {
    width: 6px;
}

.navbar-nav > .notifications-menu > .dropdown-menu > li .menu::-webkit-scrollbar-track {
    background: var(--gray-light);
}

.navbar-nav > .notifications-menu > .dropdown-menu > li .menu::-webkit-scrollbar-thumb {
    background: var(--tosca-primary);
    border-radius: 3px;
}

.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a,
.navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a,
.navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li > a {
    display: block;
    white-space: nowrap;
    border-bottom: 1px solid var(--gray-light);
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--tosca-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a:hover,
.navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a:hover,
.navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li > a:hover {
    background: linear-gradient(90deg, rgba(22, 160, 133, 0.05) 0%, transparent 100%);
    text-decoration: none;
}

.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a:hover::before {
    transform: scaleY(1);
}

/* ===================================
   NOTIFICATIONS MENU ITEMS
   =================================== */
.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a {
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a > .glyphicon,
.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a > .fa,
.navbar-nav > .notifications-menu > .dropdown-menu > li .menu > li > a > .ion {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    color: var(--white);
    border-radius: 8px;
    flex-shrink: 0;
    font-size: 14px;
}

/* ===================================
   MESSAGES MENU
   =================================== */
.navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a {
    margin: 0;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a > div > img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--tosca-light);
    flex-shrink: 0;
}

.navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a > h4 {
    padding: 0;
    margin: 0;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    position: relative;
    flex: 1;
    min-width: 0;
}

.navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a > h4 > small {
    color: var(--text-light);
    font-size: 11px;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a > p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-nav > .messages-menu > .dropdown-menu > li .menu > li > a:hover > div > img {
    border-color: var(--tosca-dark);
    transform: scale(1.05);
}

/* ===================================
   TASKS MENU
   =================================== */
.navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li > a {
    padding: 15px 20px;
}

.navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li > a > h3 {
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    margin: 0 0 10px 0;
    color: var(--text-dark);
}

.navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li > a > .progress {
    padding: 0;
    margin: 0;
    height: 8px;
    border-radius: 10px;
    background: var(--gray-light);
    overflow: hidden;
}

.navbar-nav > .tasks-menu > .dropdown-menu > li .menu > li > a > .progress > .progress-bar {
    background: linear-gradient(90deg, var(--tosca-primary) 0%, var(--tosca-light) 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* ===================================
   USER MENU
   =================================== */
.navbar-nav > .user-menu > .dropdown-menu {
    border-radius: 12px;
    padding: 0;
    border: none;
    width: 280px;
    overflow: hidden;
}

.navbar-nav > .user-menu > .dropdown-menu,
.navbar-nav > .user-menu > .dropdown-menu > .user-body {
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
    height: auto;
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    position: relative;
    overflow: hidden;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header > img {
    z-index: 5;
    height: 80px;
    width: 80px;
    border: 4px solid var(--white);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header > p {
    z-index: 5;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    position: relative;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header > p > small {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
    opacity: 0.9;
}

.navbar-nav > .user-menu > .dropdown-menu > .user-body {
    padding: 20px;
    border-bottom: 1px solid var(--gray-light);
    border-top: none;
    background: var(--white);
}

.navbar-nav > .user-menu > .dropdown-menu > .user-body a {
    color: var(--tosca-primary) !important;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar-nav > .user-menu > .dropdown-menu > .user-body a:hover {
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.1) 0%, rgba(13, 127, 109, 0.1) 100%);
    color: var(--tosca-dark) !important;
    transform: translateX(3px);
}

.navbar-nav > .user-menu > .dropdown-menu > .user-footer {
    background: var(--white);
    padding: 15px 20px 20px 20px;
}

.navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn-default {
    color: var(--text-dark);
    background: var(--gray-light);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn-default:hover {
    background: var(--tosca-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.navbar-nav > .user-menu .user-image {
    float: left;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 10px;
    margin-top: -2px;
    object-fit: cover;
    border: 2px solid var(--white);
}

@media (max-width: 767px) {
    .navbar-nav > .user-menu .user-image {
        float: none;
        margin-right: 0;
        margin-top: -8px;
        line-height: 10px;
    }
}

/* ===================================
   ANIMATED DROPDOWN
   =================================== */
.open:not(.dropup) > .animated-dropdown-menu {
    backface-visibility: visible !important;
    animation: smoothSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes smoothSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legacy flipInX for backward compatibility */
@keyframes flipInX {
    0% {
        transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        transition-timing-function: ease-in;
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        transition-timing-function: ease-in;
    }
    60% {
        transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        opacity: 1;
    }
    80% {
        transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    }
    100% {
        transform: perspective(400px);
    }
}

/* ===================================
   NAVBAR DROPDOWN POSITIONING
   =================================== */
.navbar-custom-menu > .navbar-nav > li {
    position: relative;
}

.navbar-custom-menu > .navbar-nav > li > .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
}

@media (max-width: 991px) {
    .navbar-custom-menu > .navbar-nav {
        float: right;
    }

    .navbar-custom-menu > .navbar-nav > li {
        position: static;
    }

    .navbar-custom-menu > .navbar-nav > li > .dropdown-menu {
        position: absolute;
        right: 5%;
        left: auto;
        border: 1px solid var(--gray-light);
        background: var(--white);
    }

    .navbar-nav > .notifications-menu > .dropdown-menu > li.footer > a,
    .navbar-nav > .messages-menu > .dropdown-menu > li.footer > a,
    .navbar-nav > .tasks-menu > .dropdown-menu > li.footer > a,
    .navbar-nav > .user-menu > .dropdown-menu > .user-body a {
        background: var(--white) !important;
        color: var(--tosca-primary) !important;
    }

    .navbar-nav > .user-menu > .dropdown-menu > .user-footer .btn-default:hover {
        background: var(--tosca-primary) !important;
        color: var(--white) !important;
    }
}

/* ===================================
   ADDITIONAL ENHANCEMENTS
   =================================== */

/* Badge indicators for notifications */
.dropdown-menu .badge {
    background: var(--tosca-primary);
    color: var(--white);
    border-radius: 10px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
}

/* Dropdown arrow indicator */
.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.open > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Focus states for accessibility */
.dropdown-menu > li > a:focus {
    outline: 2px solid var(--tosca-lighter);
    outline-offset: -2px;
}

/* Empty state for dropdown menus */
.dropdown-menu .empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light);
}

.dropdown-menu .empty-state i {
    font-size: 48px;
    color: var(--gray-medium);
    margin-bottom: 10px;
    opacity: 0.5;
}

.dropdown-menu .empty-state p {
    margin: 0;
    font-size: 14px;
}

    /* ===================================
   LOGIN PAGE - TOSCA THEME
   =================================== */

/* ===================================
   PAGE LAYOUT
   =================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tosca-dark) 0%, var(--navy-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Animated Background Decorations */
.login-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite;
}

.decoration-1 {
    width: 300px;
    height: 300px;
    background: var(--tosca-light);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.decoration-2 {
    width: 400px;
    height: 400px;
    background: var(--tosca-primary);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.decoration-3 {
    width: 250px;
    height: 250px;
    background: var(--tosca-lighter);
    top: 50%;
    left: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* ===================================
   CONTAINER
   =================================== */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

/* ===================================
   LOGIN BOX
   =================================== */
.login-box {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   HEADER SECTION
   =================================== */
.login-header {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.login-logo {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.logo-image {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.login-logo:hover .logo-image {
    transform: scale(1.05);
}

.login-title {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    position: relative;
    z-index: 1;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ===================================
   FORM BODY
   =================================== */
.login-box-body {
    padding: 40px 35px;
    background: var(--white);
}

.form-login {
    margin: 0;
}

/* ===================================
   FORM GROUPS
   =================================== */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-label i {
    color: var(--tosca-primary);
    font-size: 14px;
}

/* ===================================
   INPUT WRAPPER
   =================================== */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    color: var(--tosca-primary);
    font-size: 16px;
    z-index: 1;
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    height: 50px;
    padding: 12px 20px 12px 50px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--tosca-primary);
    background: rgba(22, 160, 133, 0.02);
    box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.1);
}

.form-control:focus + .input-icon,
.form-control:focus ~ .input-icon {
    color: var(--tosca-dark);
    transform: scale(1.1);
}

.form-control::placeholder {
    color: var(--gray-medium);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 18px;
    color: var(--gray-dark);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: all 0.3s ease;
    z-index: 1;
}

.password-toggle:hover {
    color: var(--tosca-primary);
}

/* Error State */
.form-group.has-error .form-control {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.02);
}

.form-group.has-error .input-icon {
    color: #e74c3c;
}

.help-block {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

.help-block i {
    font-size: 12px;
}

/* ===================================
   FORM OPTIONS
   =================================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-medium);
    border-radius: 6px;
    background: var(--white);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark::after {
    content: '✓';
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border-color: var(--tosca-primary);
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

/* Forgot Password Link */
.forgot-password {
    color: var(--tosca-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: var(--tosca-dark);
    text-decoration: underline;
}

/* ===================================
   SUBMIT BUTTON
   =================================== */
.form-submit {
    margin-bottom: 25px;
}

.btn-login {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 160, 133, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-text,
.btn-icon {
    position: relative;
    z-index: 1;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-login:hover .btn-icon {
    transform: translateX(5px);
}

/* ===================================
   FOOTER
   =================================== */
.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.register-link {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.register-link a {
    color: var(--tosca-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.register-link a:hover {
    color: var(--tosca-dark);
    text-decoration: underline;
}

/* ===================================
   LOGIN INFO
   =================================== */
.login-info {
    text-align: center;
    margin-top: 20px;
    animation: fadeIn 1s ease 0.3s both;
}

.login-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .login-page {
        padding: 15px;
    }

    .login-box {
        border-radius: 16px;
    }

    .login-header {
        padding: 30px 20px 25px;
    }

    .login-title {
        font-size: 24px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    .login-box-body {
        padding: 30px 25px;
    }

    .form-control {
        height: 48px;
        font-size: 14px;
    }

    .btn-login {
        height: 48px;
        font-size: 15px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .decoration-1,
    .decoration-2,
    .decoration-3 {
        opacity: 0.05;
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-width: 100px;
    }

    .login-title {
        font-size: 22px;
    }

    .login-box-body {
        padding: 25px 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

/* ===================================
   LOADING STATE
   =================================== */
.btn-login.loading {
    pointer-events: none;
}

.btn-login.loading .btn-text::after {
    content: '';
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   FOCUS STATES FOR ACCESSIBILITY
   =================================== */
.custom-checkbox:focus-within .checkmark,
.forgot-password:focus,
.btn-login:focus {
    outline: 2px solid var(--tosca-lighter);
    outline-offset: 3px;
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .login-decoration,
    .login-info {
        display: none;
    }

    .login-page {
        background: white;
    }

    .login-box {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===================================
   DASHBOARD
   =================================== */

/* ===================================
   WELCOME BANNER
   =================================== */
.welcome-banner {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.welcome-text {
    flex: 1;
}

.welcome-title {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin: 0;
}

.welcome-date {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 10px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.welcome-date i {
    font-size: 16px;
}

/* ===================================
   STATISTICS CARDS
   =================================== */
.stats-row {
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Background Icon */
.stat-bg-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.05;
    pointer-events: none;
}

/* Icon Section */
.stat-icon {
    margin-bottom: 20px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.3s ease;
}

.stat-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Primary Card (Aqua/Tosca) */
.stat-card-primary .icon-wrapper {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.3);
}

.stat-card-primary .stat-footer {
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.1) 0%, rgba(13, 127, 109, 0.1) 100%);
    color: var(--tosca-dark);
}

/* Success Card (Green) */
.stat-card-success .icon-wrapper {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.stat-card-success .stat-footer {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(34, 153, 84, 0.1) 100%);
    color: #229954;
}

/* Warning Card (Orange) */
.stat-card-warning .icon-wrapper {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.stat-card-warning .stat-footer {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(230, 126, 34, 0.1) 100%);
    color: #e67e22;
}

/* Danger Card (Red) */
.stat-card-danger .icon-wrapper {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.stat-card-danger .stat-footer {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    color: #c0392b;
}

/* Content Section */
.stat-content {
    margin-bottom: 20px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 10px;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.stat-trend.positive {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.stat-trend.negative {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.stat-trend i {
    font-size: 10px;
}

/* Footer Link */
.stat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.stat-footer:hover {
    transform: translateX(5px);
}

.stat-footer i {
    transition: transform 0.3s ease;
}

.stat-footer:hover i {
    transform: translateX(3px);
}

/* ===================================
   CHART CARD
   =================================== */
.chart-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 30px;
}

.chart-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.05) 0%, rgba(13, 127, 109, 0.05) 100%);
}

.chart-title-group {
    flex: 1;
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.chart-title i {
    color: var(--tosca-primary);
    font-size: 22px;
}

.chart-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.chart-actions {
    display: flex;
    gap: 8px;
}

.btn-chart-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid var(--gray-light);
    background: var(--white);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-chart-action:hover {
    border-color: var(--tosca-primary);
    color: var(--tosca-primary);
    background: rgba(22, 160, 133, 0.05);
}

.btn-chart-action.active {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border-color: var(--tosca-primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.3);
}

.btn-chart-action i {
    font-size: 12px;
}

.chart-body {
    padding: 30px;
}

.chart-container {
    position: relative;
    height: 350px;
}

.chart-container canvas {
    max-height: 350px;
}

/* ===================================
   QUICK ACTIONS
   =================================== */
.quick-actions-row {
    margin-bottom: 30px;
}

.quick-actions-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px 30px;
    box-shadow: var(--shadow-sm);
}

.quick-actions-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.quick-actions-title i {
    color: var(--tosca-primary);
    font-size: 20px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.05) 0%, rgba(13, 127, 109, 0.05) 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border-color: var(--tosca-primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 160, 133, 0.3);
}

.quick-action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    transition: all 0.3s ease;
}

.quick-action-btn:hover .quick-action-icon {
    background: var(--white);
    color: var(--tosca-primary);
    transform: scale(1.1) rotate(5deg);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 991px) {
    .welcome-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .welcome-date {
        width: 100%;
        justify-content: center;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .chart-actions {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .btn-chart-action {
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .welcome-banner {
        padding: 20px;
        margin-bottom: 20px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .welcome-subtitle {
        font-size: 14px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 28px;
    }

    .icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .chart-header {
        padding: 20px;
    }

    .chart-title {
        font-size: 18px;
    }

    .chart-body {
        padding: 20px;
    }

    .chart-container {
        height: 250px;
    }

    .chart-container canvas {
        max-height: 250px;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .quick-action-btn {
        padding: 20px 15px;
    }

    .quick-action-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 20px;
    }

    .stat-value {
        font-size: 24px;
    }

    .chart-title {
        font-size: 16px;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeInUp 0.5s ease;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.chart-card {
    animation: fadeInUp 0.5s ease 0.5s both;
}

.quick-actions-card {
    animation: fadeInUp 0.5s ease 0.6s both;
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .welcome-banner,
    .quick-actions-card,
    .stat-footer,
    .chart-actions {
        display: none;
    }

    .stat-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .chart-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===================================
   BOX CONTAINER
   =================================== */
.box,
.modern-box {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    overflow: visible;
    transition: all 0.3s ease;
}

.box:hover {
    box-shadow: var(--shadow-md);
}

/* ===================================
   BOX HEADER
   =================================== */
.box-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.03) 0%, rgba(13, 127, 109, 0.03) 100%);
}

.box-header-left {
    flex: 1;
}

.box-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.box-title i {
    color: var(--tosca-primary);
    font-size: 22px;
}

.box-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.box-header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.4);
    color: var(--white);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--gray-medium);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    color: var(--white);
}

.btn-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    color: var(--white);
}

.report-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

/* Report Mode Tabs */
.report-mode-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.report-mode-tabs .mode-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--gray-light);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-mode-tabs .mode-tab:hover {
    background: var(--tosca-lighter);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.report-mode-tabs .mode-tab.active {
    background: var(--tosca-primary);
    color: var(--white);
    border-color: var(--tosca-dark);
    box-shadow: var(--shadow-md);
}

.report-mode-tabs .mode-tab i {
    font-size: 16px;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-export {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-export i {
    font-size: 16px;
}

/* PDF Button */
.btn-pdf {
    background: #e74c3c;
    color: var(--white);
}

.btn-pdf:hover {
    background: #c0392b;
}

/* Excel Button */
.btn-excel {
    background: #27ae60;
    color: var(--white);
}

.btn-excel:hover {
    background: #229954;
}

/* Small buttons */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 12px;
}

/* Icon-only buttons */
.btn-icon-only {
    padding: 10px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-only.btn-sm {
    width: 32px;
    height: 32px;
    padding: 8px;
}

/* ===================================
   BOX BODY
   =================================== */
.box-body {
    padding: 30px;
}

/* ===================================
   TABLE WRAPPER
   =================================== */
.table-wrapper {
    overflow-x: auto;
}

/* ===================================
   MODERN TABLE
   =================================== */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

/* Table Header */
.table-modern thead {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
}

.table-modern thead th {
    padding: 16px 20px;
    font-weight: 600;
    text-align: left;
    color: var(--white);
    border: none;
    white-space: nowrap;
    position: relative;
}

.table-modern thead th:first-child {
    border-radius: 12px 0 0 0;
}

.table-modern thead th:last-child {
    border-radius: 0 12px 0 0;
}

.th-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.th-content i {
    font-size: 14px;
    opacity: 0.9;
}

/* Table Body */
.table-modern tbody tr {
    background: var(--white);
    transition: all 0.3s ease;
}

.table-modern tbody tr:nth-child(even) {
    background: rgba(22, 160, 133, 0.02);
}

.table-modern tbody tr:hover {
    background: rgba(22, 160, 133, 0.08);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table-modern tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-light);
    color: var(--text-dark);
    vertical-align: middle;
}

/* First column (numbers) */
.table-modern tbody td:first-child {
    font-weight: 600;
    color: var(--tosca-primary);
}

/* Action buttons in table */
.table-modern .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* ===================================
   DATATABLES CUSTOMIZATION
   =================================== */

/* DataTables wrapper */
.dataTables_wrapper {
    padding: 0;
}

/* Search Box */
.dataTables_filter {
    position: relative;
    margin-bottom: 20px;
}

.dataTables_filter label {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: var(--tosca-primary);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.dataTables_filter input.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dataTables_filter input.search-input:focus {
    outline: none;
    border-color: var(--tosca-primary);
    box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.1);
}

/* Length Menu */
.dataTables_length {
    margin-bottom: 20px;
}

.dataTables_length label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.dataTables_length select {
    padding: 8px 35px 8px 12px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2316a085' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.dataTables_length select:focus {
    outline: none;
    border-color: var(--tosca-primary);
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

/* Info Text */
.dataTables_info {
    color: var(--text-light);
    font-size: 14px;
    padding: 15px 0;
    font-weight: 500;
}

/* Processing */
.dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid var(--gray-light);
    border-top-color: var(--tosca-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner p {
    color: var(--text-dark);
    font-size: 14px;
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--gray-medium);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Pagination */
.dataTables_paginate {
    padding: 15px 0;
}

.pagination-modern {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-modern li {
    display: inline-block;
}

.pagination-modern li a,
.pagination-modern li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--white);
}

.pagination-modern li a:hover {
    border-color: var(--tosca-primary);
    background: rgba(22, 160, 133, 0.1);
    color: var(--tosca-dark);
    transform: translateY(-2px);
}

.pagination-modern li.active span,
.pagination-modern li.active a {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border-color: var(--tosca-primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.3);
}

.pagination-modern li.disabled a,
.pagination-modern li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===================================
   STATUS BADGES
   =================================== */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-status.active,
.badge-status.success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.badge-status.inactive,
.badge-status.danger {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.badge-status.warning {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.badge-status.info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.badge-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 991px) {
    .box-header {
        padding: 20px 25px;
    }

    .box-body {
        padding: 25px;
    }

    .box-title {
        font-size: 18px;
    }

    .dataTables_wrapper .row {
        margin: 0 -10px;
    }

    .dataTables_wrapper .col-sm-6 {
        padding: 0 10px;
    }
}

@media (max-width: 767px) {
    .box-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .box-header-right {
        width: 100%;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }

    .box-body {
        padding: 20px 15px;
    }

    .table-modern thead th,
    .table-modern tbody td {
        padding: 12px 15px;
        font-size: 13px;
    }

    .dataTables_length,
    .dataTables_filter {
        margin-bottom: 15px;
    }

    .pagination-modern li a,
    .pagination-modern li span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    /* Stack table info and pagination */
    .dataTables_info {
        text-align: center;
        margin-bottom: 10px;
    }

    .pagination-modern {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn-sm {
        padding: 6px 10px;
        font-size: 12px;
    }

    .table-modern {
        font-size: 12px;
    }

    .pagination-modern li a,
    .pagination-modern li span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box {
    animation: fadeIn 0.4s ease;
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .box-header-right,
    .dataTables_length,
    .dataTables_filter,
    .dataTables_paginate,
    .table-modern .btn {
        display: none;
    }

    .box {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .table-modern tbody tr:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ===================================
   MODAL & BACKDROP FIX
   =================================== */
.modal-backdrop {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}

.modal.fade .modal-dialog {
    transform: translate(0, -25%);
    transition: transform 0.3s ease-out;
}

.modal.in .modal-dialog {
    transform: translate(0, 0);
}

/* ===================================
   MODAL DIALOG
   =================================== */
.modal-dialog {
    position: relative;
    width: auto;
    margin: 30px auto;
    pointer-events: auto;
    z-index: 1050;
    max-height: 90vh; /* batasi tinggi maksimum modal */
    display: flex;
    flex-direction: column;
}
.modal-lg {
    max-width: 800px;
}

.modal-md {
    max-width: 600px;
}

.modal-sm {
    max-width: 400px;
}

.modal.show .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
}


/* Modern Modal */
.modern-modal {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    margin: 8vh auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   MODAL HEADER
   =================================== */
.modern-modal .modal-header {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    padding: 25px 30px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.modern-modal .modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.modern-modal .modal-title {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.modern-modal .modal-title i {
    font-size: 22px;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ===================================
   MODAL BODY
   =================================== */
.modern-modal .modal-body {
    padding: 35px 30px;
    background: var(--white);
}

/* ===================================
   FORM GROUPS
   =================================== */
.form-group {
    margin-bottom: 25px;
}

.form-group:last-child {
    margin-bottom: 0;
}

/* Form Labels */
.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-label i {
    color: var(--tosca-primary);
    font-size: 14px;
}

.form-label.required::after {
    content: '*';
    color: #e74c3c;
    margin-left: 4px;
    font-weight: 700;
}

/* ===================================
   INPUT GROUPS
   =================================== */
.input-group-modern {
    position: relative;
    display: flex;
    align-items: stretch;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tosca-primary);
    font-size: 16px;
    z-index: 1;
    transition: all 0.3s ease;
    pointer-events: none;
}

.textarea-icon {
    top: 18px;
    transform: none;
}

/* ===================================
   TEXT INPUTS
   =================================== */
.modern-input,
.form-control {
    width: 100%;
    height: 48px;
    padding: 12px 20px 12px 50px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
}

.modern-input:focus,
.form-control:focus {
    outline: none;
    border-color: var(--tosca-primary);
    background: rgba(22, 160, 133, 0.02);
    box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.1);
}

.modern-input:focus ~ .input-icon,
.form-control:focus ~ .input-icon {
    color: var(--tosca-dark);
    transform: translateY(-50%) scale(1.1);
}

.modern-input::placeholder,
.form-control::placeholder {
    color: var(--gray-medium);
}

/* Disabled state */
.modern-input:disabled,
.form-control:disabled {
    background: var(--gray-light);
    color: var(--gray-dark);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===================================
   TEXTAREA
   =================================== */
.modern-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px 20px 14px 50px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.modern-textarea:focus {
    outline: none;
    border-color: var(--tosca-primary);
    background: rgba(22, 160, 133, 0.02);
    box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.1);
}

.modern-textarea:focus ~ .input-icon {
    color: var(--tosca-dark);
}

/* ===================================
   SELECT DROPDOWN
   =================================== */
.modern-select {
    width: 100%;
    height: 48px;
    padding: 12px 40px 12px 50px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2316a085' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

.modern-select:focus {
    outline: none;
    border-color: var(--tosca-primary);
    background-color: rgba(22, 160, 133, 0.02);
    box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.1);
}

.modern-select:focus ~ .input-icon {
    color: var(--tosca-dark);
    transform: translateY(-50%) scale(1.1);
}

.modern-select option {
    padding: 10px;
}

/* ===================================
   CHECKBOX
   =================================== */
.modern-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding: 10px 0;
}

.modern-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-medium);
    border-radius: 6px;
    background: var(--white);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkbox-box::after {
    content: '✓';
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.modern-checkbox input[type="checkbox"]:checked ~ .checkbox-box {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border-color: var(--tosca-primary);
}

.modern-checkbox input[type="checkbox"]:checked ~ .checkbox-box::after {
    opacity: 1;
    transform: scale(1);
}

.modern-checkbox:hover .checkbox-box {
    border-color: var(--tosca-primary);
}

.checkbox-label {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

/* ===================================
   RADIO BUTTON
   =================================== */
.modern-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding: 10px 0;
}

.modern-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-circle {
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-medium);
    border-radius: 50%;
    background: var(--white);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.radio-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.modern-radio input[type="radio"]:checked ~ .radio-circle {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border-color: var(--tosca-primary);
}

.modern-radio input[type="radio"]:checked ~ .radio-circle::after {
    opacity: 1;
    transform: scale(1);
}

.modern-radio:hover .radio-circle {
    border-color: var(--tosca-primary);
}

.radio-label {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

/* ===================================
   FILE UPLOAD
   =================================== */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
}

.file-upload-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 20px;
    border: 2px dashed var(--gray-medium);
    border-radius: 10px;
    background: rgba(22, 160, 133, 0.03);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-button:hover {
    border-color: var(--tosca-primary);
    background: rgba(22, 160, 133, 0.08);
}

.file-upload-button i {
    font-size: 32px;
    color: var(--tosca-primary);
}

.file-upload-text {
    text-align: center;
}

.file-upload-text .main-text {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.file-upload-text .sub-text {
    font-size: 12px;
    color: var(--text-light);
}

/* File preview */
.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(22, 160, 133, 0.05);
    border-radius: 8px;
    margin-top: 10px;
}

.file-preview i {
    font-size: 24px;
    color: var(--tosca-primary);
}

.file-preview-info {
    flex: 1;
}

.file-preview-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.file-preview-size {
    font-size: 12px;
    color: var(--text-light);
}

.file-preview-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}

.file-preview-remove:hover {
    transform: scale(1.2);
}

/* ===================================
   SWITCH TOGGLE
   =================================== */
.switch-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.switch-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.switch-slider {
    width: 50px;
    height: 26px;
    background: var(--gray-medium);
    border-radius: 13px;
    position: relative;
    transition: all 0.3s ease;
}

.switch-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-toggle input[type="checkbox"]:checked ~ .switch-slider {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
}

.switch-toggle input[type="checkbox"]:checked ~ .switch-slider::after {
    left: 27px;
}

.switch-label {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

/* ===================================
   INPUT GROUPS WITH ADDONS
   =================================== */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    border-radius: 0;
}

.input-group .form-control:first-child {
    border-radius: 10px 0 0 10px;
}

.input-group .form-control:last-child {
    border-radius: 0 10px 10px 0;
}

.input-group-addon {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    color: var(--white);
    border: 2px solid var(--tosca-primary);
    font-weight: 600;
    white-space: nowrap;
}

.input-group-addon:first-child {
    border-radius: 10px 0 0 10px;
    border-right: none;
}

.input-group-addon:last-child {
    border-radius: 0 10px 10px 0;
    border-left: none;
}

/* ===================================
   HELP TEXT & ERRORS
   =================================== */
.help-block {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.help-block.with-errors {
    color: #e74c3c;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* .help-block.with-errors::before {
    content: '⚠';
    font-size: 14px;
} */

.form-group.has-error .modern-input,
.form-group.has-error .modern-textarea,
.form-group.has-error .modern-select,
.form-group.has-error .form-control {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.02);
}

.form-group.has-error .input-icon {
    color: #e74c3c;
}

.form-group.has-success .modern-input,
.form-group.has-success .modern-textarea,
.form-group.has-success .modern-select,
.form-group.has-success .form-control {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.02);
}

.form-group.has-success .input-icon {
    color: #27ae60;
}

/* ===================================
   MODAL FOOTER
   =================================== */
.modern-modal .modal-footer {
    padding: 20px 30px;
    background: var(--gray-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-footer .btn {
    margin: 0;
}

/* ===================================
   FORM LAYOUTS
   =================================== */

/* Inline Form */
.form-inline .form-group {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 0;
}

.form-inline .form-label {
    margin-right: 10px;
    margin-bottom: 0;
}

/* Grid Form */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-col {
    flex: 1;
}

.form-col-2 {
    flex: 0 0 calc(50% - 10px);
}

.form-col-3 {
    flex: 0 0 calc(33.333% - 13.333px);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 15px;
    }

    .modal-lg,
    .modal-md {
        max-width: 100%;
    }

    .modern-modal .modal-header {
        padding: 20px;
    }

    .modern-modal .modal-title {
        font-size: 18px;
    }

    .modern-modal .modal-body {
        padding: 25px 20px;
    }

    .modern-modal .modal-footer {
        padding: 15px 20px;
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-col,
    .form-col-2,
    .form-col-3 {
        flex: 1;
        width: 100%;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.form-group.has-error .modern-input,
.form-group.has-error .modern-textarea,
.form-group.has-error .modern-select {
    animation: shake 0.5s;
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .modal-header,
    .modal-footer,
    .close-button {
        display: none;
    }

    .modern-modal {
        box-shadow: none;
    }

    .modern-modal .modal-body {
        padding: 0;
    }
}

/* ===================================
   SCAN SECTION
   =================================== */
.scan-section {
    margin-bottom: 25px;
}

.scan-input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
    max-width: 700px;
}

.scan-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tosca-primary);
    font-size: 24px;
    z-index: 1;
}

.scan-input {
    flex: 1;
    height: 60px;
    padding: 15px 140px 15px 60px;
    border: 2px solid var(--gray-light);
    border-radius: 12px 0 0 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.scan-input:focus {
    outline: none;
    border-color: var(--tosca-primary);
    box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.1);
}

.btn-scan {
    width: 120px;
    height: 60px;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border: none;
    border-radius: 0 12px 12px 0;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-scan:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.4);
}

.btn-scan i {
    font-size: 18px;
}

/* ===================================
   PRODUCT TABS
   =================================== */
.product-tabs {
    margin-top: 30px;
}

.nav-tabs-modern {
    border-bottom: 2px solid var(--gray-light);
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
}

.nav-tabs-modern > li {
    margin-bottom: -2px;
}

.nav-tabs-modern > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 10px 10px 0 0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-tabs-modern > li > a:hover {
    background: rgba(22, 160, 133, 0.05);
    color: var(--tosca-primary);
}

.nav-tabs-modern > li.active > a,
.nav-tabs-modern > li.active > a:hover,
.nav-tabs-modern > li.active > a:focus {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    color: var(--white);
    border: none;
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.3);
}

.nav-tabs-modern > li > a i {
    font-size: 18px;
}

/* ===================================
   PRODUCT GRID
   =================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.product-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tosca-primary) 0%, var(--tosca-light) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    border-color: var(--tosca-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(22, 160, 133, 0.2);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-icon i {
    font-size: 28px;
    color: var(--white);
}

.product-info {
    flex: 1;
}

.product-code {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--tosca-primary);
}

.product-action {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.product-card:hover .product-action {
    opacity: 1;
    transform: scale(1);
}

.product-action i {
    font-size: 20px;
    color: var(--tosca-primary);
}

/* Package Card Variants */
.package-card .product-icon {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.package-card:hover::before {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
}

.package-card:hover {
    border-color: #f39c12;
}

.package-desc {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.package-items {
    margin: 12px 0;
    padding: 12px;
    background: rgba(243, 156, 18, 0.05);
    border-radius: 8px;
}

.package-item {
    font-size: 12px;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.package-item:last-child {
    margin-bottom: 0;
}

.package-item i {
    color: #27ae60;
    font-size: 10px;
}

.package-price {
    color: #f39c12;
}

.package-discount {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* ===================================
   PAYMENT SECTION
   =================================== */
.payment-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--gray-light);
}

.display-card {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(22, 160, 133, 0.3);
    position: relative;
    overflow: hidden;
}

.display-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.display-main {
    position: relative;
    z-index: 1;
}

.display-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.display-amount {
    color: var(--white);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.display-terbilang {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.display-terbilang i {
    color: var(--white);
    font-size: 18px;
}

.display-terbilang span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
}

/* Payment Form */
.payment-form {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--gray-light);
}

.payment-form .form-group {
    margin-bottom: 20px;
}

.payment-form .form-label {
    font-size: 13px;
}

.payment-input {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--tosca-primary) !important;
    height: 56px !important;
}

.payment-result {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #27ae60 !important;
    background: rgba(39, 174, 96, 0.05) !important;
}

.btn-member {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border: none;
    border-radius: 8px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.btn-member:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.4);
}

/* ===================================
   PAYMENT FOOTER
   =================================== */
.payment-footer {
    padding: 20px 30px;
    background: var(--gray-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.payment-footer .btn {
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(39, 174, 96, 0.5);
    }
}

/* ===================================
   EMPTY CART STATE
   =================================== */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart i {
    font-size: 80px;
    color: var(--gray-medium);
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-cart p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-cart small {
    font-size: 14px;
    color: var(--text-light);
}

/* ===================================
   QUANTITY INPUT IN TABLE
   =================================== */
.quantity {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.quantity:focus {
    border-color: var(--tosca-primary);
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
    outline: none;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 991px) {
    .scan-input-wrapper {
        max-width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .display-amount {
        font-size: 42px;
    }

    .payment-form {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .scan-input {
        height: 50px;
        padding: 12px 100px 12px 50px;
        font-size: 14px;
    }

    .scan-icon {
        font-size: 20px;
        left: 15px;
    }

    .btn-scan {
        width: 90px;
        height: 50px;
        font-size: 14px;
    }

    .btn-scan span {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        padding: 15px;
    }

    .product-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .product-icon i {
        font-size: 24px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 14px;
    }

    .display-card {
        padding: 20px;
    }

    .display-amount {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .display-terbilang {
        padding: 12px 15px;
    }

    .display-terbilang span {
        font-size: 12px;
    }

    .payment-form {
        padding: 20px;
    }

    .payment-footer {
        flex-direction: column-reverse;
    }

    .payment-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-tabs-modern > li > a {
        padding: 12px 16px;
        font-size: 14px;
    }

    .nav-tabs-modern > li > a span {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .display-amount {
        font-size: 28px;
    }

    .quantity {
        width: 60px;
        height: 36px;
        font-size: 14px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .scan-section,
    .product-tabs,
    .payment-footer,
    .box-header {
        display: none;
    }

    .display-card {
        background: white;
        color: black;
        border: 1px solid #ddd;
    }

    .display-amount,
    .display-label,
    .display-terbilang span {
        color: black;
    }

    .payment-form {
        border: 1px solid #ddd;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.4s ease;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

/* ===================================
   MEMBER SEARCH SECTION
   =================================== */
.member-search-section {
    margin-bottom: 25px;
}

.search-box-wrapper {
    position: relative;
    max-width: 100%;
}

.search-icon-member {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tosca-primary);
    font-size: 16px;
    z-index: 1;
}

.member-search-input {
    width: 100%;
    height: 50px;
    padding: 12px 20px 12px 50px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
}

.member-search-input:focus {
    outline: none;
    border-color: var(--tosca-primary);
    background: rgba(22, 160, 133, 0.02);
    box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.1);
}

.member-search-input::placeholder {
    color: var(--gray-medium);
}

/* ===================================
   MEMBER TABLE STYLES
   =================================== */
.table-member tbody tr.member-row {
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-member tbody tr.member-row:hover {
    background: rgba(22, 160, 133, 0.05) !important;
    transform: scale(1.005);
}

.member-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    color: var(--white);
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
}

.member-code {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--tosca-primary);
    font-size: 13px;
}

.member-code i {
    font-size: 14px;
}

.member-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.member-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 13px;
}

.member-phone i {
    color: var(--tosca-primary);
    font-size: 12px;
}

.member-address {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.4;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ===================================
   SELECT MEMBER BUTTON
   =================================== */
.btn-select-member {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-select-member:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.4);
    color: var(--white);
}

.btn-select-member:active {
    transform: translateY(0);
}

.btn-select-member i {
    font-size: 14px;
}

/* ===================================
   MODAL FOOTER INFO
   =================================== */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.footer-info i {
    color: var(--tosca-primary);
    font-size: 16px;
}

.footer-info strong {
    color: var(--tosca-primary);
    font-weight: 700;
}

/* ===================================
   MEMBER BADGES (Optional)
   =================================== */
.member-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(22, 160, 133, 0.1);
    color: var(--tosca-primary);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-badge.vip {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: var(--white);
}

.member-badge i {
    font-size: 10px;
}

/* ===================================
   EMPTY STATE
   =================================== */
.member-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.member-empty-state i {
    font-size: 64px;
    color: var(--gray-medium);
    margin-bottom: 20px;
    opacity: 0.3;
}

.member-empty-state p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.member-empty-state .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===================================
   HIGHLIGHT SEARCH RESULTS
   =================================== */
.highlight-search {
    background: rgba(255, 235, 59, 0.4);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* ===================================
   MEMBER STATS (Optional Enhancement)
   =================================== */
.member-stats {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.05) 0%, rgba(13, 127, 109, 0.05) 100%);
    border-radius: 10px;
    margin-bottom: 20px;
}

.member-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
}

.member-stat-info {
    display: flex;
    flex-direction: column;
}

.member-stat-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--tosca-primary);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 991px) {
    .member-address {
        max-height: 60px;
        -webkit-line-clamp: 3;
    }

    .btn-select-member span {
        display: none;
    }

    .btn-select-member {
        padding: 8px 12px;
    }
}

@media (max-width: 767px) {
    .member-search-input {
        height: 46px;
        padding: 10px 15px 10px 45px;
        font-size: 13px;
    }

    .search-icon-member {
        left: 15px;
        font-size: 14px;
    }

    .modal-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .footer-info {
        justify-content: center;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .member-stats {
        flex-direction: column;
        gap: 10px;
    }

    /* Stack table on mobile for better readability */
    .table-member thead {
        display: none;
    }

    .table-member tbody tr.member-row {
        display: block;
        margin-bottom: 15px;
        border: 2px solid var(--gray-light);
        border-radius: 12px;
        padding: 15px;
    }

    .table-member tbody tr.member-row:hover {
        transform: none;
    }

    .table-member tbody td {
        display: block;
        border: none;
        padding: 8px 0;
        text-align: left !important;
    }

    .table-member tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-light);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: block;
        margin-bottom: 5px;
    }

    .table-member tbody td:first-child {
        border-bottom: 1px solid var(--gray-light);
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .table-member tbody td:first-child::before {
        content: '';
        display: none;
    }

    .member-number {
        width: auto;
        padding: 5px 12px;
        display: inline-flex;
    }

    .table-member tbody td:last-child {
        padding-top: 15px;
        border-top: 1px solid var(--gray-light);
        margin-top: 10px;
    }

    .btn-select-member {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .btn-select-member span {
        display: inline;
    }
}

@media (max-width: 480px) {
    .member-code,
    .member-phone {
        font-size: 12px;
    }

    .member-name {
        font-size: 13px;
    }

    .member-address {
        font-size: 12px;
    }
}

/* ===================================
   LOADING STATE
   =================================== */
.member-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.member-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-light);
    border-top-color: var(--tosca-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===================================
   DATATABLE INTEGRATION
   =================================== */
.table-member_wrapper .dataTables_filter {
    display: none; /* Hide default search if using custom */
}

.table-member_wrapper .dataTables_info {
    color: var(--text-light);
    font-size: 13px;
}

.table-member_wrapper .dataTables_paginate {
    margin-top: 20px;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.member-row {
    animation: fadeInRow 0.3s ease;
}

.member-row:nth-child(1) { animation-delay: 0.05s; }
.member-row:nth-child(2) { animation-delay: 0.1s; }
.member-row:nth-child(3) { animation-delay: 0.15s; }
.member-row:nth-child(4) { animation-delay: 0.2s; }
.member-row:nth-child(5) { animation-delay: 0.25s; }

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .member-search-section,
    .modal-footer,
    .btn-select-member,
    .close-button {
        display: none;
    }

    .modern-modal {
        box-shadow: none;
    }

    .modal-header {
        background: white;
        color: black;
        border-bottom: 2px solid #ddd;
    }

    .modal-title i {
        color: black;
    }

    .table-member {
        font-size: 12px;
    }

    .member-row:hover {
        background: transparent !important;
        transform: none !important;
    }
}

/* ===================================
   PRODUCT PAGE ADDITIONAL STYLES
   =================================== */

/* ===================================
   BUTTON GROUP MODERN
   =================================== */
.btn-group-modern {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-group-modern .btn {
    margin: 0;
}

/* Info Button Style */
.btn-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    color: var(--white);
}

/* ===================================
   MODERN CHECKBOX IN TABLE
   =================================== */
.checkbox-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.checkbox-modern input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--white);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.checkbox-mark::after {
    content: '✓';
    color: var(--white);
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.checkbox-modern input[type="checkbox"]:checked ~ .checkbox-mark {
    background: var(--white);
    border-color: var(--white);
}

.checkbox-modern input[type="checkbox"]:checked ~ .checkbox-mark::after {
    opacity: 1;
    transform: scale(1);
    color: var(--tosca-primary);
}

.checkbox-modern:hover .checkbox-mark {
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* Checkbox in table body */
.table-modern tbody .checkbox-modern .checkbox-mark {
    border-color: var(--gray-medium);
    background: var(--white);
}

.table-modern tbody .checkbox-modern input[type="checkbox"]:checked ~ .checkbox-mark {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    border-color: var(--tosca-primary);
}

.table-modern tbody .checkbox-modern input[type="checkbox"]:checked ~ .checkbox-mark::after {
    color: var(--white);
}

.table-modern tbody .checkbox-modern:hover .checkbox-mark {
    border-color: var(--tosca-primary);
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

/* ===================================
   TABLE DATA STYLING
   =================================== */

/* Product Code */
.product-code-cell {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--tosca-primary);
    font-size: 13px;
}

/* Price Cells */
.price-cell {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.price-buy {
    color: #e67e22;
}

.price-sell {
    color: #27ae60;
}

/* Discount Cell */
.discount-cell {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.discount-cell i {
    font-size: 10px;
}

/* Stock Cell */
.stock-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
}

.stock-high {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.stock-medium {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.stock-low {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.stock-out {
    background: rgba(189, 195, 199, 0.2);
    color: #95a5a6;
}

/* Category Badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(22, 160, 133, 0.1);
    color: var(--tosca-primary);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.category-badge i {
    font-size: 11px;
}

/* Outlet Badge */
.outlet-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.outlet-badge i {
    font-size: 11px;
}

/* Merk/Brand Cell */
.merk-cell {
    color: var(--text-light);
    font-size: 13px;
    font-style: italic;
}

/* ===================================
   ACTION BUTTONS IN TABLE
   =================================== */
.table-modern .btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.table-modern .btn-sm i {
    font-size: 12px;
}

.table-modern .btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: var(--white);
    border: none;
}

.table-modern .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.4);
    color: var(--white);
}

.table-modern .btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--white);
    border: none;
}

.table-modern .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
    color: var(--white);
}

/* ===================================
   SELECTION INFO BAR
   =================================== */
.selection-info {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(22, 160, 133, 0.4);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 15px;
    animation: slideUp 0.3s ease;
}

.selection-info.show {
    display: flex;
}

.selection-info-text {
    font-weight: 600;
    font-size: 14px;
}

.selection-info-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
}

.selection-info .btn {
    padding: 8px 16px;
    font-size: 13px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   BARCODE PRINT INDICATOR
   =================================== */
.barcode-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.barcode-indicator i {
    font-size: 10px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 991px) {
    .btn-group-modern {
        width: 100%;
    }

    .btn-group-modern .btn {
        flex: 1;
    }

    .selection-info {
        left: 20px;
        right: 20px;
        bottom: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .btn-group-modern {
        flex-direction: column;
    }

    .btn-group-modern .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-action span {
        display: inline;
    }

    .selection-info {
        flex-direction: column;
        text-align: center;
    }

    /* Simplify table cells on mobile */
    .category-badge,
    .outlet-badge,
    .discount-cell {
        font-size: 11px;
        padding: 3px 8px;
    }

    .stock-cell {
        min-width: 40px;
        padding: 4px 8px;
        font-size: 12px;
    }

    .price-cell {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .table-modern .btn-sm {
        padding: 5px 8px;
        font-size: 12px;
    }

    .table-modern .btn-sm span {
        display: none;
    }

    .checkbox-mark {
        width: 18px;
        height: 18px;
    }

    .checkbox-mark::after {
        font-size: 12px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .btn-group-modern,
    .selection-info,
    .checkbox-modern,
    .table-modern .btn {
        display: none !important;
    }

    .table-modern {
        font-size: 11px;
    }

    .table-modern thead {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}

/* ===================================
   LOADING STATE FOR CHECKBOX
   =================================== */
.checkbox-loading {
    pointer-events: none;
    opacity: 0.6;
}

.checkbox-loading .checkbox-mark {
    animation: pulse-checkbox 1s infinite;
}

@keyframes pulse-checkbox {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===================================
   PAKET FORM ADDITIONAL STYLES
   =================================== */

/* Section Divider */
.section-divider {
    margin: 30px 0 20px;
    text-align: center;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-light);
}

.divider-text {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    background: var(--white);
    color: var(--tosca-primary);
    font-weight: 700;
    font-size: 15px;
    z-index: 1;
}

.divider-text i {
    margin-right: 8px;
}

/* Komposisi Section */
.komposisi-section {
    background: rgba(22, 160, 133, 0.02);
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.komposisi-hint {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(22, 160, 133, 0.05);
    border-radius: 8px;
}

.komposisi-hint i {
    color: var(--tosca-primary);
    margin-right: 6px;
}

/* Produk List */
.produk-list {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

.produk-list::-webkit-scrollbar {
    width: 8px;
}

.produk-list::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 4px;
}

.produk-list::-webkit-scrollbar-thumb {
    background: var(--tosca-primary);
    border-radius: 4px;
}

.produk-list::-webkit-scrollbar-thumb:hover {
    background: var(--tosca-dark);
}

/* Produk Item */
.produk-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    margin-bottom: 12px;
    background: var(--white);
    transition: all 0.3s ease;
}

.produk-item:hover {
    border-color: var(--tosca-primary);
    background: rgba(22, 160, 133, 0.02);
}

.produk-item.active {
    border-color: var(--tosca-primary);
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.08) 0%, rgba(13, 127, 109, 0.08) 100%);
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.15);
}

/* Produk Checkbox */
.produk-checkbox-wrapper {
    flex-shrink: 0;
}

.produk-item .modern-checkbox {
    margin: 0;
}

.produk-item .checkbox-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

/* Produk Info */
.produk-info {
    flex: 1;
    min-width: 0;
}

.produk-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 5px;
}

.produk-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
}

.produk-code {
    color: var(--tosca-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.produk-separator {
    color: var(--gray-medium);
}

.produk-price {
    color: #27ae60;
    font-weight: 600;
}

.produk-stock {
    color: var(--text-light);
}

/* Produk Quantity */
.produk-quantity {
    display: none;
    flex-direction: column;
    gap: 6px;
    min-width: 120px;
}

.produk-item.active .produk-quantity {
    display: flex;
}

.produk-quantity label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.jumlah-produk {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 2px solid var(--tosca-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--tosca-dark);
    transition: all 0.3s ease;
}

.jumlah-produk:focus {
    outline: none;
    border-color: var(--tosca-dark);
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.15);
}

/* Empty State */
.produk-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.produk-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 767px) {
    .komposisi-section {
        padding: 15px;
    }

    .produk-list {
        max-height: 300px;
    }

    .produk-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .produk-checkbox-wrapper {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .produk-info {
        width: 100%;
    }

    .produk-quantity {
        width: 100%;
        min-width: auto;
    }

    .produk-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .produk-separator {
        display: none;
    }

    .komposisi-hint {
        font-size: 12px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .section-divider {
        margin: 20px 0 15px;
    }

    .divider-text {
        font-size: 14px;
        padding: 0 15px;
    }

    .produk-name {
        font-size: 13px;
    }

    .produk-meta {
        font-size: 11px;
    }
}

.product-grid {
    display: grid;
    /* 6 kolom per baris */
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 15px;
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

/* Responsive - tablet */
@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive - mobile */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Update ukuran product card agar lebih compact */
.product-card {
    position: relative;
    background: white;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #ecf0f1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px; /* Ukuran minimal lebih kecil */
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
}

/* Update ukuran gambar produk */
.product-image {
    width: 100%;
    height: 100px; /* Lebih kecil dari 120px */
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-icon-fallback {
    font-size: 36px; /* Lebih kecil dari 48px */
    color: #bdc3c7;
}

/* Update info produk agar lebih compact */
/* Update info produk agar lebih compact */
/* Update info produk agar lebih compact */
.product-info {
    padding: 10px; /* Lebih kecil dari 12px */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-code {
    font-size: 9px; /* Lebih kecil dari 10px */
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
}

.product-name {
    font-size: 11px; /* Lebih kecil dari 13px */
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 26px; /* Untuk konsistensi tinggi */
}

.product-price {
    font-size: 12px; /* Lebih kecil dari 14px */
    font-weight: 700;
    color: #27ae60;
    margin-top: auto;
}

/* Update action button */
.product-action {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px; /* Lebih kecil dari 32px */
    height: 28px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.product-card:hover .product-action {
    opacity: 1;
}

/* Update favorite button */
.btn-favorite {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 28px; /* Lebih kecil dari 32px */
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-favorite:hover {
    background: white;
    transform: scale(1.1);
}

.btn-favorite i {
    color: #f39c12;
    font-size: 14px; /* Lebih kecil dari 16px */
}

/* Package card adjustments */
.package-card .product-image {
    height: 110px; /* Lebih kecil dari 140px */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.package-desc {
    font-size: 10px; /* Lebih kecil */
    color: #7f8c8d;
    margin-bottom: 6px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.package-items {
    margin: 6px 0;
    padding: 6px;
    background: #f8f9fa;
    border-radius: 4px;
    max-height: 60px;
    overflow-y: auto;
}

.package-item {
    font-size: 10px; /* Lebih kecil dari 11px */
    color: #34495e;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.package-item i {
    color: #27ae60;
    font-size: 9px;
}

.package-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.package-discount {
    font-size: 9px; /* Lebih kecil dari 10px */
    padding: 2px 5px;
    background: #e74c3c;
    color: white;
    border-radius: 3px;
    font-weight: 600;
}

/* Scrollbar styling untuk product grid */
.product-grid::-webkit-scrollbar {
    width: 8px;
}

.product-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.product-grid::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

.product-grid::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

/* Scrollbar untuk package items */
.package-items::-webkit-scrollbar {
    width: 4px;
}

.package-items::-webkit-scrollbar-track {
    background: transparent;
}

.package-items::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 2px;
}


/* Update Product Card dengan Gambar */
/* Update Product Card dengan Gambar */
/* Update Product Card dengan Gambar */
.product-card {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #ecf0f1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.product-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-icon-fallback {
    font-size: 48px;
    color: #bdc3c7;
}

.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-code {
    font-size: 10px;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 14px;
    font-weight: 700;
    color: #27ae60;
    margin-top: auto;
}

.product-action {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-action {
    opacity: 1;
}

/* Package Card dengan Gambar */
.package-card .product-image {
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.package-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.package-desc {
    font-size: 11px;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-style: italic;
}

.package-items {
    margin: 8px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.package-item {
    font-size: 11px;
    color: #34495e;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.package-item i {
    color: #27ae60;
    font-size: 10px;
}

.package-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.package-discount {
    font-size: 10px;
    padding: 2px 6px;
    background: #e74c3c;
    color: white;
    border-radius: 4px;
    font-weight: 600;
}

/* Favorite button positioning */
.btn-favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-favorite:hover {
    background: white;
    transform: scale(1.1);
}

.btn-favorite i {
    color: #f39c12;
    font-size: 16px;
}

.btn-favorite i.fa-star {
    color: #f39c12;
}

/* ==========================
   PRODUCT GRID - 6 KOLOM
   ========================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 15px;
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

/* RESPONSIVE */
@media (max-width: 1600px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* PRODUCT CARD */
.product-card {
    position: relative;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #ecf0f1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.product-card.active {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* GAMBAR PRODUK */
.product-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-icon-fallback {
    font-size: 36px;
    color: #bdc3c7;
}

/* INFO PRODUK */
.product-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-code {
    font-size: 9px;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
}

.product-name {
    font-size: 11px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 26px;
}

.product-price {
    font-size: 12px;
    font-weight: 700;
    color: #27ae60;
    margin-top: auto;
}

/* ACTION BUTTON */
.product-action {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.product-card:hover .product-action {
    opacity: 1;
}

/* FAVORITE BUTTON */
.btn-favorite {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-favorite:hover {
    background: white;
    transform: scale(1.1);
}

.btn-favorite i {
    color: #f39c12;
    font-size: 14px;
}

.btn-favorite i.fa-star {
    color: #f39c12;
}

/* PACKAGE CARD */
.package-card .product-image {
    height: 110px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.package-desc {
    font-size: 10px;
    color: #7f8c8d;
    margin-bottom: 6px;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.package-items {
    margin: 6px 0;
    padding: 6px;
    background: #f8f9fa;
    border-radius: 4px;
    max-height: 60px;
    overflow-y: auto;
}

.package-item {
    font-size: 10px;
    color: #34495e;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.package-item i {
    color: #27ae60;
    font-size: 9px;
}

.package-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.package-discount {
    font-size: 9px;
    padding: 2px 5px;
    background: #e74c3c;
    color: white;
    border-radius: 3px;
    font-weight: 600;
}

/* SCROLLBAR */
.product-grid::-webkit-scrollbar {
    width: 8px;
}

.product-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.product-grid::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

.product-grid::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}

.package-items::-webkit-scrollbar {
    width: 4px;
}

.package-items::-webkit-scrollbar-track {
    background: transparent;
}

.package-items::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 2px;
}

/* FAVORITE SECTION */
.favorite-header {
    padding: 10px 15px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 15px;
}

.favorite-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorite-header i {
    font-size: 16px;
}

/* NO RESULTS */
.no-results,
.no-results-paket {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
}

.no-results i,
.no-results-paket i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-results p,
.no-results-paket p {
    font-size: 14px;
    margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 991px) {
    .main-header .navbar-custom-menu a,
    .main-header .navbar-right a {
        color: inherit;
        background: transparent;
    }

    .navbar-custom-menu .navbar-nav > li {
        float: left;
    }

    .navbar-custom-menu .navbar-nav {
        margin: 0;
        float: left;
    }

    .navbar-custom-menu .navbar-nav > li > a {
        padding-top: 15px;
        padding-bottom: 15px;
        line-height: 40px;
    }

    .navbar-time {
        display: none;
    }
}

@media (max-width: 767px) {
    .main-header {
        position: relative;
        max-height: none;
    }

    .main-sidebar {
        padding-top: 60px;
        transform: translate(-230px, 0);
    }

    .sidebar-open .main-sidebar {
        transform: translate(0, 0);
    }

    .main-header .logo,
    .main-header .navbar {
        width: 100%;
        float: none;
    }

    .main-header .logo {
        height: 60px;
        line-height: 60px;
    }

    .main-header .navbar {
        margin: 0;
        min-height: 60px;
    }

    .main-header .navbar-custom-menu {
        float: right;
    }

    .main-header .navbar-right {
        float: none;
    }

    .navbar-collapse .main-header .navbar-right {
        margin: 7.5px -15px;
    }

    .main-header .navbar-right > li {
        color: inherit;
        border: 0;
    }

    .user-name {
        display: none !important;
    }

    .navbar-time {
        display: none;
    }

    .main-header .sidebar-toggle {
        padding: 18px 15px;
    }
    .main-footer {
        padding: 15px 20px;
        margin: auto;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-copyright {
        font-size: 13px;
    }

    .footer-text {
        font-size: 12px;
    }

    .version-badge {
        padding: 6px 14px;
    }

    .version-label {
        font-size: 10px;
    }

    .version-number {
        font-size: 12px;
        padding: 2px 8px;
    }
}

@media (max-width: 991px) {
    .navbar-collapse.pull-left {
        float: none !important;
    }

    .navbar-collapse.pull-left + .navbar-custom-menu {
        display: block;
        position: absolute;
        top: 0;
        right: 40px;
    }
}

@media (min-width: 768px) {
    .sidebar-collapse .main-sidebar {
        transform: translate(-230px, 0);
    }
}

@media (max-width: 480px) {
    .copyright-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .footer-copyright {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .report-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .report-mode-tabs {
        flex-direction: column;
    }

    .report-mode-tabs .mode-tab {
        justify-content: center;
    }

    .export-buttons {
        justify-content: center;
    }
}

/* Info Banner */
.info-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--tosca-lighter) 0%, var(--tosca-light) 100%);
    border-left: 4px solid var(--tosca-primary);
    border-radius: 8px;
    color: var(--white);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.info-banner i {
    font-size: 18px;
    opacity: 0.9;
}

.info-banner span {
    font-size: 14px;
    font-weight: 500;
}

/* Kasir Grid Layout */
.kasir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

/* Kasir Card */
.kasir-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.kasir-card:hover {
    border-color: var(--tosca-lighter);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Kasir Label */
.kasir-label {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    margin: 0;
    position: relative;
}

.kasir-label:hover .kasir-info {
    color: var(--tosca-primary);
}

/* Hide default checkbox */
.kasir-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Kasir Info */
.kasir-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    transition: all 0.3s ease;
}

/* Kasir Avatar */
.kasir-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tosca-light) 0%, var(--tosca-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.kasir-card:hover .kasir-avatar {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Kasir Details */
.kasir-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.kasir-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kasir-email {
    font-size: 13px;
    color: var(--gray-dark);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Kasir Check Icon */
.kasir-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--gray-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: var(--white);
}

.kasir-check i {
    font-size: 14px;
    color: var(--white);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Checked State */
.kasir-checkbox:checked ~ .kasir-info .kasir-check {
    background: var(--tosca-primary);
    border-color: var(--tosca-primary);
    box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.1);
}

.kasir-checkbox:checked ~ .kasir-info .kasir-check i {
    opacity: 1;
    transform: scale(1);
}

.kasir-checkbox:checked ~ .kasir-info {
    color: var(--tosca-primary);
}

/* Update parent card when checked */
.kasir-checkbox:checked + .kasir-info {
    color: var(--tosca-primary);
}

.kasir-label:has(.kasir-checkbox:checked) {
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.05) 0%, rgba(26, 188, 156, 0.05) 100%);
}

.kasir-label:has(.kasir-checkbox:checked) .kasir-card,
.kasir-checkbox:checked ~ * {
    border-color: var(--tosca-primary);
}

/* Alternative: Direct parent styling */
.kasir-card:has(.kasir-checkbox:checked) {
    border-color: var(--tosca-primary);
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.03) 0%, rgba(26, 188, 156, 0.03) 100%);
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

.kasir-card:has(.kasir-checkbox:checked) .kasir-name {
    color: var(--tosca-primary);
}

.kasir-card:has(.kasir-checkbox:checked) .kasir-avatar {
    background: linear-gradient(135deg, var(--tosca-primary) 0%, var(--tosca-dark) 100%);
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.3);
}

/* Focus State */
.kasir-checkbox:focus ~ .kasir-info .kasir-check {
    box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .kasir-grid {
        grid-template-columns: 1fr;
    }

    .info-banner {
        padding: 12px 16px;
    }

    .info-banner span {
        font-size: 13px;
    }
}

/* Empty State */
.kasir-grid:empty::after {
    content: 'Tidak ada kasir tersedia';
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-dark);
    font-style: italic;
    grid-column: 1 / -1;
}

/* Loading State */
.kasir-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for cards */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kasir-card {
    animation: slideIn 0.3s ease forwards;
}

.kasir-card:nth-child(1) { animation-delay: 0.05s; }
.kasir-card:nth-child(2) { animation-delay: 0.1s; }
.kasir-card:nth-child(3) { animation-delay: 0.15s; }
.kasir-card:nth-child(4) { animation-delay: 0.2s; }
.kasir-card:nth-child(5) { animation-delay: 0.25s; }
.kasir-card:nth-child(6) { animation-delay: 0.3s; }
