/* Estilos gerais */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding: 1.5rem;
}

/* Loader */
.loader {
  width: 3rem;
  height: 3rem;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3273dc;
  border-radius: 50%;
  margin: 3rem auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Cards no Dashboard */
.dashboard-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dashboard-card .card-content {
  flex-grow: 1;
}

.dashboard-value {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.dashboard-label {
  font-size: 1rem;
  opacity: 0.8;
}

/* Tabelas */
.table-container {
  overflow-x: auto;
}

.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
}

.status-disponivel {
  background-color: #48c774;
}

.status-em_uso {
  background-color: #ff9800;
}

.status-inativo {
  background-color: #dbdbdb;
}

.status-em_servico {
  background-color: #3273dc;
}

/* Formulários */
.form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Operações */
.operation-box {
  border-left: 4px solid #3273dc;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.operation-box.check-in {
  border-color: #48c774;
}

.operation-box.troca {
  border-color: #ffdd57;
}

.operation-box.checkout {
  border-color: #ff3860;
}

/* Responsividade */
@media screen and (max-width: 768px) {
  .columns {
    display: block;
  }
  
  .column {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .dashboard-value {
    font-size: 2rem;
  }
}