/* ============================================================================
   GRUPO FALCON - TEMA METÁLICO
   Aço Escovado + Azul Royal + Laranja Munsell
   ============================================================================ */

/* ============================================================================
   VARIÁVEIS CSS - PALETA DE CORES
   ============================================================================ */
:root {
  /* Aço Escovado */
  --steel-light: #B8BFC6;
  --steel-medium: #6B7280;
  --steel-dark: #3F4652;
  --steel-polished: #E5E7EB;
  
  /* Azul Royal */
  --royal-blue: #0047AB;
  --royal-blue-dark: #003380;
  --royal-blue-light: #4A90E2;
  
  /* Laranja Munsell */
  --orange-munsell: #FF8C00;
  --orange-dark: #CC7000;
  --orange-light: #FFB84D;
  
  /* Status */
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  
  /* Sombras Metálicas */
  --shadow-metal: 0 2px 8px rgba(63, 70, 82, 0.15);
  --shadow-metal-lg: 0 4px 16px rgba(63, 70, 82, 0.2);
  --shadow-metal-inset: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-metal-shine: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ============================================================================
   RESET E BASE
   ============================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-medium) 100%);
  min-height: 100vh;
}

/* ============================================================================
   TEXTURA DE AÇO ESCOVADO
   ============================================================================ */
.steel-texture {
  position: relative;
  background: linear-gradient(
    90deg,
    var(--steel-light) 0%,
    var(--steel-polished) 50%,
    var(--steel-light) 100%
  );
}

.steel-texture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.05) 1px,
      rgba(255, 255, 255, 0.05) 2px
    );
  pointer-events: none;
}

/* ============================================================================
   EFEITOS METÁLICOS
   ============================================================================ */
.metal-card {
  background: linear-gradient(
    135deg,
    var(--steel-polished) 0%,
    var(--steel-light) 50%,
    var(--steel-polished) 100%
  );
  box-shadow: 
    var(--shadow-metal),
    var(--shadow-metal-shine);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.metal-shine {
  position: relative;
  overflow: hidden;
}

.metal-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.metal-shine:hover::after {
  transform: translateX(100%);
}

/* ============================================================================
   BOTÕES METÁLICOS
   ============================================================================ */
.btn-royal {
  background: linear-gradient(135deg, var(--royal-blue-light) 0%, var(--royal-blue) 100%);
  color: white;
  font-weight: 600;
  border: none;
  box-shadow: 
    var(--shadow-metal),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-royal:hover {
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-dark) 100%);
  box-shadow: 
    var(--shadow-metal-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

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

.btn-orange {
  background: linear-gradient(135deg, var(--orange-munsell) 0%, var(--orange-dark) 100%);
  color: white;
  font-weight: 600;
  border: none;
  box-shadow: 
    var(--shadow-metal),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-orange:hover {
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange-munsell) 100%);
  box-shadow: var(--shadow-metal-lg);
  transform: translateY(-1px);
}

.btn-steel {
  background: linear-gradient(135deg, var(--steel-light) 0%, var(--steel-medium) 100%);
  color: var(--steel-dark);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-metal);
  transition: all 0.3s ease;
}

.btn-steel:hover {
  background: linear-gradient(135deg, var(--steel-polished) 0%, var(--steel-light) 100%);
  box-shadow: var(--shadow-metal-lg);
  transform: translateY(-1px);
}

/* ============================================================================
   INPUTS METÁLICOS
   ============================================================================ */
.input-metal {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--steel-light);
  box-shadow: var(--shadow-metal-inset);
  transition: all 0.3s ease;
}

.input-metal:focus {
  outline: none;
  border-color: var(--royal-blue);
  box-shadow: 
    var(--shadow-metal-inset),
    0 0 0 3px rgba(0, 71, 171, 0.1);
}

/* ============================================================================
   CARDS METÁLICOS
   ============================================================================ */
.card-steel {
  background: linear-gradient(
    135deg,
    var(--steel-polished) 0%,
    var(--steel-light) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    var(--shadow-metal),
    var(--shadow-metal-shine);
  position: relative;
  overflow: hidden;
}

.card-steel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(255, 255, 255, 0.03) 1px,
      rgba(255, 255, 255, 0.03) 2px
    );
  pointer-events: none;
}

/* ============================================================================
   HEADER METÁLICO
   ============================================================================ */
.header-steel {
  background: linear-gradient(
    135deg,
    var(--steel-dark) 0%,
    #4a5568 100%
  );
  border-bottom: 2px solid var(--steel-medium);
  box-shadow: var(--shadow-metal-lg);
}

/* ============================================================================
   ÍCONES COM BRILHO METÁLICO
   ============================================================================ */
.icon-royal {
  color: var(--royal-blue);
  filter: drop-shadow(0 2px 4px rgba(0, 71, 171, 0.3));
}

.icon-orange {
  color: var(--orange-munsell);
  filter: drop-shadow(0 2px 4px rgba(255, 140, 0, 0.3));
}

.icon-steel {
  color: var(--steel-medium);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* ============================================================================
   SCROLLBAR METÁLICA
   ============================================================================ */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--steel-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--steel-medium) 0%, var(--steel-light) 100%);
  border-radius: 6px;
  border: 2px solid var(--steel-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-dark) 100%);
}

/* ============================================================================
   ANIMAÇÕES METÁLICAS
   ============================================================================ */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  animation: shimmer 3s infinite;
  background: linear-gradient(
    90deg,
    var(--steel-light) 0%,
    var(--steel-polished) 50%,
    var(--steel-light) 100%
  );
  background-size: 1000px 100%;
}

/* ============================================================================
   BADGES METÁLICOS
   ============================================================================ */
.badge-royal {
  background: var(--royal-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-metal);
}

.badge-orange {
  background: var(--orange-munsell);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-metal);
}

.badge-success {
  background: var(--success);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-metal);
}

/* ============================================================================
   LOGO EM AÇO ESCOVADO (já vem pronta em aço)
   ============================================================================ */
.logo-steel {
  position: relative;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.logo-steel:hover {
  filter: drop-shadow(0 6px 16px rgba(0, 71, 171, 0.4));
  transform: scale(1.02);
}

/* ============================================================================
   UTILIDADES
   ============================================================================ */
.text-royal {
  color: var(--royal-blue);
}

.text-orange {
  color: var(--orange-munsell);
}

.text-steel {
  color: var(--steel-medium);
}

.text-steel-dark {
  color: var(--steel-dark);
}

.bg-steel-gradient {
  background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel-medium) 100%);
}

/* ============================================================================
   MODAIS
   ============================================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease;
}

.modal-xl {
  max-width: 900px;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 2px solid var(--steel-light);
  background: linear-gradient(135deg, var(--steel-polished) 0%, white 100%);
}

.modal-close {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--steel-light);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--steel-dark);
  font-size: 1.25rem;
}

.modal-close:hover {
  background: var(--error);
  color: white;
  transform: scale(1.1);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 2px solid var(--steel-light);
}

/* ============================================================================
   BADGES
   ============================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success {
  background: #D1FAE5;
  color: #065F46;
}

.badge-danger {
  background: #FEE2E2;
  color: #991B1B;
}

.badge-warning {
  background: #FEF3C7;
  color: #92400E;
}

.badge-steel {
  background: var(--steel-light);
  color: var(--steel-dark);
}

.badge-royal {
  background: rgba(0, 71, 171, 0.1);
  color: var(--royal-blue-dark);
}

.badge-munsell {
  background: rgba(255, 140, 0, 0.1);
  color: var(--orange-dark);
}

/* ============================================================================
   BOTÕES ICON
   ============================================================================ */
.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.btn-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   INPUTS E FORMS
   ============================================================================ */
.label-steel {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--steel-dark);
  margin-bottom: 0.5rem;
}

.radio-steel {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--royal-blue);
}

/* ============================================================================
   TABELAS
   ============================================================================ */
table {
  border-collapse: collapse;
  width: 100%;
}

table th {
  font-weight: 700;
  text-align: left;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

table td {
  font-size: 0.9375rem;
}

/* ============================================================================
   BACKGROUND GRADIENTS
   ============================================================================ */
.bg-gradient-steel {
  background: linear-gradient(135deg, #E5E7EB 0%, #F9FAFB 100%);
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */
@media print {
  header,
  button,
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
  }
}
