:root {
  --primary: #0056b3;
  --primary-light: #007bff;
  --secondary: #6c757d;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --light: #f8f9fa;
  --dark: #343a40;
  --body-bg: #f8f9fa;
  --sidebar-width: 240px;
  --header-height: 60px;
  --sidebar-bg: #fff;
  --header-bg: #fff;
  --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.1);
  --border-radius: 4px;
  --input-height: 38px;
  --transition: all 0.25s ease;
}

/* General Styles */
body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--body-bg);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-size: 0.9rem; /* Base font size to match submenu */
  opacity: 1;
  transition: opacity 0.15s ease;
}

/* File Upload Styles - Global (Desktop & Mobile) */
.file-upload-area {
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--primary);
  background-color: rgba(0, 86, 179, 0.05);
}



/* Option Type Badge Compact Styles */
td .d-flex.flex-column.gap-1 {
  gap: 0.1rem !important;
  margin: 0;
  padding: 0;
}

td .d-flex.flex-column.gap-1 .badge {
  margin: 0;
  padding: 0.25em 0.5em;
  font-size: 0.75rem;
  line-height: 1.2;
  width: fit-content;
  align-self: flex-start;
}

/* Modal Option Type Compact Styles */
.modal-body .d-flex.flex-column.gap-1 {
  gap: 0.1rem !important;
  margin: 0;
  padding: 0;
}

.modal-body .d-flex.flex-column.gap-1 .badge {
  margin: 0;
  padding: 0.25em 0.5em;
  font-size: 0.75rem;
  line-height: 1.2;
  width: fit-content;
  align-self: flex-start;
}

/* Edit Modal File Upload Zone Styles */
.file-upload-zone {
  padding: 10px 0;
  transition: all 0.3s ease;
}

.file-upload-zone.drag-over {
  background-color: rgba(0, 123, 255, 0.1);
  border-radius: 8px;
  border: 2px dashed #007bff;
  padding: 15px;
}

.browse-files-btn {
  cursor: pointer !important;
  transition: all 0.2s ease;
}

.browse-files-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

/* Package Dropdown Styles */
.package-dropdown-btn {
  border: 2px solid #dee2e6 !important;
  transition: all 0.2s ease;
}

.package-dropdown-btn:hover {
  border-color: #007bff !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

.package-dropdown-btn:focus {
  border-color: #007bff !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.package-dropdown-menu {
  border: 2px solid #007bff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
}

.package-dropdown-menu .dropdown-item-text {
  padding: 8px 12px;
  margin: 0;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.package-dropdown-menu .dropdown-item-text:hover {
  background-color: #f8f9fa;
}

.package-dropdown-menu .dropdown-item-text:last-child {
  border-bottom: none;
}

.package-dropdown-menu .form-check-input {
  cursor: pointer;
}

.file-upload-content {
  cursor: pointer;
}

#browse-files-btn {
  background-color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  color: white !important;
  transition: all 0.2s ease !important;
  padding: 0.5rem 1.5rem !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  display: inline-block !important;
  text-decoration: none !important;
}

#browse-files-btn:hover {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
  color: white !important;
}

#file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 6px;
  position: relative;
  width: 120px;
  min-width: 120px;
  height: 120px;
  border: 1px solid #e9ecef;
  margin-bottom: 0;
  flex-shrink: 0;
  overflow: visible;
  transition: all 0.2s ease;
}

.file-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
  transform: translateY(-2px);
}

.file-item img,
.file-item .image-preview,
img.image-preview {
  width: 65px;
  height: 65px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-item img:hover,
.file-item .image-preview:hover,
img.image-preview:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 첨부파일 이미지 크기 조정 및 가로 정렬 */
.attached-files {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
  align-items: flex-start;
}

.attached-files img,
.file-list img,
.item-attached-files img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.file-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.file-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.image-preview-container {
  margin-bottom: 0.25rem;
  width: 65px;
  height: 65px;
  overflow: hidden;
  position: relative;
}

.image-preview {
  border: 1px solid #dee2e6;
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.file-details h6 {
  margin: 0 0 0.125rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  word-break: break-all;
  line-height: 1.2;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-details small {
  color: var(--secondary);
  font-size: 0.7rem;
}

.file-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 10;
}

.file-remove:hover {
  background: #c82333;
  transform: scale(1.1);
}

/* 이미지 팝업 스타일 */
.image-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-popup-overlay.show {
  opacity: 1;
}

.image-popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.image-popup-overlay.show .image-popup-content {
  transform: scale(1);
}

.image-popup-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 4px;
}

.image-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: var(--danger);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.image-popup-close:hover {
  background: #c82333;
  transform: scale(1.1);
}

.image-popup-filename {
  text-align: center;
  margin-top: 10px;
  font-weight: 500;
  color: var(--dark);
}

/* Page Transition - prevents flashing during navigation */
html.loading-page {
  scroll-behavior: auto;
}

html.loading-page body {
  opacity: 0.98;
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  position: fixed;
  top: var(--header-height);
  left: 0;
  height: calc(100vh - var(--header-height));
  background-color: var(--sidebar-bg);
  box-shadow: var(--shadow);
  overflow-y: auto;
  transition: all 0.3s;
  z-index: 999;
}

.sidebar .sidebar-logo {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar .sidebar-logo img {
  height: 40px;
}

.sidebar-menu {
  padding: 1rem 0;
}

.sidebar-menu .nav-link {
  padding: 0.75rem 1.5rem;
  color: var(--dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}

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

.sidebar-menu .nav-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

.sidebar-menu .nav-link.active {
  background-color: rgba(0, 86, 179, 0.1);
  color: var(--primary);
}

.sidebar-menu .submenu {
  padding-left: 2.5rem;
}

.sidebar-menu .submenu .nav-link {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-left: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
}

.header .logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  /*background: linear-gradient(90deg, var(--primary), var(--primary-light));*/
  transition: width 0.3s ease;
}

.header .logo:hover::after {
  width: 100%;
}

.header .logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-dropdown .dropdown-toggle,
.notification-dropdown .dropdown-toggle,
.user-dropdown .dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 12px;
  position: relative;
  backdrop-filter: blur(10px);
}

.language-dropdown .dropdown-toggle::before,
.notification-dropdown .dropdown-toggle::before,
.user-dropdown .dropdown-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.1), rgba(108, 117, 125, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.language-dropdown .dropdown-toggle:hover,
.notification-dropdown .dropdown-toggle:hover,
.user-dropdown .dropdown-toggle:hover {
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
}

.language-dropdown .dropdown-toggle:hover::before,
.notification-dropdown .dropdown-toggle:hover::before,
.user-dropdown .dropdown-toggle:hover::before {
  opacity: 1;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  border-radius: var(--border-radius);
}

.dropdown-menu-end {
  right: 0;
  left: auto;
}

/* Mobile-specific components */
.mobile-icon {
  display: inline-block !important;
  margin-left: 8px !important;
}

.mobile-icon-btn {
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: var(--dark) !important;
  font-size: 1.1rem !important;
  border: none !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mobile-icon-btn:hover,
.mobile-icon-btn:focus {
  background-color: rgba(0, 0, 0, 0.1) !important;
  color: var(--primary) !important;
}

/* Ensure mobile optimization for all pages */
.card-header .d-flex.flex-column.flex-md-row {
  width: 100% !important;
}

.search-area {
  width: 100% !important;
}

.mobile-search-field {
  width: 100% !important;
}

/* Desktop view optimizations */
@media (min-width: 768px) {
  .card-header .d-flex.flex-md-row {
    justify-content: space-between !important;
    align-items: center !important;
  }
  
  .card-header .d-flex.flex-md-row .w-md-auto {
    width: auto !important;
    max-width: 60% !important;
    margin-left: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  
  .search-area {
    max-width: 300px !important;
  }
  
  .btn-primary {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* 검색 필드와 버튼 높이 맞추기 */
  .input-group .form-control,
  .input-group .btn {
    height: 38px !important;
    line-height: normal !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .input-group .btn {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* Modern status badges and action buttons */
.badge {
  font-weight: 500 !important;
  padding: 0.4em 0.65em !important;
  border-radius: 6px !important;
  font-size: 0.75rem !important;
}

.bg-primary {
  background-color: #4361ee !important;
}

.bg-success {
  background-color: #38b000 !important;
}

.bg-warning {
  background-color: #ff9505 !important;
}

.bg-danger {
  background-color: #d00000 !important;
}

.bg-info {
  background-color: #4cc9f0 !important;
}

.bg-secondary {
  background-color: #6c757d !important;
}

.bg-dark {
  background-color: #212529 !important;
}

.btn-primary {
  background-color: #4361ee !important;
  border-color: #4361ee !important;
}

/* Desktop button optimizations */
@media (min-width: 768px) {
  .btn {
    padding: 0.45rem 1rem !important;
  }
  
  .btn-primary {
    min-width: 140px !important;
  }
}

.btn-success {
  background-color: #38b000 !important;
  border-color: #38b000 !important;
}

.btn-danger {
  background-color: #d00000 !important;
  border-color: #d00000 !important;
}

.btn-warning {
  background-color: #ff9505 !important;
  border-color: #ff9505 !important;
  color: #212529 !important;
}

.btn-info {
  background-color: #4cc9f0 !important;
  border-color: #4cc9f0 !important;
  color: #212529 !important;
}

.btn-secondary {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}

.btn-dark {
  background-color: #212529 !important;
  border-color: #212529 !important;
}

.btn-sm {
  padding: 0.25rem 0.5rem !important;
  font-size: 0.875rem !important;
  border-radius: 0.25rem !important;
}

/* Mobile search field and button optimizations */
@media (max-width: 767.98px) {
  /* Basic mobile overflow prevention */
  body {
    overflow-x: hidden !important;
  }
  
  .card-header,
  .card-body {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  /* Standard container sizing */
  .container, 
  .container-fluid {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Make the flex layout work for mobile */
  .card-header .d-flex.flex-column.flex-md-row .d-flex.flex-column.flex-sm-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    max-width: 100% !important;
  }
  
  /* Set search area to original width */
  .search-area {
    width: 100% !important;
    order: 2 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Make search field original width */
  .mobile-search-field {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix input group width */
  .input-group {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Make form controls more compact */
  .form-control {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }



  /* Item File Upload Styles */
  .item-file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    margin-top: 0.5rem;
  }
  
  .item-file-upload-area:hover,
  .item-file-upload-area.dragover {
    border-color: var(--primary);
    background-color: rgba(0, 86, 179, 0.05);
  }
  
  .item-browse-files-btn {
    background-color: var(--primary) !important;
    border: 3px solid var(--primary) !important;
    color: white !important;
    transition: all 0.2s ease !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 3px 6px rgba(0, 86, 179, 0.2) !important;
    outline: none !important;
    cursor: pointer !important;
  }
  
  .item-browse-files-btn:hover {
    background-color: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.25) !important;
  }
  
  /* Make buttons full width */
  .card-header .btn-primary,
  .card-body .btn-primary {
    width: 100% !important;
    justify-content: center !important;
    order: 1 !important;
  }
  
  /* Browse Files 버튼 가운데 정렬 */
  .file-upload-content {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  #browse-files-btn {
    margin: 0 auto !important;
    display: inline-block !important;
  }
  
  /* Consistent field heights */
  .input-group .form-control {
    height: 38px !important;
  }
  
  .input-group .btn {
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Force field widths to match */
  .w-100 {
    width: 100% !important;
  }
  
  /* Reset order for small screens */
  .order-1, .order-2, .order-sm-1, .order-sm-2 {
    order: unset !important;
  }
  
/* Mobile header optimizations */
  .header {
    padding: 0 0.75rem;
    height: 50px;
    z-index: 1030;
  }
  
  .header .logo {
    margin-left: 0.5rem;
  }
  
  .header .logo img {
    height: 28px;
    width: auto;
  }
  
  .header .toggle-sidebar {
    display: block;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0;
    border: none;
  }
  
  .header .toggle-sidebar:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }
  
  .top-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
  }
  
  .top-actions .nav-link {
    margin-left: 8px;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0;
    position: relative;
  }
  
  .top-actions .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }
  
  /* Language dropdown styling */
  .language-dropdown .dropdown-menu {
    min-width: 180px;
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    margin-top: 0.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1040;
    overflow: visible;
    position: absolute;
  }
  
  .dropdown-menu-end {
    right: 0;
    left: auto;
  }
  
  .language-dropdown .dropdown-item {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
  }
  
  .language-dropdown .dropdown-item img {
    margin-right: 10px;
  }
  
  /* Notification styling */
  .notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }
  
  .notification-item {
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0;
  }
  
  .notification-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
  }
  
  .notification-content {
    flex: 1;
  }
  
  .notification-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2px;
  }
  
  .notification-time {
    font-size: 0.75rem;
  }
  
  .dropdown-header {
    font-weight: 600;
    color: var(--dark);
    padding: 0.5rem 0.75rem;
  }
  
  /* Improved dropdown display */
  .dropdown-menu.show {
    display: block !important;
    animation: fadeIn 0.2s ease-out;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Buttons and search fields optimization */
  .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .search-area {
    width: 100%;
  }
  
  .mobile-search-field {
    width: 100%;
  }
  
  .mobile-search-field .form-control {
    height: 38px;
    font-size: 0.875rem;
  }
  
  .mobile-search-field .btn {
    min-width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Make sure top icons are visible */
  .mobile-icon {
    display: inline-block !important;
    margin-left: 8px !important;
  }
  
  .mobile-icon-btn {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: var(--dark) !important;
    font-size: 1.1rem !important;
    border: none !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* Make sure all menu items display correctly */
  .top-actions {
    display: flex !important;
    align-items: center !important;
  }
  
  .language-dropdown.mobile-icon {
    display: inline-block !important;
  }
  
  .notification-dropdown.mobile-icon {
    display: inline-block !important;
  }
  
  .user-dropdown.mobile-icon {
    display: inline-block !important;
  }
  
  /* Page titles and list headings */
  .page-header {
    margin: 1rem 0;
    font-size: 1.25rem;
  }
  
  .section-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  /* Table adjustments */
  .data-table {
    font-size: 0.875rem;
  }
  
  /* Search form field adjustments */
  .form-control, .form-select {
    height: 38px;
    font-size: 0.875rem;
  }
  
  /* List titles and subheadings */
  h4, h5, h6 {
    font-size: 1rem;
  }
  
  /* Card and form elements */
  .card-header {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
  }
  
  /* Fix submenu text font */
  .sidebar-menu .submenu .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
}

.header .top-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header .top-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: transparent;
  backdrop-filter: blur(10px);
}

.header .top-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.header .top-nav .nav-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
}

.header .top-nav .nav-link:hover::before {
  opacity: 1;
}

.header .top-nav .nav-link.active {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
  font-weight: 600;
}

.header .top-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
}

.header .top-actions {
  display: flex;
  align-items: center;
}

.header .top-actions .dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--dark);
  cursor: pointer;
}

.header .top-actions .dropdown-toggle:hover {
  color: var(--primary);
}

.header .top-actions .dropdown-toggle::after {
  display: none;
}

.header .top-actions .nav-link {
  color: var(--dark);
  font-size: 1.2rem;
  padding: 0.5rem;
  margin-left: 0.5rem;
}

.header .top-actions .nav-link:hover {
  color: var(--primary);
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  padding: 2rem;
  width: calc(100% - var(--sidebar-width));
  transition: all 0.3s;
}

.page-title {
  margin-bottom: 1.5rem;
}

.page-title h1 {
  font-size: 1.8rem; /* Keep title size larger */
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.breadcrumb {
  margin-bottom: 1rem;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.stats-card {
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.card-stats {
  padding: 1rem;
  display: flex;
  align-items: center;
}

.card-stats .icon {
  font-size: 2rem;
  margin-right: 1rem;
  color: var(--primary);
}

.card-stats .stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0;
}

.card-stats .stat-label {
  font-size: 0.9rem; /* Match submenu font size */
  color: var(--secondary);
  margin-bottom: 0;
}

/* Address Card */
.address-card {
  padding: 0.75rem 1rem 0.5rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.address-card .address-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.address-card .address-info {
  margin-bottom: 0.3rem;
  font-size: 0.9rem; /* Match submenu font size */
  display: flex;
  align-items: flex-start;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.address-card .address-info:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.address-card .address-info strong {
  min-width: 120px;
  color: var(--dark);
  margin-right: 10px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  padding-right: 10px;
  font-weight: 500;
}

/* Copyable Text */
.copyable-text {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.copyable-text:last-child {
  margin-bottom: 0;
}

.copyable-text span {
  flex: 1;
  min-width: 150px;
  margin-bottom: 5px;
  padding-right: 15px;
  word-break: break-word;
}

.copy-button {
  border: 1px solid #3498db;
  background-color: #3498db;
  color: white;
  cursor: pointer;
  padding: 2px 8px;
  margin-left: 20px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 500;
  transition: all 0.2s;
  width: 50px;
  min-width: 50px;
  text-align: center;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: inline-block;
}

.copy-button:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.copy-button:active {
  transform: translateY(1px);
}

/* Copy Popup */
.copy-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.copy-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.copy-popup {
  background-color: white;
  border-radius: 8px;
  width: 320px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.copy-popup-overlay.show .copy-popup {
  transform: scale(1);
}

.copy-popup-header {
  background-color: #f8f9fa;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.copy-popup-header span {
  font-weight: 600;
  color: #333;
}

.copy-popup-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.copy-popup-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.copy-popup-icon {
  font-size: 40px;
  color: #2ecc71;
  margin-bottom: 15px;
}

#copy-popup-message {
  color: #555;
  line-height: 1.4;
}

.address-content {
  display: flex;
  flex-direction: column;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  white-space: nowrap;
}

.data-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  font-size: 0.9rem; /* Match submenu font size */
}

.data-table td {
  font-size: 0.9rem; /* Match submenu font size */
}

.data-table .action-buttons a {
  margin-right: 0.5rem;
}

/* Forms */
.form-label {
  font-weight: 500;
}

.form-label.required::after {
  content: "*";
  color: var(--danger);
  margin-left: 4px;
}

.form-control {
  border-radius: 0.25rem;
  border: 1px solid #ced4da;
  padding: 0.5rem 0.75rem;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
  border-color: #80bdff;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #0069d9;
  border-color: #0062cc;
}

.btn-outline-primary {
/*color: var(--primary);*/
  border-color: var(--primary);
  background-color: var(--primary);
  color: #fff;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Tabs */
.nav-tabs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-tabs .nav-link {
  border: none;
  color: var(--dark);
  padding: 0.75rem 1rem;
  font-weight: 500;
}

.nav-tabs .nav-link:hover {
  border-color: transparent;
  color: var(--primary);
}

.nav-tabs .nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  background-color: transparent;
}

.tab-content {
  padding: 1.5rem 0;
}

/* Login/Register */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f8f9fa;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card .auth-logo img {
  height: 50px;
}

.auth-card .auth-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Modal */
.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-title {
  font-weight: 600;
}

/* Status Badges */
.badge {
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
}

.badge.bg-success {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  color: white;
}

.badge.bg-success::before {
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.badge.bg-warning {
  background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
  color: #212529;
}

.badge.bg-warning::before {
  background-color: rgba(33, 37, 41, 0.7);
  box-shadow: 0 0 0 2px rgba(33, 37, 41, 0.3);
}

.badge.bg-danger {
  background: linear-gradient(135deg, #dc3545, #e83e8c) !important;
  color: white;
}

.badge.bg-danger::before {
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.badge.bg-info {
  background: linear-gradient(135deg, #17a2b8, #00b8d4) !important;
  color: white;
}

.badge.bg-info::before {
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.badge.bg-primary {
  background: linear-gradient(135deg, #007bff, #0056b3) !important;
  color: white;
}

.badge.bg-primary::before {
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.badge.bg-secondary {
  background: linear-gradient(135deg, #6c757d, #495057) !important;
  color: white;
}

.badge.bg-secondary::before {
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Utilities */
.text-muted {
  color: var(--secondary) !important;
}

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

/* Mobile Optimization - Additional styles */
@media (max-width: 767.98px) {
  /* Sidebar and Navigation */
  .sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    margin-bottom: 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1030;
    max-height: 100vh;
    overflow-y: auto;
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
  
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1020;
    display: none;
  }
  
  .sidebar.show + .sidebar-overlay {
    display: block;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 0.75rem;
  }
  
  .header .navbar {
    padding: 0.5rem 1rem;
  }
  
  /* Tables and Data */
  .data-table th, .data-table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
  
  /* Make text in tables smaller on very small screens */
  @media (max-width: 400px) {
    .data-table th, .data-table td {
      font-size: 0.75rem;
      padding: 0.4rem 0.2rem;
    }
  }
  
  /* Improve button placement on mobile */
  .action-buttons .btn {
    margin-bottom: 0.5rem;
    width: 100%;
  }
  
  .action-buttons {
    display: flex;
    flex-direction: column;
  }
  
  /* Make search forms more mobile-friendly */
  .search-area {
    flex-direction: column;
    align-items: stretch !important;
    margin-bottom: 1rem;
  }
  
  .search-area .form-group {
    margin-bottom: 0.5rem;
    width: 100%;
  }
  
  .search-area .form-control {
    width: 100%;
  }
  
  .search-area .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
  
  /* Responsive tables */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Form elements on mobile */
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-control {
    height: calc(1.5em + 0.75rem + 2px);
  }
  
  /* Better spacing for mobile forms */
  .card {
    margin-bottom: 1rem;
  }
  
  /* Card body padding less on mobile */
  .card-body {
    padding: 1rem;
  }
  
  /* Items container mobile adjustments */
  .item-layer {
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
  }
  
  /* Improve visibility of badges on mobile */
  .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
  }
  
  /* Better button sizing on mobile */
  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  /* Better form elements alignment */
  .input-group {
    width: 100%;
  }
  
  /* Layer header adjustments for mobile */
  .layer-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
  }
  
  /* Better spacing for tables on mobile */
  .table th, .table td {
    vertical-align: middle;
  }
  
  /* Form improvements */
  select.form-select {
    background-position: right 0.5rem center;
  }
  
  /* Fix menu toggle button */
  .menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
    background-color: var(--light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
  }
  
  /* Fix buttons display and alignment */
  .d-flex.flex-column.flex-sm-row {
    gap: 0.5rem;
  }
  
  /* Make language selector easier to tap */
  .language-selector {
    padding: 0.5rem 0;
  }
  
  .language-selector .dropdown-item {
    padding: 0.5rem 1rem;
  }
}

.bg-primary-light {
  background-color: rgba(0, 123, 255, 0.1) !important;
}

/* Stat card links */
.stat-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.stat-card-link:hover .card {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  border-left: 3px solid var(--primary);
}

.stat-card-link:hover .stat-value {
  color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 992px) {
  :root {
    --sidebar-width: 0px;
  }
  
  .sidebar {
    left: -240px;
  }
  
  .sidebar.show {
    left: 0;
    width: 240px;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .toggle-sidebar {
    display: block !important;
  }
  
  .address-info {
    flex-direction: column;
  }
  
  .address-content {
    width: 100%;
  }
  
  .copyable-text {
    margin-bottom: 8px;
  }
  
  .copyable-text span {
    display: inline-block;
    width: calc(100% - 70px);
  }
  
  .copy-button {
    margin-top: 0;
    margin-left: 8px;
  }
}

@media (max-width: 576px) {
  .copyable-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  
  .copyable-text span {
    width: calc(100% - 60px);
  }
  
  .address-info strong {
    margin-bottom: 10px;
    display: block;
    width: 100%;
    padding-bottom: 5px;
    border-bottom: 1px dashed #e0e0e0;
  }
}

.toggle-sidebar {
  display: none;
  background: transparent;
  border: none;
  color: var(--dark);
  font-size: 1.2rem;
  cursor: pointer;
}

.toggle-sidebar:hover {
  color: var(--primary);
}

/* Language Selector */
.language-dropdown .dropdown-item {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
}

.language-dropdown .dropdown-item img {
  width: 20px;
  margin-right: 8px;
}

/* Notifications */
.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--danger);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Item Layer */
.item-layer {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #f8f9fa;
}

.item-layer .layer-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  align-items: center;
}

.item-layer .layer-title {
  font-weight: 600;
  margin-bottom: 0;
}

/* Remove button styling */
.remove-item, .remove-package {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background-color: #fff;
  border: 1px solid #dc3545;
  border-radius: 0.25rem;
  color: #dc3545;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.remove-item:hover, .remove-package:hover {
  background-color: #dc3545;
  color: #fff;
}

/* Warning Message */
.warning-message {
  padding: 1rem;
  background-color: rgba(255, 193, 7, 0.1);
  border: 1px solid var(--warning);
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
}

.warning-message p {
  margin-bottom: 0;
  color: #856404;
}

/* Modern Button Styles */
.btn {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 0;
  font-weight: 500;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow-sm);
  height: calc(var(--input-height) - 4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  box-shadow: var(--shadow-md);
}

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

.btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, #0062cc, #004494);
}

.btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  height: auto;
  min-height: 28px;
}

/* Modern Input Styles */
.form-control {
  height: var(--input-height);
  padding: 0.375rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.15);
}

.input-group .form-control {
/*  border-right: 0;*/
  border-right: -1px;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 0;
  background-color: white;
  color: #6c757d;
}

.input-group .btn:hover {
  background-color: #f8f9fa;
  color: #343a40;
}

/* Modern Pagination Styles */
.pagination {
  gap: 0.2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Add styles for pagination summary text */
.fw-medium {
  font-weight: 500;
}

/* Table styles with consistent font size */
.table td, 
.table th {
  font-size: 0.9rem;
/*  text-align: center;*/
}

/* We no longer need these styles as we're using inline styles for language loading */

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  border: none;
  border-radius: var(--border-radius);
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.3rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6c757d;
  transition: var(--transition);
  background-color: #f8f9fa;
  box-shadow: var(--shadow-sm);
}

.pagination .page-link:hover {
  background-color: #e9ecef;
  color: var(--primary);
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0,123,255,0.3);
}

.pagination .page-item.disabled .page-link {
  color: #adb5bd;
  pointer-events: none;
  background-color: #f1f3f5;
  box-shadow: none;
  opacity: 0.6;
}

/* Modern Card Header */
.card-header {
  padding: 0.75rem 1rem;
  font-weight: 500;
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive Styles for Mobile Optimization */
@media (max-width: 992px) {
  /* Improved search and button controls */
  .card-header .d-flex.flex-column {
    width: 100%;
  }

  .input-group {
    min-width: 100%;
  }
  
  .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px; /* Slightly smaller on mobile */
  }
  
  /* Card header improvements for mobile */
  .card-header {
    padding: 0.75rem;
  }
  
  /* Pagination improvements */
  .pagination {
    gap: 0.2rem;
    flex-wrap: wrap;
  }
  
  .pagination .page-link {
    min-width: 1.8rem;
    min-height: 1.8rem;
    padding: 0.2rem 0.4rem;
  }
}

/* Extra small devices (phones) */
@media (max-width: 576px) {
  /* Ensure create button and search are properly stacked on smallest screens */
  .card-header .btn-primary {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Stack buttons in mobile view */
  .card-body .btn-sm {
    margin-right: 0.2rem;
    margin-bottom: 0.2rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
    min-height: 26px;
  }
  
  /* Adjust table for small screens */
  .table-responsive {
    border: 0;
    overflow-x: auto;
  }
  
  /* More compact pagination for very small screens */
  .pagination .page-link {
    padding: 0.2rem 0.35rem;
    min-width: 1.6rem;
    min-height: 1.6rem;
    font-size: 0.75rem;
  }
  
  /* Improve table layout on mobile */
  .table td, .table th {
    padding: 0.45rem 0.2rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

/* Payment method cards */
.payment-method-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.3s ease;
}

.payment-method-card:hover {
  background: #e9ecef;
  border-color: #007bff;
  transform: translateY(-2px);
}

.payment-method-card .btn {
  width: 100%;
}

.file-preview{
	margin-bottom: 0.25rem;
}
