:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
  --success-gradient: linear-gradient(135deg, #0cebeb 0%, #20e3b2 50%, #29ffc6 100%);
  --danger-gradient: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  --warning-gradient: linear-gradient(135deg, #ffc796 0%, #ff6b95 100%);
  --info-gradient: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
  --dark-gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
  --light-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  --glass-effect: rgba(255, 255, 255, 0.15);
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  overflow-y: auto;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
  height: 100%;
  width: 100%;
  color: #2d3748;
}

a {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-gradient);
}

.padding-top {
  padding-top: 20px;
}

.login-page {
  width: 350px;
  margin: 5% 40% 6% auto;
  padding: 25px;
  background: rgba(255, 255, 255, 0.9);
  border: var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

.login-page .text-center {
  margin-bottom: 15px;
}

.box {
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(224, 230, 237, 0.7);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page {
  position: relative;
  display: block;
  top: 50px;
  left: 0;
  padding: 35px 15px 20px 270px;
}

.page-lgn {
  position: relative;
  display: block;
  top: 50px;
  left: 0;
  padding: 35px 15px 20px 270px;
}

.bg-green {
  background: var(--success-gradient);
}

.bg-blue {
  background: var(--primary-gradient);
}

.bg-yellow {
  background: var(--warning-gradient);
}

.bg-red {
  background: var(--danger-gradient);
}

.bg-secondary1 {
  background: var(--secondary-gradient);
}

.bg-blue2 {
  background: var(--info-gradient);
}

.panel-default > .panel-heading {
  background: rgba(248, 249, 250, 0.9);
  border-bottom: 2px solid #667eea;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 15px;
  color: #4a5568;
}

.panel-box {
  width: 100%;
  height: 100%;
  text-align: center;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.panel-value {
  width: 60%;
  background: rgba(255, 255, 255, 0.95);
}

.panel-icon {
  padding: 30px;
  width: 40%;
  border-radius: 0;
}

.panel-icon {
  border-radius: 12px 0 0 12px;
}

.panel-value {
  border-radius: 0 12px 12px 0;
}

.panel-value h2 {
  margin-top: 30px;
  color: #2d3748;
}

.panel-icon i {
  line-height: 65px;
  font-size: 40px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#header {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  width: 100%;
  height: 65px;
  line-height: 65px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

header > .logo {
  color: #fff;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  width: 250px;
  background: var(--primary-gradient);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header-date {
  color: #718096;
  margin-left: 20px;
}

.info-menu {
  height: 60px;
  margin: 0;
  line-height: 60px;
  padding: 0 15px;
}

.info-menu li.profile {
  position: relative;
}

.profile a.toggle {
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  color: #4a5568;
  position: relative;
  padding: 10px 10px 10px 0;
  margin: 0;
  background: rgba(248, 249, 250, 0.8);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.profile a.toggle:hover {
  background: rgba(226, 232, 240, 0.8);
}

.info-menu li.profile a img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-menu {
  margin-top: 4px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
  display: block;
  line-height: 35px;
  transition: all 0.2s ease;
}

.dropdown-menu li:hover {
  background: rgba(237, 242, 247, 0.7);
}

.dropdown-menu li a {
  text-decoration: none;
  display: block;
  font-size: 14px;
  position: relative;
  line-height: 30px;
  width: 100%;
  border-bottom: 1px solid rgba(237, 242, 247, 0.8);
  color: #4a5568;
  padding: 8px 20px;
}

.dropdown-menu li a i {
  margin-right: 8px;
  color: #667eea;
}

.dropdown-menu li.last a {
  border-bottom: 0;
}

.datepicker {
  text-align: center;
}

.sidebar {
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  padding: 65px 0 0;
  height: 100%;
  width: 250px;
  background: linear-gradient(180deg, #2b5876 0%, #4e4376 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.sidebar ul li:hover, .submenu ul li:hover {
  transition: all .2s ease-in-out;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar ul li {
  display: block;
}

.sidebar ul li:hover, ul.submenu {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar ul li a:hover {
  color: white;
}

.sidebar ul li a, ul.submenu li a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  text-align: left;
  transition: all 0.3s ease;
}

.sidebar ul li a span, .sidebar ul li i {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1.5px;
}

.sidebar ul li a i {
  color: rgba(255, 255, 255, 0.8);
  padding: 15px 22px;
  text-align: center;
}

ul.submenu {
  display: none;
  position: relative;
  background: rgba(0, 0, 0, 0.1);
}

ul.submenu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 50px;
}

ul.submenu li a {
  padding-left: 45px;
}

ul.submenu li:before {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  left: 25px;
  top: 0;
  bottom: 0;
  border: 1px dotted rgba(255, 255, 255, 0.1);
  border-width: 0 0 0 1px;
}

ul.submenu li a:before {
  content: "";
  display: inline-block;
  position: absolute;
  width: 7px;
  left: 25px;
  top: 18px;
  border-top: 1px dotted rgba(255, 255, 255, 0.1);
}

.order_report_header {
  padding: 15px 0;
}

table td h6 {
  margin: 0 0 0.2em 0;
}

table tfoot tr td:first-child {
  border: 0;
}

table tfoot tr td:last-child {
  border-top: 1px solid #e2e8f0;
}

table td h6, table tfoot tr td:last-child {
  color: #2d3748;
  font-weight: 500;
}

.form-control {
  color: #4a5568;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: none;
  transition: all 0.3s ease;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: #667eea;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn {
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  font-weight: 500;
  padding: 10px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-primary {
  color: #fff;
  background: var(--primary-gradient);
  background-size: 200% auto;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary.focus, .btn-primary:active, .btn-primary.active {
  color: #fff;
  background-position: right center;
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.2);
}

.btn-success {
  background: var(--success-gradient);
  background-size: 200% auto;
}

.btn-success:hover, .btn-success:focus, .btn-success.focus, .btn-success:active, .btn-success.active {
  background-position: right center;
  box-shadow: 0 6px 12px rgba(12, 235, 235, 0.2);
}

.btn-warning {
  background: var(--warning-gradient);
  background-size: 200% auto;
}

.btn-warning:hover, .btn-warning:focus, .btn-warning.focus, .btn-warning:active, .btn-warning.active {
  background-position: right center;
  box-shadow: 0 6px 12px rgba(255, 107, 149, 0.2);
}

.btn-danger {
  background: var(--danger-gradient);
  background-size: 200% auto;
}

.btn-danger:hover, .btn-danger:focus, .btn-danger.focus, .btn-danger:active, .btn-danger.active {
  background-position: right center;
  box-shadow: 0 6px 12px rgba(255, 117, 140, 0.2);
}

.input-group-addon {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0;
}

input[type=file] {
  text-indent: -99999px;
}

td img.img-thumbnail {
  width: 125px;
  height: 125px;
  vertical-align: top;
  border-radius: 8px;
  object-fit: cover;
}

.img-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.jumbotron {
  margin-bottom: 0;
  background: var(--primary-gradient);
  color: white;
  border-radius: 0;
}

.list-group-item:first-child, .list-group-item:last-child {
  border-radius: 0;
}

.profile .jumbotron {
  border-radius: 12px 12px 0 0;
}

.profile .jumbotron h3 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

img.img-size-2 {
  width: 125px;
  height: 125px;
  border-radius: 8px;
  object-fit: cover;
}