/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* LOGIN */
.login-body {
  background: linear-gradient(135deg, #0d1b2a, #1e3a8a);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 420px;
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo .logo-img {
  width: 80px;
  margin-bottom: 0.5rem;
}

.login-logo h2 {
  font-size: 1.8rem;
  color: #0d1b2a;
  font-weight: 600;
}

.login-logo p {
  color: #666;
  font-size: 0.95rem;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

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

/* LAYOUT GERAL */
.sidebar {
  width: 260px;
  background: #0d1b2a;
  color: white;
  position: fixed;
  height: 100%;
  padding: 1.5rem 0;
  box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}

.sidebar-header {
  text-align: center;
  margin-bottom: 2rem;
}

.sidebar-logo {
  width: 60px;
  margin: 0 auto 0.5rem;
}

.sidebar h3 {
  color: #1e90ff;
  font-weight: 600;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.8rem 1.5rem;
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(30, 144, 255, 0.1);
  color: white;
  border-left: 3px solid #1e90ff;
}

.main-content {
  margin-left: 260px;
  padding: 2rem;
}

.main-content header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.main-content header h1 {
  color: #0d1b2a;
  font-weight: 600;
}

.user {
  background: #e0f7ff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  color: #0d3b66;
}

/* CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card.primary .stat-icon {
  background: #1e90ff;
}

.stat-card.success .stat-icon {
  background: #28a745;
}

.stat-card.warning .stat-icon {
  background: #ffc107;
}

.stat-card.info .stat-icon {
  background: #17a2b8;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.stat-content h3 {
  font-size: 1.8rem;
  color: #333;
  margin: 0;
}

.stat-content p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.panel {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.panel h2 {
  color: #0d1b2a;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.panel ul {
  list-style: none;
}

.panel li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.panel li:last-child {
  border-bottom: none;
}

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge.success {
  background: #d4edda;
  color: #155724;
}

.badge.warning {
  background: #fff3cd;
  color: #856404;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table th, table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

table th {
  background-color: #f8f9fa;
  color: #495057;
  font-weight: 600;
}

/* BOTÕES */
.btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background: #1e90ff;
  color: white;
}

.btn-primary:hover {
  background: #1a7ed1;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid #1e90ff;
  color: #1e90ff;
}

.btn-outline:hover {
  background: rgba(30, 144, 255, 0.1);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
}

.button-group {
  display: flex;
  gap: 0.5rem;
}

/* FORMULÁRIO */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e90ff;
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.2);
}

/* ABAS */
.tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.tab {
  padding: 0.8rem 1.5rem;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 1rem;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tab.active {
  color: #1e90ff;
  font-weight: 600;
  border-bottom: 3px solid #1e90ff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* FOOTER */
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

/* SEARCH */
.search-box {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-box input {
  flex: 1;
  padding: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;

    /* DROPDOWN MENU */
.dropdown {
  position: relative;
  width: 100%;
}

.dropdown-btn {
  background: none;
  border: none;
  color: #ccc;
  text-align: left;
  width: 100%;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.dropdown-btn:hover {
  background: rgba(30, 144, 255, 0.1);
  color: white;
}

.dropdown.active .dropdown-btn {
  background: rgba(30, 144, 255, 0.1);
  color: white;
  border-left: 3px solid #1e90ff;
}

.dropdown-content {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 12px 12px 0;
  overflow: hidden;
  margin-left: 3px;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.7rem 1.5rem 0.7rem 3rem;
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding-left: 3.5rem;
}

.dropdown.active .dropdown-content {
  display: block;
}

.dropdown i.chevron {
  margin-left: auto;
  transition: transform 0.3s;
}

.dropdown.active .chevron {
  transform: rotate(180deg);
}

/* QUICK DROPDOWN (no painel) */
.quick-dropdown {
  position: static;
  width: 100%;
}

.quick-dropdown .dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-radius: 8px;
  z-index: 10;
  min-width: 220px;
}

.quick-dropdown .dropdown-content a {
  color: #333;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #eee;
}

.quick-dropdown .dropdown-content a:last-child {
  border-bottom: none;
}

.quick-dropdown .dropdown-content a:hover {
  background: #f8f9fa;
}

.quick-dropdown.active .btn {
  background: #1e90ff;
  color: white;
  .sidebar a.active {
  background-color: #1e40af;
  color: white;
  font-weight: 600;
}
.sidebar a.active i {
  color: white;
}