/* Estilos gerais */
:root {
  --primary-color: #435887;
  --secondary-color: #2c3e50;
  --success-color: #2ecc71;
  --danger-color: #e74c3c;
  --warning-color: #f39c12;
  --light-color: #ecf0f1;
  --dark-color: #435887;
  --sidebar-width: 250px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  overflow-x: hidden;
}

/* Estilos do layout com sidebar */
.wrapper {
  display: flex;
  width: 100%;
  align-items: stretch;
}

#sidebar {
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background: #435887;
  color: #fff;
  transition: all 0.3s;
  height: 100vh;
  position: fixed;
  z-index: 999;
}

#sidebar.active {
  margin-left: calc(-1 * var(--sidebar-width));
}

#sidebar .sidebar-header {
  padding: 15px;
  background: #435887;
  display: flex;
  justify-content: center;
  align-items: center;
}

#sidebar .sidebar-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0;
}

#sidebar ul.components {
  padding: 20px 0;
  border-bottom: 1px solid #47748b;
}

#sidebar ul p {
  color: #fff;
  padding: 10px;
}

#sidebar ul li a {
  padding: 10px 20px;
  font-size: 1.1em;
  display: block;
  color: #fff;
  text-decoration: none;
}

#sidebar ul li a:hover {
  color: var(--dark-color);
  background: #fff;
}

#sidebar ul li.active > a {
  color: #fff;
  background: #374873;
}

#content {
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  transition: all 0.3s;
  position: absolute;
  top: 0;
  right: 0;
  padding: 20px;
}

#content.active {
  width: 100%;
}

/* Estilos do cabeçalho */
.navbar-brand {
  font-weight: bold;
}

@media (max-width: 768px) {
  #sidebar {
    margin-left: calc(-1 * var(--sidebar-width));
  }
  #sidebar.active {
    margin-left: 0;
  }
  #content {
    width: 100%;
  }
  #content.active {
    width: calc(100% - var(--sidebar-width));
  }
  #sidebarCollapse span {
    display: none;
  }
}

/* Estilos do login */
#login-container {
  margin-top: 100px;
}

#login-container .card {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#login-container .card-body {
  padding: 30px;
}

/* Estilos para tags */
.tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-wincashbr {
  background-color: #3498db;
  color: white;
}

.tag-123bonus {
  background-color: #2ecc71;
  color: white;
}

.tag-backup {
  background-color: #f39c12;
  color: white;
}

/* Estilos para tabelas */
.table-hover tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

/* Estilos para botões de ação */
.btn-action {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-right: 5px;
}

/* Estilos para campos de senha */
.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .card {
    margin-bottom: 20px;
  }

  .table-responsive {
    font-size: 0.9rem;
  }
}

/* Modo escuro (opcional) */
.dark-mode {
  background-color: #1a1a1a;
  color: #f8f9fa;
}

.dark-mode .card {
  background-color: #2c3e50;
  color: #ecf0f1;
}

.dark-mode .form-control {
  background-color: #34495e;
  border-color: #2c3e50;
  color: #ecf0f1;
}

.dark-mode .table {
  color: #ecf0f1;
}

.dark-mode .table-hover tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.2);
}

/* Estilos para botões primários */
.btn-primary {
  background-color: #435887;
  border-color: #435887;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #374873 !important;
  border-color: #374873 !important;
}
