@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #3C096C;
  --primary-light: #5A189A;
  --secondary: #7209B7;
  --accent: #B5179E;
  --accent-gradient: linear-gradient(135deg, #3C096C, #7209B7, #B5179E);
  --text: #190042;
  --text-light: #fff;
  --bg-gradient: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #e5e7eb 100%);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(60, 9, 108, 0.12);
  --glass-dark: rgba(60, 9, 108, 0.95);
  --blur: blur(12px);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(31, 38, 135, 0.08);
  --shadow-lg: 0 16px 40px rgba(31, 38, 135, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  --color-critical: #dc3545;
  --color-alert: #fd7e14;
  --color-warning: #ffc107;
  --color-success: #28a745;
  --color-completed: #4361ee;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.mgest-dashboard {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ===== SIDEBAR ===== */
.mgest-sidebar {
  width: 280px;
  padding: 28px 20px;
  background: var(--glass-dark);
  backdrop-filter: var(--blur);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: var(--transition);
}

.logo-container {
  margin-bottom: 40px;
  text-align: center;
  padding: 0 10px;
}

.logo-evento {
  width: 100px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.logo-evento:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.mgest-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-btn,
.logout-btn {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-light);
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-btn:hover,
.logout-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(114, 9, 183, 0.35);
}

.logout-btn {
  margin-top: 20px;
  border-color: rgba(255, 100, 100, 0.25);
}

.logout-btn:hover {
  background: rgba(255, 100, 100, 0.15);
  border-color: rgba(255, 100, 100, 0.4);
}

/* ===== MAIN CONTENT ===== */
.mgest-content {
  flex: 1;
  padding: 30px 40px;
  max-width: 100%;
  overflow-x: hidden;
}

.mgest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.mgest-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  letter-spacing: -0.5px;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  padding: 10px 18px;
  border-radius: 40px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.welcome-text {
  font-size: 13px;
  color: var(--text);
}

.welcome-text strong {
  color: var(--primary);
  font-weight: 600;
}

.logout-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(220, 53, 69, 0.08);
  border-radius: 50%;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.logout-mini:hover {
  background: rgba(220, 53, 69, 0.15);
  transform: rotate(180deg) scale(1.1);
  color: #dc3545;
}

/* ===== FILTERS ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
  align-items: center;
}

.filter-group {
  flex: 1;
  min-width: 180px;
  position: relative;
}

.filter-group svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(25, 0, 66, 0.4);
  width: 18px;
  height: 18px;
}

.filters input,
.filters select {
  width: 100%;
  height: 48px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1.5px solid var(--glass-border);
  color: var(--text);
  padding: 12px 16px 12px 44px;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.filters input:hover,
.filters select:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(60, 9, 108, 0.25);
}

.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: var(--secondary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(114, 9, 183, 0.1);
}

.filters input::placeholder {
  color: rgba(25, 0, 66, 0.4);
}

.btn-export,
.btn-clear-filters {
  background: #1D6F42;
  border: none;
  color: #fff;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(29, 111, 66, 0.25);
  height: 48px;
  white-space: nowrap;
}

.btn-clear-filters {
  background: #64748B;
  box-shadow: 0 6px 16px rgba(100, 116, 139, 0.25);
}

.btn-export:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(29, 111, 66, 0.35);
  background: #156835;
}

.btn-clear-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(100, 116, 139, 0.35);
  background: #475569;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(114, 9, 183, 0.3);
}

.card-icon {
  margin-bottom: 16px;
  color: var(--primary);
  opacity: 0.9;
}

.card strong {
  font-size: 42px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  line-height: 1.1;
}

.card p {
  font-size: 12px;
  color: rgba(25, 0, 66, 0.6);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(25, 0, 66, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
  box-shadow: 0 0 12px rgba(114, 9, 183, 0.4);
}

.progress-fill.critical { background: linear-gradient(90deg, var(--color-critical), #ff6b7a); }
.progress-fill.alert { background: linear-gradient(90deg, var(--color-alert), #ff9a4d); }
.progress-fill.warning { background: linear-gradient(90deg, var(--color-warning), #ffd54f); }
.progress-fill.success { background: linear-gradient(90deg, var(--color-success), #4caf50); }
.progress-fill.completed { background: linear-gradient(90deg, var(--color-completed), #2196f3); }

/* ===== LOADING ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--secondary);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== TABLE ===== */
.table-container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mgest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mgest-table thead {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.mgest-table th {
  padding: 18px 12px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.8px;
  font-size: 12px;
  color: #fff;
  text-align: center;
  white-space: nowrap;
}

.mgest-table tbody tr {
  transition: var(--transition);
  border-bottom: 1px solid #f1f5f9;
  background-color: #ffffff;
}

.mgest-table tbody tr:nth-child(even) {
  background-color: #fafaff;
}

.mgest-table tbody tr:hover {
  background-color: #f3e8ff;
  transform: scale(1.002);
  box-shadow: 0 2px 8px rgba(60, 9, 108, 0.08);
}

.mgest-table td {
  padding: 16px 12px;
  text-align: center;
  color: var(--text);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-ver {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(90, 24, 154, 0.25);
}

.btn-ver:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(114, 9, 183, 0.35);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.empty-state svg {
  margin-bottom: 20px;
  opacity: 0.7;
}

/* ===== PAGINATION ===== */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 8px;
}

.pagination-container.hidden {
  display: none;
}

.pagination-btn {
  background: #ffffff;
  backdrop-filter: var(--blur);
  border: 1px solid #e2e8f0;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  min-width: 44px;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(60, 9, 108, 0.06);
  border-color: var(--secondary);
  color: var(--primary);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--secondary);
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 12px rgba(114, 9, 183, 0.3);
}

.pagination-info {
  color: var(--text);
  font-size: 13px;
  padding: 0 12px;
  font-weight: 500;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  padding: 0;
  max-width: 1000px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25);
  animation: modalSlideUp 0.35s cubic-bezier(0.21, 1.11, 0.35, 1);
}

@keyframes modalSlideUp {
  0% {
    transform: translateY(40px) scale(0.98);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  background: linear-gradient(135deg, rgba(60, 9, 108, 0.98), rgba(114, 9, 183, 0.98));
  padding: 28px 36px;
  border-radius: 28px 28px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

#modal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  color: #fff;
  flex: 1;
  letter-spacing: -0.3px;
}

.modal-status-container {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  padding: 8px 20px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateX(-20%);
  margin-right: 20px;
}

.status-label {
  color: #fff;
  font-weight: 700 !important;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 5px 14px;
  border-radius: 30px;
}

.modal-status-select {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--text);
  padding: 10px 44px 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-width: 200px;
  height: 46px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233C096C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 16px;
}

.modal-status-select:hover {
  background-color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.modal-close:hover {
  background: rgba(255, 71, 87, 0.9);
  border-color: rgba(255, 71, 87, 0.5);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3);
}

.modal-body {
  padding: 36px;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(8px);
}

.modal-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.modal-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  height: fit-content;
  transition: var(--transition);
}

.modal-column:hover {
  border-color: rgba(114, 9, 183, 0.15);
  box-shadow: 0 12px 28px rgba(60, 9, 108, 0.06);
  background: rgba(255, 255, 255, 0.95);
}

.modal-single-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  margin-top: 8px;
  transition: var(--transition);
}

.modal-single-column:hover {
  border-color: rgba(114, 9, 183, 0.2);
  box-shadow: 0 12px 28px rgba(60, 9, 108, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.modal-single-column label {
  font-size: 12px;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 700 !important;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-single-column label::before {
  content: "📋";
  font-size: 14px;
  opacity: 0.8;
}

.modal-single-column .textarea-value {
  background: rgba(255, 255, 255, 0.98);
  padding: 18px 20px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #1e293b;
  border: 1px solid rgba(60, 9, 108, 0.08);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
  min-height: 120px;
  white-space: pre-wrap;
  word-break: break-word;
  font-weight: 400;
}

/* ===== POPUP - LABEL NEGRITO, VALOR NORMAL ===== */
.modal-field {
  margin-bottom: 0;
  border-bottom: 1px dashed rgba(60, 9, 108, 0.06);
  padding-bottom: 16px;
  margin-bottom: 4px;
}

.modal-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700 !important;
  font-weight: bold !important;
  letter-spacing: 0.8px;
  opacity: 1;
}

.modal-field .value {
  background: rgba(255, 255, 255, 0.95);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  color: #1e293b;
  word-break: break-word;
  border: 1px solid rgba(60, 9, 108, 0.06);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
  line-height: 1.5;
  font-weight: 400 !important;
  font-weight: normal !important;
}

.textarea-value {
  min-height: 100px;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 14px;
  font-weight: 400 !important;
  font-weight: normal !important;
}

/* Garantia para todos os valores do modal */
.modal-body .value,
.modal-column .value,
.modal-single-column .value,
.modal-field .value,
.textarea-value {
  font-weight: 400 !important;
  font-weight: normal !important;
}

/* Garantia para todas as labels do modal */
.modal-body label,
.modal-column label,
.modal-single-column label,
.modal-field label,
.modal-header label,
.modal-status-container label,
.status-label {
  font-weight: 700 !important;
  font-weight: bold !important;
  font-family: 'Inter', 'Poppins', sans-serif !important;
}

.modal-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.modal-link:hover {
  color: var(--primary);
  text-decoration: underline;
  transform: translateX(4px);
}

.modal-footer {
  padding: 0 36px 36px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 0 0 28px 28px;
}

.btn-save {
  background: linear-gradient(135deg, #059669, #10b981);
  border: none;
  color: #fff;
  padding: 14px 36px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.25);
}

.btn-save:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.35);
  background: linear-gradient(135deg, #047857, #059669);
}

.btn-save:active {
  transform: translateY(-1px);
}

.btn-save svg {
  width: 18px;
  height: 18px;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--glass-dark);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 5px solid;
  padding: 16px 24px;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  animation: toastSlideIn 0.3s cubic-bezier(0.21, 1.11, 0.35, 1);
  min-width: 340px;
  font-weight: 500;
  font-size: 14px;
}

.toast.success {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #ffffff;
  border-left-color: #1e7e34;
}

.toast.error {
  background: linear-gradient(135deg, #dc3545, #f56565);
  color: #ffffff;
  border-left-color: #b02a37;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(420px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== FOOTER ===== */
.mgest-footer {
  position: fixed;
  bottom: 16px;
  right: 20px;
  font-size: 11px;
  color: rgba(25, 0, 66, 0.5);
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 18px;
  border-radius: 40px;
  backdrop-filter: blur(8px);
  z-index: 50;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(25, 0, 66, 0.03);
  border-radius: 20px;
}

::-webkit-scrollbar-thumb {
  background: rgba(25, 0, 66, 0.15);
  border-radius: 20px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(25, 0, 66, 0.25);
  background-clip: padding-box;
}

/* ===== UTILITÁRIOS ===== */
.hidden {
  display: none !important;
}

.active {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  
  .modal-two-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }
}

@media (max-width: 768px) {
  .mgest-sidebar {
    position: fixed;
    left: -280px;
    transition: left 0.3s ease;
    height: 100vh;
  }
  
  .mgest-sidebar.active {
    left: 0;
  }
  
  .mgest-content {
    padding: 20px 16px;
    padding-bottom: 70px;
  }
  
  .mgest-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .mgest-header h1 {
    font-size: 26px;
  }
  
  .filters {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .btn-export,
  .btn-clear-filters {
    width: 100%;
    justify-content: center;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  .mgest-table {
    min-width: 700px;
  }
  
  .modal-header {
    padding: 24px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  #modal-title {
    font-size: 22px;
    margin-bottom: 8px;
  }
  
  .modal-status-container {
    transform: translateX(0);
    margin-right: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    border-radius: 20px;
  }
  
  .modal-status-select {
    width: 100%;
    min-width: auto;
  }
  
  .modal-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  
  .modal-body {
    padding: 24px 16px;
  }
  
  .modal-two-columns {
    gap: 20px;
  }
  
  .modal-column,
  .modal-single-column {
    padding: 20px;
  }
  
  .modal-footer {
    padding: 0 24px 24px;
  }
  
  .btn-save {
    width: 100%;
    justify-content: center;
  }
  
  .pagination-container {
    flex-wrap: wrap;
  }
  
  .toast-container {
    left: 16px;
    right: 16px;
    top: 16px;
  }
  
  .toast {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .modal-header {
    padding: 20px 16px;
  }
  
  .modal-body {
    padding: 20px 16px;
  }
  
  .modal-column,
  .modal-single-column {
    padding: 18px;
  }
  
  .modal-field .value {
    padding: 12px 14px;
    font-size: 14px;
  }
  
  .modal-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}