/* Common Role Dashboard Styles */
.role-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* POS Nav Section - Tabs and Title Side by Side */
.pos-nav-section {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}

.pos-nav-section .pos-tabs {
  flex-shrink: 0;
  margin-bottom: 0;
  flex-direction: row;
  width: auto;
  min-height: auto;
}

.pos-nav-section .pos-tabs .tab-btn {
  border-left: none;
  border-bottom: 4px solid transparent;
  text-align: center;
  width: auto;
  padding: 12px 24px;
}

.pos-nav-section .pos-tabs .tab-btn.active {
  border-left-color: transparent;
  border-bottom-color: #667eea;
}

.pos-section-title {
  margin: 0;
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
}

.pos-section-title i {
  color: #667eea;
  margin-right: 8px;
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  color: white;
  border-radius: 10px;
}

.pos-admin-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.role-header h1 {
  margin: 0;
  font-size: 2rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Tab Navigation - Left Sidebar Layout */
.role-tabs {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 200px;
  min-height: 600px;
}

.pos-admin-tabs {
  width: 220px;
}

.tab-btn {
  width: 100%;
  padding: 15px 20px;
  background: #f8f9fa;
  border: none;
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  text-align: left;
}

.tab-btn.active {
  background: #667eea;
  color: white;
  border-left-color: #4c63d2;
}

.tab-btn:hover {
  background: #e9ecef;
}

.tab-btn.active:hover {
  background: #667eea;
}

/* Layout container for sidebar + content */
.sidebar-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Tab Content */
.role-content {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.pos-admin-content {
  flex: 1;
  min-height: 600px;
}

.tab-content {
  display: none;
  padding: 30px;
}

.tab-content.active {
  display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .sidebar-layout {
    flex-direction: column;
  }

  .role-tabs, .pos-admin-tabs {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    min-height: auto;
  }

  .tab-btn {
    flex: 1 1 auto;
    min-width: 120px;
    border-left: none;
    border-bottom: 4px solid transparent;
    text-align: center;
  }

  .tab-btn.active {
    border-left-color: transparent;
    border-bottom-color: #4c63d2;
  }
}

/* Common Buttons */
.primary-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.primary-btn:hover:not(:disabled) {
  background: #218838;
}

.primary-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.secondary-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.secondary-btn:hover:not(:disabled) {
  background: #545b62;
}

.warning-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.warning-btn:hover:not(:disabled) {
  background: #c82333;
}

.info-btn {
  background: #17a2b8;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.info-btn:hover:not(:disabled) {
  background: #138496;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-group input:disabled {
  background: #f8f9fa;
  color: #6c757d;
}

.form-group .help-text {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

/* Upload status and file display */
.upload-status {
  display: block;
  font-size: 12px;
  margin-top: 5px;
}

.uploaded-file-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  word-break: break-all;
  overflow-wrap: break-word;
}

.uploaded-file-container a {
  color: #007bff;
  text-decoration: none;
  font-size: 12px;
  flex: 1;
  word-break: break-all;
  overflow-wrap: break-word;
  min-width: 0;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin: 0 0 20px 0;
  color: #333;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Code Display */
.code-display {
  background: #667eea;
  color: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  margin: 15px 0;
}

.assignment-code {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 3px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  margin: 10px 0;
  cursor: pointer;
}

.code-validation {
  margin-top: 20px;
}

.code-validation.hidden {
  display: none;
}

.code-validation input {
  text-align: center;
  font-size: 18px;
  letter-spacing: 2px;
  margin: 10px 0;
}

/* Status Indicators */
.status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

.status.pending {
  background: #fff3cd;
  color: #856404;
}

.status.approved, .status.completed {
  background: #d4edda;
  color: #155724;
}

.status.rejected, .status.failed {
  background: #f8d7da;
  color: #721c24;
}

.status.in_progress, .status.active {
  background: #cce5ff;
  color: #004085;
}

/* No Data Messages */
.no-data, .no-assignment {
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-style: italic;
}

/* Supplier Specific Styles */
.supplier-theme .role-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  margin-bottom: 10px;
}

.stock-info h4 {
  margin: 0 0 5px 0;
  color: #333;
}

.stock-info .category {
  color: #667eea;
  font-size: 14px;
  font-weight: 500;
}

.stock-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.price {
  font-size: 18px;
  font-weight: bold;
  color: #28a745;
}

.stock-actions {
  display: flex;
  gap: 10px;
}

.edit-btn, .view-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.delete-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

/* Promoter Specific Styles */
.promoter-theme .role-header {
  background: linear-gradient(135deg, #fd746c 0%, #ff9068 100%);
}

.assignment-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.pos-interface {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  margin-top: 20px;
}

.pos-header {
  background: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.active-session {
  color: #28a745;
  font-weight: bold;
}

.pos-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.product-card {
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 15px;
  text-align: center;
}

.product-price {
  font-size: 18px;
  font-weight: bold;
  color: #28a745;
  margin: 10px 0;
}

.add-to-cart-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #dee2e6;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  background: #6c757d;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

.cart-total {
  padding: 15px;
  text-align: right;
  font-size: 18px;
  border-top: 2px solid #667eea;
}

/* Train Specific Styles */
.train-theme .role-header {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

/* AIOT (AI Experience) Theme */
.aiot-theme .role-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Admin Specific Styles */
.admin-theme .role-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.extension-category {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.extension-category h3 {
  margin: 0 0 15px 0;
  color: #333;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
}

.extension-category h4 {
  margin: 20px 0 10px 0;
  color: #667eea;
}

.extension-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 15px;
  align-items: end;
  margin-bottom: 15px;
}

.slot-card {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.slot-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slot-card.pending {
  border-left: 4px solid #ffc107;
}

.slot-card.approved {
  border-left: 4px solid #28a745;
}

.slot-card.rejected {
  border-left: 4px solid #dc3545;
}

.slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.slot-header h4 {
  margin: 0;
  color: #333;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.status-badge.approved {
  background: #d4edda;
  color: #155724;
}

.status-badge.rejected {
  background: #f8d7da;
  color: #721c24;
}

.slot-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.slot-review-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.approval-section {
  margin-top: 20px;
}

.approval-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.danger-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.danger-btn:hover {
  background: #c82333;
}

.code-instruction {
  color: #6c757d;
  font-style: italic;
  margin: 15px 0;
}

.supplier-contact {
  background: #e9ecef;
  padding: 10px;
  border-radius: 5px;
  margin-top: 15px;
}

.roles-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.role-checkbox {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.role-checkbox:hover {
  background: #e9ecef;
}

.role-checkbox input {
  margin-right: 10px;
  width: auto;
}

.role-checkbox.checked {
  background: #d4edda;
  color: #155724;
}

.user-details {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.user-details.hidden {
  display: none;
}

.user-info-card {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
}

.user-card {
  background: #f8f9fa;
  padding: 20px;
  border-bottom: 1px solid #dee2e6;
}

.user-card h4 {
  margin: 0 0 10px 0;
  color: #333;
}

.role-assignment {
  padding: 20px;
}

.info-text {
  color: #6c757d;
  margin-bottom: 15px;
}

.system-stats {
  margin-bottom: 30px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.system-actions {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
}

.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  margin-bottom: 10px;
}

.user-actions {
  display: flex;
  gap: 10px;
}

.marketer-extensions,
.supplier-extensions {
  background: white;
  padding: 15px;
  border-radius: 5px;
  margin-top: 10px;
}

.assignment-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.stat-card h3 {
  margin: 0;
  font-size: 2rem;
  color: #667eea;
}

.assignment-card {
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
}

.assignment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.assignment-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.start-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  margin-bottom: 10px;
}

.verification-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.verification-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Placeholder Styles */
.placeholder-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.placeholder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
}

.placeholder-content {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.coming-soon {
  text-align: center;
}

.coming-soon h2 {
  color: #667eea;
  margin-bottom: 20px;
}

.coming-soon p {
  color: #6c757d;
  margin-bottom: 15px;
  line-height: 1.6;
}

.available-sections {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
  text-align: left;
}

.available-sections h3 {
  color: #333;
  margin-bottom: 15px;
}

.available-sections ul {
  list-style: none;
  padding: 0;
}

.available-sections li {
  margin-bottom: 10px;
}

.available-sections a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.available-sections a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .role-container, .placeholder-container {
    padding: 10px;
  }

  .role-header, .placeholder-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .role-tabs {
    flex-direction: column;
  }

  .tab-content {
    padding: 20px;
  }

  .pos-body {
    grid-template-columns: 1fr;
  }

  .assignment-stats {
    grid-template-columns: 1fr;
  }

  .stock-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .stock-details {
    align-items: center;
  }

  .modal-content {
    padding: 20px;
  }

  .cart-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .assignment-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .assignment-actions {
    justify-content: center;
  }

  .transaction-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* Station Slots Table Styles */
.table-container {
  overflow-x: auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.station-slots-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.station-slots-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

.station-slots-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #e0e6ed;
  vertical-align: top;
}

.slot-row {
  transition: all 0.3s ease;
}

.slot-row:hover {
  background-color: #f8f9ff;
}

.slot-row.active-slot {
  background-color: #f0f8f0;
  border-left: 4px solid #28a745;
}

.station-info strong,
.product-info strong {
  display: block;
  color: #2c3e50;
  margin-bottom: 4px;
}

.station-info small,
.product-info small {
  display: block;
  color: #6c757d;
  font-size: 0.8rem;
}

.marketer-cell em {
  color: #6c757d;
  font-style: italic;
}

.date-range div {
  font-size: 0.85rem;
  line-height: 1.3;
}

.date-range div:first-child {
  font-weight: 600;
  color: #495057;
}

.date-range div:last-child {
  color: #6c757d;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-badge.approved {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.status-badge.rejected {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-badge.active {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.active-indicator {
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.active-indicator.active {
  background: #d4edda;
  color: #155724;
}

.active-indicator.inactive {
  background: #f8f9fa;
  color: #6c757d;
}

.details-cell {
  min-width: 120px;
}

.activation-code {
  background: #e7f3ff;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.activation-code strong {
  color: #0066cc;
  font-family: 'Courier New', monospace;
}

.rejection-reason {
  background: #ffe6e6;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #cc0000;
  margin-bottom: 4px;
  cursor: help;
}

.approved-by {
  font-size: 0.8rem;
  color: #6c757d;
  font-style: italic;
}

/* Responsive table */
@media (max-width: 768px) {
  .station-slots-table {
    font-size: 0.8rem;
  }
  
  .station-slots-table th,
  .station-slots-table td {
    padding: 10px 8px;
  }
  
  .station-info small,
  .product-info small {
    display: none;
  }
}

/* Barcode Styles */
.barcode-cell {
  text-align: center;
  padding: 8px;
  min-width: 100px;
}

.barcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.barcode-image {
  width: 60px;
  height: 60px;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
}

.barcode-image:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.barcode-info {
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
  text-align: center;
}

.no-barcode {
  color: #999;
  font-size: 0.8rem;
  font-style: italic;
}

/* Barcode Modal */
.barcode-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.barcode-modal-content {
  background: white;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.barcode-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px 10px 0 0;
}

.barcode-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.barcode-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.barcode-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.barcode-modal-body {
  padding: 20px;
}

.barcode-large {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.barcode-large-image {
  width: 250px;
  height: 250px;
  max-width: 100%;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.barcode-instructions {
  margin-bottom: 20px;
  padding: 15px;
  background: #e7f3ff;
  border-radius: 6px;
  border-left: 4px solid #007bff;
}

.barcode-instructions p {
  margin-top: 0;
  margin-bottom: 10px;
  color: #2c3e50;
}

.barcode-instructions ul {
  margin: 0;
  padding-left: 20px;
}

.barcode-instructions li {
  margin-bottom: 5px;
  color: #495057;
}

.barcode-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn,
.print-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.download-btn:hover,
.print-btn:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.print-btn {
  background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
}

.print-btn:hover {
  background: linear-gradient(135deg, #5a2d91 0%, #d91a72 100%);
  box-shadow: 0 3px 10px rgba(111, 66, 193, 0.3);
}

/* Responsive barcode modal */
@media (max-width: 480px) {
  .barcode-modal-content {
    margin: 10px;
    max-width: none;
  }
  
  .barcode-large-image {
    width: 200px;
    height: 200px;
  }
  
  .barcode-actions {
    flex-direction: column;
  }
  
  .barcode-image {
    width: 50px;
    height: 50px;
  }
  
  .barcode-cell {
    min-width: 80px;
  }
}

/* AIOT (AI Experience) Layout Styles */
.aiot-container {
  max-width: 1400px;
}

.aiot-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.aiot-layout {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.aiot-left-tabs {
  width: 250px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  flex-shrink: 0;
}

.aiot-left-tabs h3 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 1.1rem;
  padding-bottom: 15px;
  border-bottom: 2px solid #ecf0f1;
}

.aiot-role-tab {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  color: #2c3e50;
  transition: all 0.3s ease;
}

.aiot-role-tab:hover:not(:disabled) {
  background: #e9ecef;
  border-color: #667eea;
  transform: translateX(5px);
}

.aiot-role-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
  font-weight: 600;
}

.aiot-role-tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.aiot-right-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aiot-top-tabs {
  display: flex;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  gap: 5px;
  padding: 5px;
}

.aiot-top-tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 8px;
  color: #2c3e50;
}

.aiot-top-tab-btn:hover {
  background: #e9ecef;
}

.aiot-top-tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.aiot-content-area {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 500px;
  padding: 30px;
}

.aiot-tab-content h2 {
  margin: 0 0 25px 0;
  color: #2c3e50;
  font-size: 1.8rem;
}

.aiot-tab-body {
  margin-top: 20px;
}

.aiot-placeholder-content {
  text-align: center;
  padding: 60px 20px;
}

.aiot-placeholder-icon {
  margin-bottom: 20px;
}

.aiot-placeholder-content h3 {
  color: #2c3e50;
  margin-bottom: 10px;
}

/* Responsive design for AIOT */
@media (max-width: 768px) {
  .aiot-layout {
    flex-direction: column;
  }
  
  .aiot-left-tabs {
    width: 100%;
  }
  
  .aiot-top-tabs {
    flex-wrap: wrap;
  }
  
  .aiot-top-tab-btn {
    min-width: calc(50% - 5px);
  }
}
