/**
 * ==========================================================================
 * UnitedQKeyEngine - buttons.css
 *
 * @fileOverview
 *   Button primitives for the Cases-style vendorless QKeyDB admin shell.
 *
 * @author
 *   Farrel Wilson – Contact@QueryKey.com
 *
 * @maintainer
 *   QKeyDB Admin Surfaces
 *
 * @usage
 *   Load on governed admin pages before the admin skin layer.
 *
 * @dependencies
 *   ../variables.css
 *
 * @notes
 *   - LastUpdatedUTC: 2026-03-14T00:00:00Z
 *
 * @license
 *   QueryKey is a trademark of Farrel Wilson. All rights reserved.
 * ==========================================================================
 */

.login-btn,
.create-db-btn,
.run-query-btn {
  background: linear-gradient(135deg, #0891b2, #0f766e);
  border: 1px solid rgba(125, 211, 252, .45);
  color: #ecfeff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(8, 145, 178, .26);
}

.login-btn {
  padding: .8rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: all .3s ease;
  text-shadow: none;
  margin-top: 1rem;
}

.login-btn:hover,
.create-db-btn:hover,
.run-query-btn:hover {
  transform: translateY(-2px);
}

.login-btn:hover {
  box-shadow: 0 14px 24px rgba(8, 145, 178, .34);
}

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

.logout-btn {
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(148, 163, 184, .4);
  color: #e2e8f0;
  padding: .3rem .8rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all .3s ease;
}

.logout-btn:hover {
  background: rgba(15, 118, 110, .32);
  color: #ecfeff;
  border-color: rgba(45, 212, 191, .56);
  box-shadow: 0 8px 18px rgba(15, 118, 110, .28);
}

.modal-actions,
.qk-modal-actions,
.schema-actions,
.db-detail-actions,
.db-tabs,
.analytics-controls,
.query-input-row,
.modal-select-group {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.modal-actions,
.qk-modal-actions {
  justify-content: flex-end;
  margin-top: 1rem;
}

.modal-actions button,
.qk-modal-actions button,
.mini-btn,
.qk-panel-actions .mini-btn,
.btn-cancel,
.btn-danger {
  background: rgba(30, 41, 59, .78);
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, .36);
  padding: .55rem .9rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .7rem;
  cursor: pointer;
}

.modal-actions button.primary,
.qk-panel-actions .mini-btn.warn,
.mini-btn.primary,
.btn-danger {
  background: linear-gradient(135deg, #0ea5e9, #0f766e);
  border-color: rgba(125, 211, 252, .5);
  color: #f0fdfa;
  box-shadow: 0 10px 20px rgba(14, 165, 233, .26);
}

.mini-btn.warn {
  background: #f59e0b;
  border-color: #fbbf24;
  color: #1f2937;
  font-weight: 700;
}

.modal-actions button.primary:hover,
.mini-btn:hover,
.btn-cancel:hover,
.btn-danger:hover {
  filter: brightness(1.05);
}

.mini-btn.is-disabled {
  pointer-events: none;
  opacity: .45;
}

.db-list .action-delete {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  background: linear-gradient(135deg,#7f1d1d,#991b1b);
  border: 1px solid #ef4444;
  color: #fee2e2;
  padding: .35rem .6rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: .62rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .12s ease;
  line-height: 1;
}

.db-list .action-delete:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, .32);
}

body[data-theme='light'] .btn {
  background: rgba(15, 23, 42, 0.04);
  color: #16233a;
}

body[data-theme='light'] .btn:hover {
  background: rgba(15, 23, 42, 0.08);
}

body[data-theme='light'] .logout-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #16233a;
}

body[data-theme='light'] .logout-btn:hover {
  background: rgba(249, 115, 22, 0.12);
  color: #16233a;
}
