/* Utilidades de acessibilidade */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Cores principais - Paleta Marrom AVM */
  --primary-color: #5F3023;  /* Marrom principal da logo */
  --primary-light: #7A4A3A;  /* Marrom mais claro */
  --primary-dark: #4A251A;   /* Marrom mais escuro */
  --secondary-color: #8B5A4A; /* Marrom secundário */
  --accent-color: #D4B5A7;   /* Bege/marrom claro para acentos */
  --success-color: #4CAF50;
  --warning-color: #FF9800;
  --info-color: #2196F3;
  --error-color: #F44336;
  
  /* Cores de fundo */
  --bg-primary: #FAF7F5;    /* Fundo bege muito claro harmonioso com marrom */
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #F5F2F0;
  
  /* Cores de texto */
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-light: #adb5bd;
  --text-white: #ffffff;
  
  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(95, 48, 35, 0.1);
  --shadow-md: 0 4px 6px rgba(95, 48, 35, 0.1);
  --shadow-lg: 0 10px 25px rgba(95, 48, 35, 0.15);
  
  /* Bordas */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  /* Transições */
  --transition: all 0.3s ease;
}

/* ===== ESTILOS GLOBAIS ===== */
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-size: 14px;
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 70px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 70px;
  width: auto;
  border-radius:3px;
}

.logo-text {
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-white);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--text-white);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  font-size: 14px;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  color: var(--text-white);
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-item.active {
  background: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary-dark);
  color: var(--text-white);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--text-white);
  border-radius: 2px;
}

.nav-item .icon {
  font-size: 1.1em;
  min-width: 20px;
}

.logout-btn {
  background: #c82333 !important;
  margin-left: 10px;
  border-color: #c82333 !important;
}

.logout-btn:hover {
  background: #a01e2a !important;
  border-color: #a01e2a !important;
  color: var(--text-white) !important;
}

/* User Info */
.user-info {
  display: flex;
  align-items: center;
}

.user-welcome {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
  font-size: 0.9rem;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
}

/* ===== MAIN CONTENT ===== */
main {
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 20px;
}

h1, h2, h3 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 700;
}

h1 {
  font-size: 2.2rem;
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: 10px;
  margin-bottom: 30px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 25px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-header {
  border-bottom: 2px solid var(--bg-primary);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.card-title {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
}

/* ===== FORMS ===== */
.form-container {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #ced4da;
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: var(--transition);
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e6091;
  box-shadow: 0 0 0 3px rgba(30, 96, 145, 0.15);
  background: #ffffff;
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
  background: #e9ecef;
  border-color: #dee2e6;
  color: #6c757d;
  cursor: not-allowed;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  line-height: 1.4;
}

.btn:focus {
  outline: 3px solid rgba(52, 152, 219, 0.3);
  outline-offset: 2px;
}

.btn-primary {
  background: #1e6091;
  color: var(--text-white);
  border: 1px solid #1e6091;
}

.btn-primary:hover {
  background: #155a7f;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--text-white);
}

.btn-success {
  background: #1e7e34;
  color: var(--text-white);
  border: 1px solid #1e7e34;
}

.btn-success:hover {
  background: #1a6e2a;
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: #c82333;
  color: var(--text-white);
  border: 1px solid #c82333;
}

.btn-danger:hover {
  background: #a01e2a;
  color: var(--text-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-warning {
  background: #e0a800;
  color: #212529;
  border: 1px solid #e0a800;
  font-weight: 700;
}

.btn-warning:hover {
  background: #c69500;
  color: #212529;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-info {
  background: #138496;
  color: var(--text-white);
  border: 1px solid #138496;
}

.btn-info:hover {
  background: #117a8b;
  color: var(--text-white);
}

.btn-small {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* ===== TABLES ===== */
.table-container {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead {
  background: linear-gradient(135deg, var(--primary-color), #2c3e50);
}

thead th {
  color: var(--text-white);
  font-weight: 700;
  padding: 16px 12px;
  text-align: left;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--primary-color);
}

tbody tr {
  border-bottom: 1px solid #dee2e6;
  transition: var(--transition);
}

tbody tr:hover {
  background: #f8f9fa;
}

tbody tr:nth-child(even) {
  background: #fdfdfd;
}

tbody tr:nth-child(even):hover {
  background: #f1f3f4;
}

tbody td {
  padding: 14px 12px;
  vertical-align: middle;
  color: var(--text-primary);
  border-bottom: 1px solid #e9ecef;
}

/* ===== STATUS BADGES ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

.status-high { 
  background: #d4edda; 
  color: #155724; 
  border-color: #c3e6cb;
}

.status-medium { 
  background: #fff3cd; 
  color: #856404; 
  border-color: #ffeaa7;
}

.status-low { 
  background: #f8d7da; 
  color: #721c24; 
  border-color: #f5c6cb;
}

.status-pago {
  background: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.status-pendente {
  background: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.status-cancelado {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .main-nav {
    gap: 8px;
  }
  
  .nav-item {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .nav-item span {
    display: none;
  }
  
  .nav-item .icon {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--primary-color);
    flex-direction: column;
    gap: 0;
    padding: 30px 20px;
    transition: var(--transition);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    align-items: stretch;
  }
  
  .main-nav.mobile-open {
    left: 0;
  }
  
  .nav-item {
    width: 100%;
    justify-content: flex-start;
    padding: 16px 20px;
    margin-bottom: 8px;
    border-radius: var(--border-radius);
  }
  
  .nav-item span {
    display: inline !important;
  }
  
  .logout-btn {
    margin-left: 0 !important;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
  }
  
  .user-info {
    display: none;
  }
  
  main {
    margin: 20px auto;
    padding: 0 15px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .card {
    padding: 20px;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  table {
    min-width: 600px;
  }
  
  .hide-mobile {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.2rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in {
  animation: slideIn 0.4s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-10 { gap: 10px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }
