/* ===== BIT CONNECT - Arquivo Principal CSS ===== */
/* Importa os arquivos modulares */
@import url('components.css');

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

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: #040c2b;
  color: #e9f0ff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout Principal ===== */
.dashboard {
  min-height: 100vh;
  background: #040c2b;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== Cards ===== */
.card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(0,30,255,.25), inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #e9f0ff;
  margin-bottom: 8px;
}

.muted {
  color: #9db0ff;
}

/* ===== Grid System ===== */
.grid {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== Formulários ===== */
.form-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

input, select {
  background: rgba(0,0,0,.22);
  border: 1px solid #273572;
  border-radius: 12px;
  padding: 10px 12px;
  color: #e9f0ff;
  outline: none;
}

input:focus, select:focus {
  border-color: #00d8ff;
  box-shadow: 0 0 0 2px rgba(0,216,255,.15);
}

label {
  font-size: 14px;
  color: #9db0ff;
  font-weight: 600;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  text-decoration: none;
  color: #e9f0ff;
  font-weight: 600;
  transition: transform .18s, background .18s, border-color .18s;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(180deg, #00d8ff 0%, #2b8cff 100%);
  border-color: transparent;
  color: #001630;
  font-weight: 800;
}

.btn-secondary {
  border-color: #2c6bed;
}

.btn-outline {
  background: transparent;
}

.btn-danger {
  background: linear-gradient(180deg,#ff6a88,#ff4d6d);
  border-color: #ff4d6d;
  color: #210007;
  font-weight: 800;
}

/* ===== Tabelas ===== */
.table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0,0,0,.18);
}

.table th, .table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
  vertical-align: middle;
}

.table thead th {
  position: sticky;
  top: 0;
  background: rgba(5,17,90,.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.table tbody tr:hover {
  background: rgba(255,255,255,.06);
}

.mono {
  font-family: 'Courier New', monospace;
}

/* ===== Stats Cards ===== */
.stat {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,30,255,.25), inset 0 1px 0 rgba(255,255,255,.06);
}

.stat-title {
  color: #9db0ff;
  font-size: 14px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #e9f0ff;
  text-shadow: 0 0 22px rgba(0,216,255,.25);
  line-height: 1.05;
}

.stat-unit {
  font-size: 14px;
  color: #9db0ff;
  margin-left: 6px;
}

/* ===== Actions ===== */
.actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ===== Footer ===== */
.footer {
  margin-top: 24px;
  text-align: center;
  color: #9db0ff;
  font-size: 14px;
}

/* ===== Responsivo ===== */
@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
