:root {
  /* Color Palettes */
  --bulma-primary: hsla(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l), 1);
  --bulma-primary-base: hsla(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l), 1);
  --bulma-primary-rgb: 231, 160, 60;
  --bulma-primary-h: 35.09deg;
  --bulma-primary-s: 78.08%;
  --bulma-primary-l: 57.06%;
}

/* Login and Branding */
.login-logo {
  height: 12em;
}

.header-logo {
  background-color: white;
  border-radius: 8px;
  padding: 4px;
}

/* Toggle element visibility - for JavaScript show/hide operations */
.is-hidden-js {
  display: none !important;
}

.is-visible-js {
  display: block !important;
}

/* QR code reader container */
.qr-reader-container {
  width: 320px; 
  margin: 0 auto;
}

/* Clickable elements */
.clickable {
  pointer-events: all;
  cursor: pointer;
}

/* Cards and containers */
.section-card {
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
}

.icon-container {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-container.is-primary {
  background-color: #00d1b2;
  color: white;
}

.icon-container.is-info {
  background-color: #3e8ed0;
  color: white;
}

.icon-container.is-success {
  background-color: #48c78e;
  color: white;
}

.icon-container.is-warning {
  background-color: #ffe08a;
  color: rgba(0, 0, 0, 0.7);
}

.card-content {
  flex-grow: 1;
}

/* Operating System badges */
.os-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.os-linux {
  background-color: #ff6b35;
}

.os-macos {
  background-color: #007acc;
}

.os-other {
  background-color: #6c757d;
}

/* UUID and identifiers */
.uuid-breadcrumb {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  color: #333;
  font-family: 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Loading indicators */
#loading {
  display: none;
}

/* Detail views */
.detail-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.field-label {
  font-weight: 600;
  color: #363636;
}

.field-value {
  color: #4a4a4a;
}

/* Note textarea styling */
.textarea[readonly] {
  background-color: #f5f5f5;
  cursor: default;
  resize: none;
}

.textarea:not([readonly]) {
  resize: vertical;
}

/* Table styling and sorting */
.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable:hover {
  background-color: #f5f5f5;
}

.sort-icon {
  margin-left: 0.5rem;
  opacity: 0.5;
}

.sort-active {
  opacity: 1;
}

.table-container {
  min-height: 300px;
}

.clickable-row {
  cursor: pointer;
  transition: background-color 0.2s;
}

.clickable-row:hover {
  background-color: #f0f8ff !important;
}

.address-field {
  font-size: 0.9em;
  line-height: 1.3;
}

/* Role styling */
.role-admin, 
.role-checkbox-item.checked.role-admin { 
  background-color: #e74c3c; 
}

.role-admin-rivenditore, 
.role-checkbox-item.checked.role-admin-rivenditore { 
  background-color: #f39c12; 
}

.role-super-tecnico, 
.role-checkbox-item.checked.role-super-tecnico { 
  background-color: #9b59b6; 
}

.role-tecnico, 
.role-checkbox-item.checked.role-tecnico { 
  background-color: #3498db; 
}

.role-oper, 
.role-checkbox-item.checked.role-oper { 
  background-color: #16b659; 
}

.role-script-executor, 
.role-checkbox-item.checked.role-script-executor { 
  background-color: #5fbdbd; 
}

.role-package-maintainer,
.role-checkbox-item.checked.role-package-maintainer { 
  background-color: #6d9440; 
}

.role-other, 
.role-checkbox-item.checked.role-other { 
  background-color: #95a5a6; 
}

.role-breadcrumb {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin: 0.125rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
}

/* Role checkbox styling for forms */
.role-checkbox-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.role-checkbox-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border: 2px solid #dbdbdb;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  user-select: none;
}

.role-checkbox-item:hover {
  border-color: #b5b5b5;
}

.role-checkbox-item.checked {
  color: white;
  border-color: transparent;
}

.role-checkbox-item input {
  margin-right: 0.5rem;
}

/* Disabled role checkbox styling */
.role-checkbox-item.disabled-checkbox {
  opacity: 0.7;
  cursor: not-allowed;
}

.role-checkbox-item.disabled-checkbox:hover {
  text-decoration: none;
  box-shadow: none;
  border-color: #dbdbdb;
}

/* Forms and containers */
.form-section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.form-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.field-group {
  margin-bottom: 1.5rem;
}

.field-group:last-child {
  margin-bottom: 0;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.button-group .button {
  min-width: 120px;
}

.notification {
  margin-bottom: 1.5rem;
}

/* Pagination and filters */
.pagination-controls {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.5rem;
}

.pagination-controls .label {
  margin-bottom: 0;
}

/* Responsive tables */
.table-responsive {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

/* Breadcrumb and navigation */
.nav-buttons {
  margin-bottom: 1.5rem;
}

/* Modals */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal-card {
  border-radius: 12px;
  overflow: hidden;
}

.modal-card-head {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.modal-card-foot {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Table and data display standardization */
.table-controls-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.table-search {
  flex-grow: 1;
  margin-right: 1rem;
}

.table-filter {
  min-width: 150px;
}

.table-page-size {
  min-width: 180px;
}

@media screen and (max-width: 768px) {
  .table-controls-row {
    flex-direction: column;
  }
  
  .table-search {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .table-filter {
    margin-bottom: 1rem;
    width: 100%;
  }
  
  .table-page-size {
    width: 100%;
  }
}

/* Standard data table styling */
.data-table {
  width: 100%;
  margin-bottom: 1.5rem;
}

.data-table thead th {
  position: relative;
  padding-right: 1.5rem;
}

.data-table .sort-icon {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.data-table .sort-active {
  opacity: 1;
}

/* Pagination standardization */
.pagination-container {
  margin: 1.5rem 0;
}

.page-info {
  text-align: center;
  color: #7a7a7a;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Status indicators */
.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* Da aggiungere al file global.css */
.status-indicator.status-error {
  background-color: #ff3860;
}
.status-indicator.status-ok {
  background-color: #23d160;
}
.status-indicator.status-warning {
  background-color: #ffdd57;
}

/* Channel status indicators */
.beta-channel-breadcrumb { 
  background-color: #3498db; 
}

.stable-channel-breadcrumb { 
  background-color: #e74c3c; 
}

/* Platform breadcrumb colors */
.platform-linux {
  background-color: #ff6b35;
}

.platform-macos {
  background-color: #007acc;
}

.platform-windows {
  background-color: #00a1f1;
}

.platform-android {
  background-color: #3ddc84;
}

.platform-ios {
  background-color: #007aff;
}

.platform-other {
  background-color: #6c757d;
}

/* Style for links with no text decoration */
.no-text-decoration {
    text-decoration: none;
}

.password-container {
  position: relative; /* necessario per posizionare l'icona a destra */
  width: 100%;
}

.password-container input {
  width: 100%;
  padding-right: 40px;
}

.toggle-password-right {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgba(74, 74, 74, 0.4);
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.toggle-password-right:hover {
  color: #3273dc; /* blu Bulma */
  transform: translateY(-50%) scale(0.9);
}