.settings-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.settings-layout {
  display: flex;
  gap: 2rem;
  min-height: 70vh;
}

/* Sidebar */
.settings-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-left: 4px solid var(--sedona-orange);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 1rem;
  font-weight: 600;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--sedona-blue);
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 0.25rem;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
}

.sidebar-menu-item:hover {
  background: var(--sedona-orange-subtle);
  color: var(--sedona-orange-dark);
  transform: translateX(5px);
  text-decoration: none;
}

.sidebar-menu-item.active {
  background: linear-gradient(135deg, var(--sedona-orange) 0%, var(--sedona-orange-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(238, 162, 45, 0.3);
}

.sidebar-menu-item.active:hover {
  transform: none;
}

/* Content area */
.settings-content {
  flex: 1;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 2rem;
}

/* Page header */
.page-header-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--sedona-orange);
}

/* License cards */
.info-card {
  background: #f8f9fa;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e9ecef;
}

.info-card-header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  margin-bottom: 1rem;
  font-weight: 600;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: #495057;
}

.info-value {
  color: var(--sedona-blue);
  font-weight: 600;
}

/* Status badges */
.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.license-badge.active {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: white;
}

.license-badge.grace {
  background: linear-gradient(135deg, var(--sedona-orange) 0%, var(--sedona-orange-dark) 100%);
  color: white;
}

.license-badge.expired {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.license-badge.none {
  background: #6c757d;
  color: white;
}

/* Action buttons */
.license-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-license {
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-license:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-buy {
  background: linear-gradient(135deg, var(--sedona-blue) 0%, var(--sedona-blue-light) 100%);
  color: white;
}

.btn-activate {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: white;
}

.btn-extend {
  background: linear-gradient(135deg, var(--sedona-orange) 0%, var(--sedona-orange-dark) 100%);
  color: white;
}

.btn-deactivate {
  background: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
}

.btn-deactivate:hover {
  background: #dc3545;
  color: white;
}

/* Loading */
.license-loading {
  text-align: center;
  padding: 3rem;
}

.license-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  color: var(--sedona-orange);
}

/* Quill editor */
.ql-editor {
  min-height: 300px;
  font-size: 1rem;
  line-height: 1.6;
}

.ql-toolbar.ql-snow {
  border-radius: 0.5rem 0.5rem 0 0;
  border-color: #dee2e6;
}

.ql-container.ql-snow {
  border-radius: 0 0 0.5rem 0.5rem;
  border-color: #dee2e6;
}

.gdpr-save-bar {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .settings-layout {
    flex-direction: column;
  }
  .settings-sidebar {
    width: 100%;
    position: static;
  }
}
