/* Global Styles - Grupo LGF */

:root {
  --lgf-orange: #ff9e00;
  --lgf-orange-dark: #fe7c02;
  --lgf-gray-dark: #575756;
  --lgf-gray-light: #eeeeee;
}

/* Base */
html,
body {
  height: 100%;
}

body {
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */

.navbar {
  min-height: 52px !important;
  height: 52px !important;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid #f0f0f0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.navbar-brand {
  font-weight: 600;
  color: var(--lgf-orange) !important;
  font-size: 1.25rem;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 52px;
}

/* Reduz o espaçamento lateral da navbar */
.navbar .container {
  max-width: 1200px !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  margin: 0 auto !important;
  min-height: 52px !important;
  height: 52px !important;
  align-items: center;
}

.navbar-nav .nav-link,
.navbar .dropdown-toggle {
  padding-top: 0;
  padding-bottom: 0;
  line-height: 52px;
  font-size: 1rem;
}

.navbar .dropdown-menu {
  margin-top: 4px;
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-text {
  text-align: center;
  color: #6c757d;
}

/* Forms */
.form-control {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 0.75rem;
}

.form-control:focus {
  border-color: var(--lgf-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 158, 0, 0.25);
}

/* Primary Button Override */
.btn-primary {
  background-color: var(--lgf-orange) !important;
  border-color: var(--lgf-orange) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--lgf-orange-dark) !important;
  border-color: var(--lgf-orange-dark) !important;
}

.btn-outline-primary {
  color: var(--lgf-orange) !important;
  border-color: var(--lgf-orange) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--lgf-orange) !important;
  border-color: var(--lgf-orange) !important;
  color: #fff !important;
}

/* Buttons */
.btn-primary,
.btn-outline-primary {
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  font-size: 1.1rem;
  transition: box-shadow 0.2s;
}

.btn-primary:focus,
.btn-outline-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 158, 0, 0.25);
}

/* Links */
a {
  color: var(--lgf-orange);
}

a:hover {
  color: var(--lgf-orange-dark);
}

/* Input Groups */
.input-group-text {
  border-radius: 8px 0 0 8px;
}

/* Back Button Styling */
.back-button {
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  z-index: 2;
  font-weight: 500;
  border: 1px solid #e0e0e0;
}

.back-button i {
  font-size: 1.1rem;
}

/* Text */
.text-center a {
  text-decoration: none;
}

/* Melhorias gerais para centralização */
.container,
.container-fluid {
  margin-left: auto;
  margin-right: auto;
}

/* Responsividade geral */
@media (max-width: 768px) {
  .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 750px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 98%;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1500px;
  }
}

/* ============================================
   GLOBAL TABLE STYLES 
   ============================================ */

/* Tabela responsiva com scroll horizontal quando necessário */
.table-responsive {
  overflow-x: auto;
}

/* Coluna de ações - largura fixa para garantir botões visíveis */
.col-actions {
  min-width: 160px !important;
  width: 160px !important;
  white-space: nowrap !important;
}

/* Coluna de email - trunca texto longo */
.col-email {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Coluna de data */
.col-date {
  min-width: 100px;
  white-space: nowrap;
}

/* Coluna de nome */
.col-name {
  min-width: 100px;
}

/* Coluna de status/badge */
.col-status {
  min-width: 110px;
  text-align: center;
}

/* Coluna pequena */
.col-sm {
  min-width: 80px;
  text-align: center;
}

/* Coluna média */
.col-md {
  min-width: 120px;
}

/* Coluna grande - permite quebrar texto */
.col-lg {
  min-width: 200px;
  white-space: normal !important;
  word-break: break-word;
}

/* Texto que pode quebrar linha */
.wrap-text {
  white-space: normal !important;
  word-break: break-word;
}