/* ==============================================================================
   DESIGN SYSTEM - ACSISTENTE LICENSE MANAGER
   ============================================================================== */

:root {
  --bg-main: #060b18;
  --bg-card: rgba(10, 18, 41, 0.6);
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-focus: rgba(2, 132, 199, 0.4);
  
  /* Cores Temáticas */
  --primary: #0284c7;       /* Azul Oceano (combinando com o app) */
  --primary-hover: #38bdf8;  /* Azul Claro */
  --primary-glow: rgba(2, 132, 199, 0.25);
  
  --blue: #0284c7;          /* Azul Informativo */
  --blue-glow: rgba(2, 132, 199, 0.15);
  
  --green: #10b981;         /* Verde Sucesso */
  --green-glow: rgba(16, 185, 129, 0.15);
  
  --red: #f43f5e;           /* Vermelho Perigo */
  --red-glow: rgba(244, 63, 94, 0.15);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-disabled: #6b7280;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* Reset Geral */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, rgba(10, 42, 107, 0.35) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(2, 132, 199, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Helpers */
.hidden { display: none !important; }
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Estilo Glassmorphism (Cards) */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

/* ==============================================================================
   TELA DE LOGIN
   ============================================================================== */
#login-container {
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: radial-gradient(circle at center, #131224 0%, var(--bg-main) 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 35px;
  text-align: center;
}

.logo-area {
  position: relative;
  margin-bottom: 35px;
}

.logo-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--primary);
  filter: blur(40px);
  border-radius: 50%;
  top: -10px;
  left: calc(50% - 40px);
  z-index: -1;
  opacity: 0.6;
}

.logo-area h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

.logo-area p {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* Formulários & Inputs */
.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  background: rgba(0, 0, 0, 0.5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Botões */
.btn-primary {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b2df3 100%);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
  background: linear-gradient(135deg, var(--primary-hover) 0%, #9a47f5 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.error-text {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 15px;
  text-align: center;
}

/* ==============================================================================
   PAINEL PRINCIPAL & NAVBAR
   ============================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
}

.nav-logo h2 {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.badge {
  background: rgba(168, 85, 247, 0.15);
  color: var(--primary);
  border: 1px solid rgba(168, 85, 247, 0.3);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.dashboard-content {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Metrics Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
}

.metric-info h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 5px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-icon {
  width: 50px;
  height: 50px;
  font-size: 1.8rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 15px rgba(255,255,255,0.05);
}

.metric-icon.blue { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); }
.metric-icon.green { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); }
.metric-icon.red { background: rgba(244, 63, 94, 0.1); border: 1px solid rgba(244, 63, 94, 0.2); }

/* Layout Grid (Duas Colunas) */
.layout-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}

@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.form-section, .table-section {
  padding: 30px;
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* Evita que os cards vazem com conteúdo interno */
}

.form-section h3, .table-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

/* ==============================================================================
   TABELA DE LICENÇAS
   ============================================================================= */
.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

#search-input {
  padding: 12px 18px 12px 45px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
  max-width: 380px;
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 18px;
}

#search-input:focus {
  max-width: 410px;
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
  background-color: rgba(0, 0, 0, 0.4);
}

#creator-filter-container {
  min-width: 220px;
}

#creator-filter {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  width: 100%;
  cursor: pointer;
  outline: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

#creator-filter:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
  background-color: rgba(0, 0, 0, 0.4);
}

.table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

th, td {
  padding: 10px 8px;
}

th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-glass);
}

tbody tr {
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges de Status na Tabela */
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-badge.suspended {
  background: rgba(244, 63, 94, 0.12);
  color: var(--red);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.status-badge.expired {
  background: rgba(107, 114, 128, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(107, 114, 128, 0.25);
}

/* Chave de Licença Style */
.key-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.key-code {
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-hover);
  background: rgba(168, 85, 247, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.btn-copy {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  opacity: 0.6;
  transition: var(--transition);
}

.btn-copy:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Ações da Tabela */
.actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-action {
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-action.reset {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.2);
}
.btn-action.reset:hover {
  background: var(--blue);
  color: #fff;
}

.btn-action.suspend {
  background: rgba(244, 63, 94, 0.1);
  color: var(--red);
  border-color: rgba(244, 63, 94, 0.2);
}
.btn-action.suspend:hover {
  background: var(--red);
  color: #fff;
}

.btn-action.activate {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.2);
}
.btn-action.activate:hover {
  background: var(--green);
  color: #fff;
}

.btn-action.delete {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-color: var(--border-glass);
}
.btn-action.delete:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-action.renew {
  background: rgba(168, 85, 247, 0.1);
  color: var(--primary-hover);
  border-color: rgba(168, 85, 247, 0.2);
}
.btn-action.renew:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==============================================================================
   TOAST NOTIFICATION & LOADINGS
   ============================================================================= */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 15px 25px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.loading-td {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
  font-style: italic;
}

/* Fila de Solicitações */
.requests-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.request-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.request-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.request-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.request-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

.request-details {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.request-device {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--primary-hover);
  background: rgba(168, 85, 247, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
}

.request-actions {
  display: flex;
  gap: 8px;
}

.btn-request {
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-request.approve {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.2);
}

.btn-request.approve:hover {
  background: var(--green);
  color: #fff;
}

.btn-request.reject {
  background: rgba(244, 63, 94, 0.1);
  color: var(--red);
  border-color: rgba(244, 63, 94, 0.2);
}

.btn-request.reject:hover {
  background: var(--red);
  color: #fff;
}

/* ==============================================================================
   BOTÕES PERSONALIZADOS DA NAVBAR & EMAIL DO USUÁRIO
   ============================================================================== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-email {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 10px;
  align-self: center;
}

.btn-backup-style {
  padding: 10px 18px;
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: var(--transition);
}
.btn-backup-style:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px);
}

.btn-restore-style {
  padding: 10px 18px;
  background: var(--green) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: var(--transition);
}
.btn-restore-style:hover {
  background: #34d399 !important;
  transform: translateY(-1px);
}

.btn-logout-style {
  padding: 10px 18px;
  background: var(--red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
  transition: var(--transition);
}
.btn-logout-style:hover {
  background: #fb7185 !important;
  transform: translateY(-1px);
}

/* Barra de Progresso de Validade */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 140px;
}

.progress-bar-bg {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-bar-fill.active-green {
  background: var(--green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.progress-bar-fill.warning-yellow {
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.progress-bar-fill.expired-red {
  background: var(--red);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.3);
}

.progress-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 500;
}

.progress-days-text {
  font-weight: 600;
}

.progress-days-text.active-green {
  color: var(--green);
}

.progress-days-text.warning-yellow {
  color: var(--yellow);
}

.progress-days-text.expired-red {
  color: var(--red);
}

.progress-date-subtext {
  color: var(--text-muted);
  font-size: 0.72rem;
}

/* Barra de Abas Mobile */
.mobile-tabs {
  display: none;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 66px; /* Fica logo abaixo da navbar fixa */
  z-index: 99;
  padding: 8px 12px;
  gap: 8px;
}

.mobile-tab-btn {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 10px 5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.mobile-tab-btn:hover {
  color: #fff;
}

.mobile-tab-btn.active {
  background: rgba(168, 85, 247, 0.15) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
  box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.05);
}

/* Helper Classes para Responsividade */
.mobile-only {
  display: none !important;
}

.desktop-only {
  display: flex !important;
}

/* ==============================================================================
   RESPONSIVIDADE MOBILE
   ============================================================================== */
@media (max-width: 768px) {
  .mobile-only {
    display: block !important;
  }

  .mobile-tabs.mobile-only {
    display: flex !important;
  }

  .mobile-hidden {
    display: none !important;
  }
  
  .mobile-actions-container.mobile-only {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .desktop-only {
    display: none !important;
  }

  .navbar {
    padding: 12px 15px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo {
    justify-content: flex-start;
    width: 100%;
  }

  .dashboard-content {
    margin: 15px auto;
    padding: 0 12px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-section, .table-section {
    padding: 20px 15px;
  }

  .table-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  #search-input {
    max-width: 100%;
  }

  #creator-filter-container {
    width: 100%;
  }

  /* --- TRANSFORMAÇÃO DA TABELA EM CARTÕES (MOBILE) --- */
  
  table {
    min-width: 0 !important; /* Desativa a rolagem horizontal da tabela */
  }

  #licenses-table thead {
    display: none; /* Esconde cabeçalho da tabela */
  }

  #licenses-table, 
  #licenses-table tbody, 
  #licenses-table tr, 
  #licenses-table td {
    display: block;
    width: 100%;
  }

  #licenses-table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    padding: 15px 12px;
  }

  #licenses-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  #licenses-table td {
    padding: 8px 0;
    border: none;
    text-align: left;
  }

  /* Célula de Cliente */
  #licenses-table td:nth-of-type(1) {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    margin-bottom: 6px;
  }

  /* Célula de Chave */
  #licenses-table td:nth-of-type(2) {
    margin-bottom: 6px;
  }

  /* Célula de Status */
  #licenses-table td:nth-of-type(3) {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #licenses-table td:nth-of-type(3)::before {
    content: "Status";
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
  }

  /* Célula de Aparelho */
  #licenses-table td:nth-of-type(4) {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #licenses-table td:nth-of-type(4)::before {
    content: "Aparelho";
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
  }

  /* Célula de Expiração */
  #licenses-table td:nth-of-type(5) {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  #licenses-table td:nth-of-type(5)::before {
    content: "Validade";
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
  }
  #licenses-table td:nth-of-type(5) > div {
    text-align: right;
  }

  /* Célula de Ações */
  #licenses-table td:nth-of-type(6) {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 12px;
    padding-top: 15px;
  }

  .actions-cell {
    flex-wrap: wrap;
    gap: 8px;
  }

  .btn-action {
    padding: 8px 12px;
    font-size: 0.78rem;
    flex: 1 1 calc(50% - 4px); /* Divide em 2 botões por linha */
    text-align: center;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
    max-width: 95%;
  }

  .nav-logo img {
    width: 36px !important;
    height: 36px !important;
  }

  .nav-logo h2 {
    font-size: 1.1rem;
  }

  .nav-logo .badge {
    font-size: 0.65rem;
    padding: 1px 6px;
  }

  .logo-area h1 {
    font-size: 1.8rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

