/* Override AdminLTE skin-blue navbar background color */
.skin-blue .main-header .navbar {
    background-color: #0063b1 !important;
}

/* Override AdminLTE skin-blue logo background color */
.skin-blue .main-header .logo {
    background-color: #0063b1 !important;
}

/* Override AdminLTE skin-blue sidebar menu active item */
.skin-blue .sidebar-menu > li.active > a {
    background-color: #0063b1 !important;
}

/* Override AdminLTE skin-blue sidebar menu hover */
.skin-blue .sidebar-menu > li:hover > a {
    background-color: #0155a0 !important;
}

/* Main Footer Styling */
.main-footer {
    background: #0063b1 !important;
    padding: 15px;
    color: #ffffff;
    border-top: 1px solid #d2d6de;
    text-align: center;
}

/* Settings icon color */
.navbar-custom-menu .fa-cogs {
    color: #0063b1 !important;
}

/* Override Bootstrap .btn-primary */
.btn-primary {
    background-color: #0063b1 !important;
    border-color: #0155a0 !important;
}

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

/* Model Lists header layout */
.ml-header { display: block; padding: 10px; color: #444; }
.ml-header__row { display: flex; justify-content: space-between; align-items: center; }
.ml-header__title { margin: 0; font-size: 18px; font-weight: 600; }
.ml-header__button { background-color: #f5f5f5; border: 1px solid #ccc; color: #333; font-size: 13px; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
/* Excel export button styling (keep header default colors) */
.excel-header {
    padding: 10px 10px;
}
.invoice-box .bottom_text{
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    line-height: 0px;
}

.excel-header .header-actions .btn {
    background-color: #0063b1;
    color: #fff;
    border-color: #0155a0;
}
/* Bigger checkbox */
#dataTable .row-check,
#dataTable .check-all {
    width: 15px;
    height: 15px;
    cursor: pointer;
    transform: scale(1.3);
}
#dataTable tbody tr.selected {
    background-color: #e6f3ff !important;
}
/* Prevent text selection in checkbox column */
#dataTable td:first-child,
#dataTable th:first-child {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}
/* Center checkbox properly */
#dataTable td.text-center,
#dataTable th.text-center {
    vertical-align: middle;
}

.excel-header .header-actions .btn:hover {
    background-color: #0155a0;
    color: #fff;
}

.modal-header {
    color: #fff;
    padding: 9px 15px;
    border-bottom: 1px solid #eee;
    background-color: #0063b1;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.modal-body {
    max-height: calc(100% - 120px);
    overflow-y: auto;
}
.removeRowBtn,
.addMoreBtn {
    padding-bottom: 0;
    padding-top: 0;
}

.sidebar-collapse .main-header a {
    align-items: center;
    align-content: center;
}

/* Increase collapsed sidebar width */
.sidebar-collapse .main-sidebar {
    width: 80px !important;
}

.sidebar-collapse .content-wrapper,
.sidebar-collapse .right-side,
.sidebar-collapse .main-footer {
    margin-left: 80px !important;
}

.sidebar-collapse .sidebar-menu > li > a {
    padding-left: 5px !important;
}

/* Utility and component classes extracted from inline styles */
.action-cards,
.print-cards {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.action-card,
.print-card {
    width: 100%;
    max-width: 27%;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}


.print-card-center {
    width: 100%;
    max-width: 40%;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Responsive: stack cards in a single column on mobile */
@media (max-width: 768px) {
    .action-card,
    .print-card,
    .print-card-center {
        max-width: 100%;
    }
}

.action-card__header,
.print-card__header {
    color: #fff;
    background-color: #0063b1;
    padding: 10px 14px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.action-card__body,
.print-card__body {
    padding: 15px;
}

.action-btn-group,
.print-btn-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-outline-success {
    border: 2px solid #0063b1;
    color: #0063b1;
    background: #fff;
}

/* Ensure outline success buttons keep contrast on hover/focus/active */
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active,
.btn-outline-success.active {
    background-color: #0063b1;
    color: #fff;
    border-color: #0155a0;
}

.select-tall {
    height: 200pt;
}

.mt-20 { margin-top: 20px; }
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.text-muted-700 { color: #777; }


#modal-bol .modal-content {
    max-height: 85vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

#modal-bol .modal-header,
#modal-bol .modal-footer {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
}

#modal-bol .modal-body {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
    overflow-y: auto;
}


/* ===== BOL modal styles synced from funaicorp ===== */
/* Signature canvas */
.signature-wrapper {
    position: relative;
    width: 400px;
    height: 200px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.signature-pad {
    position: absolute;
    left: 0;
    top: 0;
    width: 500px;
    height: 200px;
    background-color: #fff;
}


 /* CSS for BOLs */
  #modal-bol .modal-dialog,
  #modal-bol .modal-content {
    /* 80% of window height */
    height: 95%;
  }


  #modal-bol  input {
      width: 100%;
      height: 100%;
      background: yellow;
  }

  #modal-bol .straight-bill-div input {
      background: #e0e0e0;
  }

  #modal-bol .straight-bill-div:first-of-type input {
      background: yellow;
  }

  .modal-body {
      /* 100% = dialog height, 120px = header + footer */
      max-height: calc(100% - 120px);
      overflow-y: auto;
  }




  #modal-bol .invoice-box {
    max-width: 1000px;
    margin: auto;
    padding: 8px;
/*         border: 1px solid #eee; */
/*         box-shadow: 0 0 10px rgba(0, 0, 0, .15); */
    font-size: 14px;
    line-height: 24px;
    font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
/*         color: #555; */
    color: 	#000000;
  }

  #modal-bol .invoice-box table {
      width: 100%;
      line-height: inherit;
      text-align: left;
  }

  #modal-bol .invoice-box table td {
  /*         padding: 5px; */
      vertical-align: top;
  }

  #modal-bol .invoice-box table tr td:nth-child(2) {
      text-align: right;
  }

  #modal-bol .invoice-box table tr.top table td {
      padding-bottom: 0px;
  }

  #modal-bol .invoice-box table tr.top table td.title {
      width: 41%;
      font-size: 45px;
      /* line-height: 45px; */
      color: #333;
      padding: 0px
  }


  #modal-bol .invoice-box table tr.information td {
      background: #eee;
      border-top: 1px solid black;
      border-bottom: 1px solid black;
      font-weight: bold;
      text-align: center;
      padding: 0px;
  }

  #modal-bol .invoice-box table tr.content td {
    padding: 0px;
  }

  #modal-bol tr.border_bottom td {
    border-bottom:1px solid black;
  }

  #modal-bol tr.border_top td {
    border-top:1px solid black;
  }

  #modal-bol .invoice-box table .shipTo  {
      background: #eee;
      border-bottom: 1px solid black;
      border-top:1px solid black;
      border-right:1px solid black;
      font-weight: bold;
      text-align: center;
      padding: 0px;
  }

  #modal-bol .invoice-box table .shipDateTime {
      border-top:1px solid black;
      padding: 0px;
  }

  #modal-bol .shipDateTime table tr td:nth-child(1){
      text-align: right;
      font-weight: bold;
  }

  #modal-bol .shipDateTime table tr td:nth-child(2){
      text-align: left;
      border-bottom: 1px solid black;
  }

  #modal-bol .invoice-box table .seal {
    padding: 0px;
  }

  #modal-bol .seal table tr td:nth-child(1){
    text-align: right;
    font-weight: bold;
  }

  #modal-bol  .seal table tr td:nth-child(2){
    text-align: left;
    border-bottom: 1px solid black;
  }

  #modal-bol  .invoice-box table .frieght  {
    background: #eee;
    border-bottom: 1px solid black;
    border-right:1px solid black;
    font-weight: bold;
    text-align: center;
    padding: 0px;
  }

 #modal-bol  .invoice-box table .frieght-terms  {
    background: #eee;
    border-bottom: 1px solid black;
    border-right:1px solid black;
    font-weight: bold;
    text-align: center !important;
    padding: 0px;
  }

  #modal-bol .invoice-box table tr.details td {
    padding-bottom: 5px;
    color: red;
    font-weight: bold;
    text-align:left
  }

  #modal-bol .invoice-box table tr.details td small {

    color:black;
    font-weight: normal;
    font-size: 14px;
  }

  #modal-bol .invoice-box table tr.item td{
  /*         border-bottom: 1px solid #eee; */
      text-align: center;
  }

  #modal-bol .invoice-box table tr.content_items.last td {
    border-bottom: none;
  }



  #modal-bol .invoice-box table tr.total td:nth-child(1) {
    font-weight: bold;
    text-align: right;
  }

  #modal-bol .invoice-box table tr.grand_total td:nth-child(1)     {
    font-weight: bold;
    text-align: right;
  }

  #modal-bol .invoice-box table tr.detail td{
      padding: 4px;
      border: 1px solid black;
      text-align: left;
      font-size: 12px;
      /* cell-margin:10px; */
  }

  #modal-bol .invoice-box table tr.shipment_detail td{
      font-size: 12px;
      padding: 4px;
  }

  /* @media  only screen and (max-width: 600px) {
    .invoice-box table tr.top table td {
        width: 100%;
        display: block;
        text-align: center;
    }

    .invoice-box table tr.information table td {
        width: 100%;
        display: block;
        text-align: center;
    }
  } */

  /** RTL **/
  /* .rtl {
    direction: rtl;
    font-family: Tahoma, 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
  }

  .rtl table {
    text-align: right;
  }

  .rtl table tr td:nth-child(2) {
    text-align: left;
  } */

  #modal-bol input[type=radio] {
    height: 14px;
    width: auto;
  }

  #modal-bol .custom-invoice-box {
    max-width: 800px;
    margin: auto;
    padding: 5px 10px 10px 10px;
    /* border: 1px solid #eee; */
    /* box-shadow: 0 0 10px rgba(0, 0, 0, .15); */
    font-size: 12px;
    line-height: 14px;
    font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
    color: black;
  }

  #modal-bol .custom-invoice-box table {
    width: 100%;
    line-height: 14px;
    text-align: left;

  }

  #modal-bol .custom-invoice-box table td {
    padding: 0 5px;
    vertical-align: top;
  }



  #modal-bol .custom-invoice-box table tr.top table td {
    padding-bottom: 0px;
    font-size: 12px;
    border: 0;
  }

  #modal-bol .custom-invoice-box table tr.top table td.title {
    font-size: 45px;
    /*         line-height: 45px; */
    padding-left: 0px;
    color: black;
    width: 9%;
  }

  #modal-bol .cci_content table tr.information td {
    padding-bottom: 0px;

  }

  #modal-bol .cci_content {
    border-collapse: collapse;
    border: 1px solid black;

  }

  #modal-bol .cci_content td {
    border: 1px solid black;
  }

  .inner_content p,
  .cci_content p {
      text-align: center;
      font-size: 13px;
  }

  #modal-bol .inner_content {
    /*       border-collapse: collapse; */
    /*       border: 1px solid black; */
    border-spacing: 0 !important;
  }



  #modal-bol .inner_content td {
    border: 0px solid black;
  }



  .dataTables_filter { float: left !important; }
.dt-actions .btn { margin-left: 6px; }

/* Hide sort icons on checkbox header cells */
th.no-sort.sorting:before,
th.no-sort.sorting:after,
th.no-sort.sorting_asc:before,
th.no-sort.sorting_asc:after,
th.no-sort.sorting_desc:before,
th.no-sort.sorting_desc:after {
    display: none !important;
}

/* Normalize checkbox column alignment */
table.dataTable thead th.text-center:first-child,
table.dataTable tbody td.text-center:first-child {
    width: 30px;
    vertical-align: middle;
    padding-right: 0% !important;
}

/* Table row click functionality styles */
table.dataTable tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

table.dataTable tbody tr:hover {
    background-color: #f5f5f5 !important;
}

table.dataTable tbody tr.selected {
    background-color: #e3f2fd !important;
}

/* Ensure interactive elements don't trigger row click */
table.dataTable tbody tr input,
table.dataTable tbody tr button,
table.dataTable tbody tr a,
table.dataTable tbody tr select,
table.dataTable tbody tr textarea {
    cursor: default;
}

table.dataTable tbody tr input[type="checkbox"] {
    cursor: pointer;
}

/* Mixed Pallet Merged Row Styles */
table.dataTable tbody tr.merged-row {
    background-color: #e8f5e8 !important;
    border-left: 4px solid #5cb85c;
}

table.dataTable tbody tr.merged-row:hover {
    background-color: #d4edda !important;
}

table.dataTable tbody tr.merged-row td {
    font-weight: 500;
}

/* Merged source rows (hidden) */
table.dataTable tbody tr.merged-source {
    opacity: 0.5;
    background-color: #f9f9f9 !important;
}

/* Merge details modal improvements */
#mergeDetailsModal .modal-dialog {
    max-width: 95%;
}

#merge_details_table tbody tr {
    cursor: default;
}

#merge_details_table tbody tr:hover {
    background-color: #f8f9fa !important;
}

/* Loading state for merge button */
.btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Better spacing for merge action buttons */
.dt-actions .btn {
    margin-left: 4px;
    margin-right: 2px;
}

/* Smooth transitions for table updates */
table.dataTable tbody tr {
    transition: all 0.3s ease;
}

/* Merged badge styling improvements */
.label.label-info {
    margin-left: 8px;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    vertical-align: middle;
}

/* Mixed Pallet Modal Fullscreen Styles */
#mixedPalletModal.fullscreen {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 1050;
}

#mixedPalletModal.fullscreen .modal-dialog {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#mixedPalletModal.fullscreen .modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

#mixedPalletModal.fullscreen .modal-header {
    flex: 0 0 auto;
    border-radius: 0;
}

#mixedPalletModal.fullscreen .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 15px;
    max-height: none;
}

#mixedPalletModal.fullscreen .modal-footer {
    flex: 0 0 auto;
    border-radius: 0;
}

/* Body class to prevent scrolling when modal is fullscreen */
body.mixed-pallet-modal-open {
    overflow: hidden;
}

/* Fullscreen toggle button positioning */
.fullscreen-toggle {
    position: absolute;
    top: 10px;
    right: 40px;
    z-index: 99;
}
html, body, .wrapper { height: 100%; }
.content-wrapper, .right-side {
    /* Use min-height instead of fixed height to prevent content clipping */
    min-height: calc(100vh - 50px);
    overflow-y: auto;
}

.main-sidebar {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh; /* full viewport height */
    overflow: hidden; /* prevent overall scroll */
}

/* Only top menu scrolls */
.sidebar-menu.main-links {
    flex: 1;             /* take remaining space */
    overflow-y: auto;    /* enable vertical scroll */
}

/* bottom always visible */
.sidebar-menu.bottom-links {
    padding: 10px 0;
    background: #1a2226;
    position: sticky; /* stick at bottom */
    bottom: 0;
    z-index: 100;
}

div.dataTables_processing {
    z-index: 100;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    width: 200px !important;
    height: auto !important;
    padding: 10px !important;
    background: white !important;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.text-nowrap {
    white-space: nowrap;
}

/* ===== NEW LOGIN PAGE STYLES ===== */
.login-page-new {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #0063b1;
    min-height: 100vh;
    overflow-x: hidden;
}

.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Logo Section */
.login-left {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.logo-section {
    text-align: center;
}

.logo-text {
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-skyworth {
    font-size: 84px;
    font-weight: 800;
    margin: 5px 0;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.logo-flag {
    height: 96px;
    width: auto;
    max-width: 100%;
}

.logo-image {
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.logo-wrapper .logo-image {
    margin: 0;
}

.logo-wrapper .logo-flag {
    height: 80px;
    width: auto;
}

/* Right Side - Login Card */
.login-right {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 40px;
}

.login-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Card Header */
.login-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #0063b1;
    margin: 0;
}

.language-selector {
    display: flex;
    align-items: center;
}

.language-dropdown {
    position: relative;
}

.language-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.language-dropdown-btn:hover {
    background-color: #f5f5f5;
}

.language-dropdown-btn:focus {
    outline: 2px solid #0063b1;
    outline-offset: 2px;
}

.language-icon {
    color: #999999;
    font-size: 18px;
}

.language-flag {
    font-size: 20px;
    margin-right: 8px;
}

.language-text {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
}

/* Language switcher in header (blue background) */
.navbar-custom-menu .language-text {
    color: #ffffff;
}

.navbar-custom-menu .language-dropdown-btn:hover .language-text {
    color: #ffffff;
}

/* Remove hover effect on header language button */
.navbar-custom-menu .language-dropdown-btn {
    background: none !important;
}

.navbar-custom-menu .language-dropdown-btn:hover {
    background: none !important;
}

/* Make language switcher and settings button same size in header */
.navbar-custom-menu .language-selector,
.navbar-custom-menu .btn-default {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
}

/* Language switcher in login card (white background) */
.login-card-header .language-dropdown-btn:hover .language-text {
    color: #0063b1;
}

.language-chevron {
    color: #999999;
    font-size: 12px;
    margin-left: 4px;
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 150px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    background-color: #ffffff;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.language-dropdown-menu.show {
    display: block;
}

.language-dropdown-menu .dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #333333;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    text-decoration: none;
}

.language-dropdown-menu .dropdown-item:hover {
    background-color: #0063b1;
    color: #ffffff;
}

.language-dropdown-menu .dropdown-item:focus {
    outline: none;
    background-color: #0063b1;
    color: #ffffff;
}

/* Test Environment Warning */
.test-environment-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    border: 1px solid #ffeeba;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-form-group {
    margin: 0;
}

.login-input {
    height: 50px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    padding: 12px 16px;
    font-size: 15px;
    color: #333333;
    transition: all 0.3s ease;
}

.login-input:focus {
    background-color: #ffffff;
    border-color: #0063b1;
    box-shadow: 0 0 0 3px rgba(0, 99, 177, 0.1);
    outline: none;
}

.login-input::placeholder {
    color: #999999;
    font-weight: 400;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #999999;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #0063b1;
}

/* Login Options */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0063b1;
}

.remember-label {
    color: #666666;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
}

.forgot-password {
    color: #0063b1;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #004a8a;
    text-decoration: underline;
}

/* Validation Errors */
.login-errors {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 10px;
}

.error-item {
    color: #721c24;
    font-size: 14px;
    margin: 4px 0;
}

.error-item:first-child {
    margin-top: 0;
}

.error-item:last-child {
    margin-bottom: 0;
}

/* Login Button */
.login-btn {
    background-color: #0063b1;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    height: 50px;
}

.login-btn:hover {
    background-color: #004a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 99, 177, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn-icon {
    font-size: 18px;
}

/* Copyright */
.login-copyright {
    color: #ffffff;
    font-size: 14px;
    font-style: italic;
    text-align: left;
    margin-top: 30px;
    width: 100%;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .login-left {
        flex: 0 0 50%;
        justify-content: center;
    }

    .logo-section {
        text-align: center;
    }

    .login-right {
        flex: 0 0 50%;
        padding: 40px 50px;
    }

    .logo-image {
        max-width: 350px;
    }

    .logo-wrapper .logo-flag {
        height: 70px;
    }

    .logo-text {
        font-size: 40px;
    }

    .logo-skyworth {
        font-size: 60px;
    }
}

@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        justify-content: center;
    }

    .login-left {
        flex: 0 0 auto;
        padding: 30px;
        min-height: auto;
        justify-content: center;
    }

    .logo-section {
        text-align: center;
    }

    .logo-image {
        max-width: 300px;
    }

    .logo-wrapper {
        flex-direction: row;
    }

    .logo-wrapper .logo-flag {
        height: 60px;
    }

    .logo-text {
        font-size: 32px;
    }

    .logo-skyworth {
        font-size: 48px;
        justify-content: center;
    }

    .login-right {
        width: 100%;
        padding: 30px;
        align-items: center;
        justify-content: center;
    }

    .login-card {
        max-width: 450px;
    }

    .login-copyright {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        justify-content: center;
    }

    .login-left {
        padding: 20px;
        justify-content: center;
    }

    .logo-section {
        text-align: center;
    }

    .logo-image {
        max-width: 250px;
    }

    .logo-wrapper {
        flex-direction: row;
    }

    .logo-wrapper .logo-flag {
        height: 50px;
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-skyworth {
        font-size: 36px;
        justify-content: center;
    }

    .logo-flag {
        height: 32px;
    }

    .login-right {
        padding: 20px;
        justify-content: center;
    }

    .login-card {
        padding: 25px;
        max-width: 100%;
    }

    .login-title {
        font-size: 24px;
    }

    .login-card-header {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .login-container {
        justify-content: center;
    }

    .login-left {
        padding: 15px;
        justify-content: center;
    }

    .logo-section {
        text-align: center;
    }

    .logo-image {
        max-width: 200px;
    }

    .logo-wrapper {
        flex-direction: row;
        gap: 10px;
    }

    .logo-wrapper .logo-flag {
        height: 40px;
    }

    .logo-text {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .logo-skyworth {
        font-size: 28px;
        letter-spacing: 2px;
        justify-content: center;
    }

    .logo-flag {
        height: 36px;
    }

    .login-right {
        padding: 15px;
        justify-content: center;
    }

    .login-card {
        padding: 20px;
        max-width: 100%;
    }

    .login-card-header {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .login-title {
        font-size: 22px;
    }

    .login-input {
        height: 45px;
        font-size: 14px;
        padding: 10px 12px;
    }

    .login-btn {
        height: 45px;
        font-size: 15px;
        padding: 12px 20px;
    }

    .login-options {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .test-environment-warning {
        font-size: 13px;
        padding: 10px;
    }

    .login-copyright {
        font-size: 12px;
    }
}

/* Accessibility */
.login-input:focus,
.login-btn:focus,
.password-toggle:focus,
.remember-checkbox:focus {
    outline: 2px solid #0063b1;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
.login-input,
.login-btn,
.password-toggle,
.forgot-password {
    transition: all 0.3s ease;
}

/* Reset Password Page Styles */
.reset-password-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #0063b1;
    padding: 40px;
}

.reset-password-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.reset-password-header {
    margin-bottom: 30px;
}

.reset-password-title {
    font-size: 28px;
    font-weight: 700;
    color: #0063b1;
    margin: 0;
}

.reset-password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reset-password-form-group {
    margin: 0;
}

.reset-password-label {
    display: block;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Back to Login Link */
.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-link {
    color: #0063b1;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #004a8a;
    text-decoration: underline;
}

/* Change Password Page Styles */
.change-password-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 50px);
    padding: 40px;
}

.change-password-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.change-password-header {
    margin-bottom: 30px;
}

.change-password-title {
    font-size: 28px;
    font-weight: 700;
    color: #0063b1;
    margin: 0;
}

.change-password-success {
    margin-bottom: 20px;
    border-radius: 6px;
}

.change-password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.change-password-form-group {
    margin: 0;
}

.change-password-label {
    display: block;
    color: #333333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.change-password-error {
    color: #721c24;
    font-size: 13px;
    margin-top: 5px;
}

.change-password-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.change-password-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 24px;
    background-color: #6c757d;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.change-password-cancel:hover {
    background-color: #5a6268;
    color: #ffffff;
    text-decoration: none;
}

/* Header Logo Display Control */
body:not(.sidebar-collapse) .logo-mini {
    display: none !important;
}

body.sidebar-collapse .logo-lg {
    display: none !important;
}

body.sidebar-collapse .logo-mini {
    display: flex !important;
}
