/* Layout-specific styles for Diata */

/* Button styles */
.btn-th-primary {
  background: linear-gradient(135deg, #714B67 0%, #4A90A4 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-th-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(113, 75, 103, 0.3);
}

/* Admin sidebar styles */
.admin-sidebar {
  background-color: #2C3E50;
  color: #ffffff;
}

.admin-sidebar a {
  color: #e5e7eb;
  text-decoration: none;
}

.admin-sidebar a:hover {
  color: #ffffff;
  background-color: rgba(55, 65, 81, 0.7);
}

.admin-sidebar .active {
  color: #ffffff;
  background-color: #714B67;
}

.admin-sidebar button {
  color: #e5e7eb;
}

.admin-sidebar button:hover {
  color: #ffffff;
  background-color: rgba(55, 65, 81, 0.7);
}

.submenu a {
  color: #d1d5db;
}

.submenu a:hover {
  color: #ffffff;
}

/* Submenu animation styles */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.submenu.open {
  max-height: 500px;
  transition: max-height 0.3s ease-in;
}

.submenu-item {
  padding-left: 3rem;
}

/* x-spreadsheet custom styles for Diata */
.x-spreadsheet {
  border-radius: 8px;
  border: 1px solid rgb(229 231 235);
  overflow: hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.x-spreadsheet-sheet {
  background-color: white;
}

/* Custom cell highlighting for errors */
.cell-error-unique {
  background-color: #fee2e2 !important;
  border: 2px solid #f87171 !important;
  color: #991b1b !important;
  font-weight: 500 !important;
}

.cell-error-check {
  background-color: #fed7aa !important;
  border: 2px solid #fb923c !important;
  color: #9a3412 !important;
  font-weight: 500 !important;
}

.cell-valid {
  background-color: #dcfce7 !important;
  border: 2px solid #4ade80 !important;
  color: #15803d !important;
  font-weight: 500 !important;
}

/* Header styling */
.x-spreadsheet-table th {
  background-color: #f3f4f6 !important;
  color: #374151 !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  font-size: 12px !important;
}
