@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800;900;1000&family=Roboto:wght@300;400;500;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

:root {
  /* ADICIONADO: Variável para a cor principal do tema */
  --cor-principal: rgb(73, 57, 113);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

nav {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
}

nav ul,
nav ul li {
  outline: 0;
}

nav ul li a {
  text-decoration: none;
}

body {
  font-family: "Nunito", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #373636 0%, #807f7f 100%);
  margin: 0;
  padding: 10px;
}

/* MAIN CONTAINER */
main {
  display: grid;
  grid-template-columns: 250px 1fr;
  width: 100%;
  
  background: rgb(254, 254, 254);
  box-shadow: 0 0.5px 0 1px rgba(255, 255, 255, 0.23) inset,
    0 1px 0 0 rgba(255, 255, 255, 0.66) inset, 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 15px;
  z-index: 10;
  min-height: 90vh;
}

/* SIDEBAR MENU */
.main-menu {
  overflow: hidden;
  background: var(--cor-principal);
  padding-top: 10px;
  border-radius: 15px 0 0 15px;
  font-family: "Roboto", sans-serif;
}

.main-menu h1 {
  display: block;
  font-size: 1.3rem;
  font-weight: 500;
  text-align: center;
  margin: 20px 0 30px;
  color: #fff;
  font-family: "Nunito", sans-serif;
}

.logo {
  display: none;
}

.nav-item {
  position: relative;
  display: block;
}

.nav-item a {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  font-size: 0.9rem;
  padding: 15px 20px;
  margin-left: 10px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  transition: all 0.3s ease;
}

.nav-item a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-item b:nth-child(1) {
  position: absolute;
  top: -15px;
  height: 15px;
  width: 100%;
  background: #fff;
  display: none;
}

.nav-item b:nth-child(1)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-bottom-right-radius: 20px;
  background: var(--cor-principal);
}

.nav-item b:nth-child(2) {
  position: absolute;
  bottom: -15px;
  height: 15px;
  width: 100%;
  background: #fff;
  display: none;
}

.nav-item b:nth-child(2)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-top-right-radius: 20px;
  background: var(--cor-principal);
}

.nav-item.active b:nth-child(1),
.nav-item.active b:nth-child(2) {
  display: block;
}

.nav-item.active a {
  text-decoration: none;
  color: #000;
  background: rgb(254, 254, 254);
}

.nav-icon {
  width: 20px;
  height: 20px;
  font-size: 16px;
  text-align: center;
  margin-right: 15px;
}

.nav-text {
  display: block;
  font-weight: 500;
}

/* CONTENT AREA */
.content {
  background: #f6f7fb;
  margin: 15px;
  padding: 30px;
  border-radius: 15px;
  overflow-y: auto;
}

/* HEADER */
.content-header {
  margin-bottom: 30px;
}

.content-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.content-header p {
  color: #666;
  font-size: 1rem;
}

/* SEARCH AND FILTERS */
.search-section {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
}

.search-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  font-family: "Nunito", sans-serif;
}

.search-input:focus {
  border-color: var(--cor-principal);
  box-shadow: 0 0 0 3px rgba(73, 57, 113, 0.1);
}

.alphabet-filter {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alphabet-filter a {
  display: inline-block;
  padding: 8px 12px;
  background: #f8f9fa;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #e1e5e9;
}

.alphabet-filter a:hover {
  background: var(--cor-principal);
  color: white;
  transform: translateY(-2px);
}

.clear-filter {
  background: #ff6b6b !important;
  color: white !important;
  border-color: #ff6b6b !important;
}

.clear-filter:hover {
  background: #ff5252 !important;
}

/* TABLE CONTAINER */
.table-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.table thead {
  background: var(--cor-principal);
  color: white;
}

.table thead th {
  padding: 20px 15px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr {
  border-bottom: 1px solid #e1e5e9;
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background: #f8f9fa;
}

.table tbody td {
  padding: 18px 15px;
  color: #333;
  font-size: 0.95rem;
}

/* ACTION BUTTONS */
.btn {
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 35px;
  text-align: center;
}

.btn i {
  font-size: 14px;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-state i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

.empty-state p {
  font-size: 1rem;
  color: #666;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
    margin: 10px;
  }
  
  .main-menu {
    border-radius: 15px 15px 0 0;
    padding: 15px 0;
  }
  
  .main-menu h1 {
    font-size: 1.1rem;
    margin: 10px 0 20px;
  }
  
  .nav-item a {
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  
  .nav-icon {
    margin-right: 12px;
  }
  
  .content {
    margin: 0;
    border-radius: 0 0 15px 15px;
    padding: 20px;
  }
  
  .content-header h1 {
    font-size: 1.5rem;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  .alphabet-filter {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .table thead th,
  .table tbody td {
    padding: 12px 8px;
    font-size: 0.8rem;
  }
  
  .btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    margin-bottom: 5px;
  }
  
  .search-input {
    padding: 12px 15px;
    font-size: 14px;
  }
}

/* FOOTER */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #333;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
  z-index: 1000;
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 1rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.d-none {
  display: none;
}

