@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 24px 28px 64px;
  background: #f1f5f9;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.board {
  display: flex;
  gap: 20px;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  background: transparent;
}

.column h3 {
  flex-shrink: 0;
  margin-top: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
}

.grid {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 4px;
  align-content: start;
  background: inherit;
}

.card {
  padding: 14px;
  border-radius: 14px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding-bottom: 40px;
  border: 1px solid #e8edf3;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.15s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.09);
}

.number {
  font-weight: 600;
}

button, select {
  margin-left: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  background: #6366f1;
  color: white;
  cursor: pointer;
  font-size: 12px;
}

.btn-wa {
  background: #25D366 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}

select {
  background: #334155;
}

/* Modal */

#formOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#form {
  background: white;
  padding: 28px;
  border-radius: 16px;
  width: 420px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  animation: fadeIn 0.25s ease;
}

#form h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  font-size: 12px;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  transition: 0.2s;
}

.field input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}

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

.actions button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.primary {
  background: #6366f1;
  color: white;
}

.primary:hover {
  background: #4f46e5;
}

button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.secondary {
  background: #e2e8f0;
  color: #1e293b;
}

.secondary:hover {
  background: #cbd5f5;
}

@keyframes fadeIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

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

.topBtn {
  padding: 6px 10px;
  font-size: 12px;
  background: #334155;
  border-radius: 6px;
  color: white;
}

#userInfo {
  font-size: 12px;
  color: #64748b;
  background: #eef2ff;
  padding: 4px 10px;
  border-radius: 20px;
}

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

#authBtn {
  padding: 5px 10px;
  font-size: 12px;
  background: #334155;
  border-radius: 6px;
}

#authBtn:hover {
  background: #1e293b;
}

.log-head {
  font-size: 11px;
  color: #64748b;
}

.log-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  background: #f8fafc;
  transition: 0.15s;
}

.log-input:focus {
  outline: none;
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.15);
}

.log-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: #6366f1;
  color: white;
  font-size: 12px;
  cursor: pointer;
}

.log-btn.danger {
  background: #ef4444;
}

select.log-input {
  background: #334155;
  color: white;
}

select.log-input option {
  background: #334155;
  color: white;
}

#logsBody > div:hover > div {
  background: #f1f5f9;
}


.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modalForm {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}