:root {
  --fuel-primary: #1B0088;
  --fuel-primary-dark: #0F004F;
  --fuel-primary-light: rgba(27, 0, 136, 0.08);
  --fuel-secondary: #4257E8;
  --fuel-accent: #00A6D4;
  --fuel-success: #10b981;
  --fuel-warning: #f59e0b;
  --fuel-danger: #ef4444;
  --fuel-text: #1f2937;
  --fuel-text-light: #6b7280;
  --fuel-border: #e5e7eb;
  --fuel-bg: #f9fafb;
  --fuel-bg-card: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Barlow Semi Condensed', sans-serif;
  background: var(--fuel-bg);
  color: var(--fuel-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fuel-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background: linear-gradient(180deg, var(--fuel-primary) 0%, #0d0055 100%);
  color: white;
  padding: 24px 20px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.fuel-sidebar::-webkit-scrollbar {
  width: 6px;
}

.fuel-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.fuel-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.fuel-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.fuel-sidebar .sidebar-menu-item {
  padding: 10px 16px;
  margin-bottom: 3px;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-left: 3px solid transparent;
  position: relative;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-top: none;
  border-right: none;
  border-bottom: none;
}

.fuel-sidebar .sidebar-menu-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-left-color: #00D6CC;
  color: #fff;
  transform: translateX(4px);
}

.fuel-sidebar .sidebar-menu-item.active,
.fuel-sidebar .sidebar-menu-item:active {
  background: rgba(0, 214, 204, 0.2);
  border-left-color: #00D6CC;
  color: #fff;
}

.fuel-sidebar .sidebar-menu-item i {
  font-size: 18px;
  width: 24px;
  opacity: 0.9;
  transition: all 0.25s ease;
}

.fuel-sidebar .sidebar-menu-item:hover i {
  opacity: 1;
  color: #00D6CC;
}

.fuel-sidebar a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.fuel-sidebar a:hover {
  color: #fff;
}

.fuel-main {
  margin-left: 250px;
  padding: 24px;
  min-height: 100vh;
  background: var(--fuel-bg);
}

.fuel-brand {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 28px;
  margin-bottom: 8px;
}

.fuel-primary {
  color: var(--fuel-primary);
}

.btn {
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-fuel {
  background: var(--fuel-primary);
  border-color: var(--fuel-primary);
  box-shadow: 0 4px 12px rgba(27, 0, 136, 0.25);
}

.btn-fuel:hover {
  background: var(--fuel-primary-dark);
  border-color: var(--fuel-primary-dark);
  color: white !important;
  box-shadow: 0 6px 16px rgba(27, 0, 136, 0.35);
  transform: translateY(-1px);
}

.btn-fuel:hover i {
  color: white !important;
}

.btn-fuel:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(27, 0, 136, 0.25);
}

.btn-outline-secondary {
  border: 1.5px solid var(--fuel-border);
  background: white;
  color: var(--fuel-text);
}

.btn-outline-secondary:hover {
  background: #6c757d;
  border-color: #6c757d;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-secondary:hover i {
  color: white !important;
}

.btn-outline-primary {
  border: 1.5px solid #0d6efd;
  background: white;
  color: #0d6efd;
}

.btn-outline-primary:hover {
  background: #0d6efd;
  border-color: #0d6efd;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-primary:hover i {
  color: white !important;
}

.btn-outline-success {
  border: 1.5px solid var(--fuel-success);
  background: white;
  color: var(--fuel-success);
}

.btn-outline-success:hover {
  background: var(--fuel-success);
  border-color: var(--fuel-success);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-success:hover i {
  color: white !important;
}

.btn-outline-danger {
  border: 1.5px solid var(--fuel-danger);
  background: white;
  color: var(--fuel-danger);
}

.btn-outline-danger:hover {
  background: var(--fuel-danger);
  border-color: var(--fuel-danger);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-danger:hover i {
  color: white !important;
}

.btn-outline-warning {
  border: 1.5px solid var(--fuel-warning);
  background: white;
  color: var(--fuel-warning);
}

.btn-outline-warning:hover {
  background: var(--fuel-warning);
  border-color: var(--fuel-warning);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-warning:hover i {
  color: white !important;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 14px;
}

.fuel-confidential-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--fuel-border);
  padding: 12px 20px;
  font-size: 12px;
  color: var(--fuel-text-light);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.fuel-login-left {
  background: linear-gradient(135deg, var(--fuel-primary) 0%, var(--fuel-primary-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.fuel-login-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10%, -10%); }
}

.fuel-login-left .fuel-brand {
  font-size: 56px;
  letter-spacing: 2px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fuel-card {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: var(--fuel-bg-card);
  transition: var(--transition);
  overflow: hidden;
}

.fuel-card:hover {
  box-shadow: var(--shadow-lg);
}

.card {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--fuel-bg-card);
}

.card-body {
  padding: 24px;
}

.fuel-question-row {
  border: 1.5px solid var(--fuel-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: var(--transition);
  background: var(--fuel-bg-card);
}

.fuel-question-row.is-dim {
  opacity: 0.5;
  background: var(--fuel-bg);
  border-color: transparent;
}

.fuel-question-row.is-selected {
  opacity: 1;
  background: var(--fuel-bg-card);
  border-color: var(--fuel-primary);
  box-shadow: 0 8px 20px rgba(27, 0, 136, 0.12), 0 0 0 3px var(--fuel-primary-light);
  transform: translateY(-2px);
}

.fuel-question-row:hover {
  border-color: var(--fuel-text-light);
}

/* ===== FORMS & INPUTS ===== */
.form-label {
  font-weight: 600;
  color: var(--fuel-text);
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control, .form-select {
  border: 1.5px solid var(--fuel-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 15px;
  transition: var(--transition);
  background: var(--fuel-bg-card);
  color: var(--fuel-text);
}

.form-control:focus, .form-select:focus {
  border-color: var(--fuel-primary);
  box-shadow: 0 0 0 3px var(--fuel-primary-light);
  outline: none;
  background: white;
}

.form-control::placeholder {
  color: var(--fuel-text-light);
  opacity: 0.6;
}

.form-check-input {
  width: 20px;
  height: 20px;
  border: 2px solid var(--fuel-border);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.form-check-input:checked {
  background-color: var(--fuel-primary);
  border-color: var(--fuel-primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px var(--fuel-primary-light);
}

.input-group {
  display: flex;
  gap: 0;
}

.input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ===== TABLES ===== */
.table {
  width: 100%;
  margin-bottom: 0;
}

.table thead th {
  background: var(--fuel-bg);
  color: var(--fuel-text);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border: none;
  border-bottom: 2px solid var(--fuel-border);
}

.table tbody td {
  padding: 16px;
  border: none;
  border-bottom: 1px solid var(--fuel-border);
  color: var(--fuel-text);
  vertical-align: middle;
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background: var(--fuel-bg);
}

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

.table-responsive {
  border-radius: var(--radius);
  overflow: hidden;
}

/* ===== ALERTS ===== */
.alert {
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  border-left: 4px solid;
}

.alert-danger {
  background: #fef2f2;
  border-left-color: var(--fuel-danger);
  color: #991b1b;
}

.alert-warning {
  background: #fffbeb;
  border-left-color: var(--fuel-warning);
  color: #92400e;
}

.alert-success {
  background: #f0fdf4;
  border-left-color: var(--fuel-success);
  color: #166534;
}

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--fuel-text);
  font-weight: 700;
  margin-bottom: 16px;
}

.h4 {
  font-size: 24px;
  font-weight: 700;
}

/* ===== UTILITIES ===== */
.text-muted {
  color: var(--fuel-text-light) !important;
}

.small {
  font-size: 13px;
}

.fw-semibold {
  font-weight: 600;
}

.fw-bold {
  font-weight: 700;
}

/* ===== ACTION BUTTONS (EDITAR/EXCLUIR) ===== */
.btn-action {
  border-width: 1px;
  border-style: solid;
  transition: all 0.2s ease-in-out;
}

.btn-action.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
}

.btn-action.btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: #ffffff !important;
}

.btn-action.btn-outline-secondary:hover i {
  color: #ffffff !important;
}

.btn-action.btn-outline-primary {
  color: #0d6efd;
  border-color: #0d6efd;
}

.btn-action.btn-outline-primary:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff !important;
}

.btn-action.btn-outline-primary:hover i {
  color: #ffffff !important;
}

.btn-action.btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-action.btn-outline-danger:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #ffffff !important;
}

.btn-action.btn-outline-danger:hover i {
  color: #ffffff !important;
}

/* ===== DASHBOARD CARDS ===== */
.dashboard-cta {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid var(--fuel-border);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  width: 100%;
  display: block;
}

.dashboard-cta .card-body {
  min-height: 100px;
  display: flex;
  align-items: center;
  width: 100%;
}

.dashboard-cta:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--fuel-primary);
}

.dashboard-icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 0, 136, 0.05);
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.dashboard-cta:hover .dashboard-icon-wrapper {
  background: rgba(27, 0, 136, 0.1);
  transform: scale(1.05);
}

.dashboard-icon-left {
  font-size: 32px;
  transition: transform 0.3s ease;
}

.dashboard-cta:hover .dashboard-icon-left {
  transform: scale(1.1);
}

.dashboard-cta-card {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: linear-gradient(135deg, var(--fuel-bg-card) 0%, var(--fuel-bg) 100%);
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  border: 2px solid transparent;
}

.dashboard-cta-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--fuel-primary);
}

.dashboard-cta-card i {
  font-size: 42px;
  color: var(--fuel-primary);
  margin-bottom: 16px;
  display: block;
}

.dashboard-cta-card h5 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fuel-text);
  margin-bottom: 8px;
}

.dashboard-cta-card p {
  font-size: 14px;
  color: var(--fuel-text-light);
  margin: 0;
}

/* ===== BADGES ===== */
.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.badge-primary {
  background: var(--fuel-primary-light);
  color: var(--fuel-primary);
}

.badge-success {
  background: #d1fae5;
  color: var(--fuel-success);
}

.badge-secondary {
  background: #f3f4f6;
  color: var(--fuel-text-light);
}

.badge-danger {
  background: #fee2e2;
  color: var(--fuel-danger);
}

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--fuel-border);
}

.page-header h1 {
  margin: 0;
  font-size: 28px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .fuel-sidebar {
    transform: translateX(-100%);
  }
  
  .fuel-main {
    margin-left: 0;
    padding: 20px;
  }
  
  .dashboard-cta-card {
    padding: 24px 20px;
  }
}
