/* Vale Cooper - Estilo CSS Principal
   Baseado no layout do Firebase Studio
   Data: 29/05/2025
*/

/* Variáveis de cores */
:root {
  --primary-color: #4CAF50;
  --primary-dark: #388E3C;
  --primary-light: #C8E6C9;
  --accent-color: #FFC107;
  --text-primary: #212121;
  --text-secondary: #757575;
  --divider-color: #BDBDBD;
  --background-color: #f5f5f5;
  --card-background: #ffffff;
  --status-active: #4CAF50;
  --status-pending: #FFC107;
  --status-inactive: #F44336;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Reset e estilos gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout principal */
.container {
  display: flex;
  min-height: 100vh;
}

/* Menu lateral */
.sidebar {
  width: 220px;
  background-color: white;
  border-right: 1px solid var(--divider-color);
  position: fixed;
  height: 100%;
  z-index: 100;
  box-shadow: 2px 0 5px var(--shadow-color);
}

.sidebar-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--divider-color);
}

.sidebar-logo {
  max-width: 120px;
  margin-bottom: 10px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
}

.sidebar-menu li {
  padding: 0;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.sidebar-menu a:hover {
  background-color: var(--primary-light);
  text-decoration: none;
}

.sidebar-menu a.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
}

.sidebar-menu i {
  margin-right: 10px;
  font-size: 20px;
}

/* Conteúdo principal */
.main-content {
  flex: 1;
  margin-left: 220px;
  padding: 20px;
}

.page-header {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.page-title i {
  margin-right: 10px;
  font-size: 28px;
}

/* Cards */
.card {
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-color);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--divider-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-color);
  display: flex;
  align-items: center;
}

.card-title i {
  margin-right: 10px;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--divider-color);
  background-color: rgba(0, 0, 0, 0.02);
}

/* Card de boas-vindas (verde) */
.welcome-card {
  background-color: var(--primary-color);
  color: white;
}

.welcome-card .card-title {
  color: white;
}

/* Cards de estatísticas */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  flex: 1;
  min-width: 250px;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.stat-title {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.stat-value {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 5px;
}

.cooper-points {
  color: var(--accent-color);
  font-weight: bold;
}

.stat-status {
  display: flex;
  align-items: center;
}

.stat-status i {
  margin-right: 5px;
}

.status-active {
  color: var(--status-active);
}

.status-pending {
  color: var(--status-pending);
}

.status-inactive {
  color: var(--status-inactive);
}

/* Progresso */
.progress-container {
  margin-top: 10px;
  background-color: #e0e0e0;
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 10px;
}

/* Tabelas */
.table-container {
  overflow-x: auto;
}

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

thead th {
  background-color: #f5f5f5;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid var(--divider-color);
}

tbody tr {
  border-bottom: 1px solid var(--divider-color);
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

tbody td {
  padding: 12px 15px;
}

/* Status badges */
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  min-width: 80px;
}

.badge-active {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--status-active);
}

.badge-pending {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--status-pending);
}

.badge-inactive {
  background-color: rgba(244, 67, 54, 0.1);
  color: var(--status-inactive);
}

/* Filtros */
.filter-container {
  display: flex;
  margin-bottom: 20px;
  background-color: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px var(--shadow-color);
}

.filter-button {
  padding: 8px 15px;
  margin-right: 5px;
  border: none;
  background-color: transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.filter-button:hover {
  background-color: #f5f5f5;
}

.filter-button.active {
  background-color: var(--primary-color);
  color: white;
}

/* Formulários */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--divider-color);
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-control::placeholder {
  color: #bdbdbd;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.form-check-input {
  margin-right: 10px;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: #f5f5f5;
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: #e0e0e0;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Login e Cadastro */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--background-color);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--shadow-color);
  overflow: hidden;
}

.auth-header {
  text-align: center;
  padding: 30px 20px 20px;
}

.auth-logo {
  max-width: 100px;
  margin-bottom: 20px;
}

.auth-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.auth-body {
  padding: 20px 30px 30px;
}

.auth-footer {
  text-align: center;
  padding: 15px;
  border-top: 1px solid var(--divider-color);
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-links {
  text-align: center;
  margin-top: 20px;
}

.auth-links a {
  color: var(--primary-color);
  font-size: 14px;
}

/* Ícones de input */
.input-icon-container {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.input-with-icon {
  padding-left: 40px;
}

/* Responsividade */
@media (max-width: 768px) {
  .sidebar {
    width: 70px;
    overflow: hidden;
  }
  
  .sidebar-menu span {
    display: none;
  }
  
  .sidebar-menu i {
    margin-right: 0;
    font-size: 24px;
  }
  
  .main-content {
    margin-left: 70px;
  }
  
  .stats-container {
    flex-direction: column;
  }
  
  .stat-card {
    width: 100%;
  }
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Utilitários */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.d-flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.w-100 {
  width: 100%;
}

/* Rodapé */
.footer {
  text-align: center;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid var(--divider-color);
  margin-top: 40px;
}
