/* === SH SERVIS CRM – Dark Theme === */

/* === Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0f1115;
  color: #e8e8e8;
  line-height: 1.6;
}

/* === Layout === */
#app {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
}

/* === Card === */
.card {
  background: #1a1d23;
  border: 1px solid #2a2e36;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
}

.card h1 {
  margin-bottom: 1rem;
  color: #00e676;
  text-align: center;
  font-weight: 600;
}

/* === Inputs === */
input, select {
  width: 100%;
  background: #111318;
  border: 1px solid #333840;
  color: #e8e8e8;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: #00e676;
  box-shadow: 0 0 0 2px rgba(0,230,118,0.2);
}

/* === Buttons === */
button {
  font-size: 15px;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  border: none;
  transition: background 0.25s ease, transform 0.1s ease;
}

.btn-primary {
  background: #00e676;
  color: #111;
}

.btn-primary:hover {
  background: #00c563;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid #444;
  color: #ccc;
}

.btn-ghost:hover {
  border-color: #00e676;
  color: #00e676;
}

/* === Muted text === */
.muted {
  color: #777;
  font-size: 14px;
}

/* === Admin Console === */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a2e36;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.admin-header h1 {
  color: #00e676;
  font-size: 22px;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* === Tabs === */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.tab {
  background: #1e2128;
  border: 1px solid #333840;
  color: #ccc;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
}

.tab.active {
  background: #00e676;
  color: #111;
}

.tab:hover {
  background: #2a2e36;
}

/* === Tables === */
.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 0.75rem;
  border-bottom: 1px solid #2a2e36;
  text-align: left;
}

.table th {
  color: #00e676;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
}

.table tr:hover td {
  background: #191c21;
}

/* === Panel actions === */
.panel-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* === Checkbox === */
input[type="checkbox"] {
  width: auto;
  accent-color: #00e676;
}

/* === Table buttons === */
.table button {
  background: transparent;
  color: #00e676;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.table button:hover {
  color: #00c563;
}

/* === Scrollbars === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00e676;
}

/* === Responsive === */
@media (max-width: 600px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .tabs {
    flex-wrap: wrap;
  }
}