* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

:root {
  --bg: #0f172a;
  --side: #020617;
  --card: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #38bdf8;
  --danger: #ef4444;
  --border: rgba(255, 255, 255, 0.12);
}

body.light {
  --bg: #f1f5f9;
  --side: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0284c7;
  --danger: #dc2626;
  --border: rgba(15, 23, 42, 0.12);
}

body {
  background: var(--bg);
  color: var(--text);
  transition: 0.3s;
}

.app {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 280px;
  background: var(--side);
  border-right: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.logo {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.logo span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  border-radius: 16px;
  font-weight: 900;
  color: white;
}

.logo h1 {
  font-size: 18px;
}

.logo p,
.header p,
.modal-box p {
  color: var(--muted);
  font-size: 14px;
}

.menu,
.theme-btn,
.panel-top button,
.modal-actions button,
.card button {
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s;
}

.menu,
.theme-btn {
  background: transparent;
  color: var(--text);
  text-align: left;
}

.menu:hover,
.menu.active,
.theme-btn:hover {
  background: var(--card);
  color: var(--primary);
}

.theme-btn {
  margin-top: auto;
  border: 1px solid var(--border);
}

.main {
  flex: 1;
  padding: 32px;
}

.header {
  background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(99,102,241,.18));
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: 24px;
  margin-bottom: 24px;
}

.header h2 {
  font-size: 30px;
  margin-bottom: 6px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.panel-top h3 {
  font-size: 22px;
}

.panel-top button,
.modal-actions button {
  background: var(--primary);
  color: white;
}

.form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 14px;
  padding: 14px;
  outline: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  animation: subir 0.25s ease;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.card p {
  color: var(--muted);
  margin-bottom: 8px;
}

.card button {
  margin-top: 12px;
  background: var(--danger);
  color: white;
}

.status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.livre {
  background: rgba(34,197,94,.18);
  color: #22c55e;
}

.emuso {
  background: rgba(245,158,11,.18);
  color: #f59e0b;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
}

.modal-box {
  width: 380px;
  background: var(--side);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.modal-box h2 {
  margin-bottom: 8px;
}

.modal-box input {
  margin: 18px 0;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions button {
  flex: 1;
}

.modal-actions .cancel {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.oculto {
  display: none !important;
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 850px) {
  .app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .main {
    padding: 18px;
  }
.pesquisa{
  width:100%;
  margin-bottom:20px;
}
#modalFerramenta select{
  width:100%;
  padding:14px;
  border:none;
  border-radius:12px;
  margin:20px 0;
}
}
