:root {
  --primary-color: #1a3a54;
  --primary-light: #2c5a80;
  --primary-dark: #0e2a40;
  --secondary-color: #ff6b35;
  --secondary-light: #ff8a5e;
  --secondary-dark: #e55a2b;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #343a40;
  --text-color: #212529;
  --text-muted: #6c757d;
  --white: #fff;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --box-shadow-lg: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --info-color: #3b82f6;
  --font-family: "SamsungOne", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--light-gray);
  color: var(--text-color);
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

/* Header styles */
header {
  background-color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 70px;
}

#logo {
  max-height: 45px;
  width: auto;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-name {
  font-weight: 600;
  color: var(--primary-color);
}

.logout-button {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius);
}

.logout-button:hover {
  background-color: var(--medium-gray);
  color: var(--primary-dark);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--primary-light);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Dashboard layout */
.dashboard-container {
  display: flex;
  min-height: calc(100vh - 70px);
}

/* Sidebar styles */
.sidebar {
  width: 260px;
  background-color: var(--white);
  color: var(--text-color);
  padding: 1.5rem 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--medium-gray);
  transition: all 0.3s ease;
}

.sidebar nav ul {
  list-style: none;
  padding: 0 0.5rem;
}

.sidebar nav ul li {
  margin-bottom: 0.25rem;
}

.sidebar nav ul li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  border-radius: var(--border-radius);
  font-weight: 500;
}

.sidebar nav ul li a:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

.sidebar nav ul li.active a {
  background-color: var(--primary-color);
  color: var(--white);
}

.sidebar nav ul li a i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

/* Garantir que o sidebar seja sempre visível e scrollável */
.sidebar {
  z-index: 100;
}

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

.sidebar::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--medium-gray);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Submenu Styles */
.menu-item-with-submenu > .submenu-toggle {
  position: relative;
}

.submenu-arrow {
  margin-left: auto !important;
  font-size: 0.8rem !important;
  width: auto !important;
  transition: transform 0.2s ease;
}

.menu-item-with-submenu.expanded .submenu-arrow {
  transform: rotate(90deg);
}

.menu-item-with-submenu.has-active > .submenu-toggle {
  color: var(--primary-color);
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.03);
  border-left: 3px solid var(--primary-color);
  margin-top: 4px;
}

.submenu li {
  margin-bottom: 0;
}

.submenu li a {
  padding: 0.65rem 1rem 0.65rem 2.5rem !important;
  font-size: 0.9rem;
  color: var(--text-color);
  background-color: transparent;
}

.submenu li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
}

.submenu li.active a {
  background-color: var(--primary-color);
  color: var(--white);
}

.submenu li a i {
  font-size: 0.95rem !important;
  opacity: 0.8;
}

/* Main content area */
.content {
  flex: 1;
  padding: 1.5rem;
  max-width: 100%;
}

/* Dashboard header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-header h1 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.date-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.date-filter label {
  font-weight: 500;
  color: var(--text-color);
}

.date-filter input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-family);
}

.date-filter input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(26, 58, 84, 0.1);
}

.filter-button {
  padding: 0.5rem 1rem;
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-family: var(--font-family);
}

.filter-button:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-1px);
}

/* Stats cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
  border: 1px solid var(--medium-gray);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-lg);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.primary {
  background-color: rgba(26, 58, 84, 0.1);
  color: var(--primary-color);
}

.stat-icon.secondary {
  background-color: rgba(255, 107, 53, 0.1);
  color: var(--secondary-color);
}

.stat-icon.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.stat-icon.warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.stat-icon.danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.stat-info {
  flex: 1;
}

.stat-info h3 {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.stat-change {
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-change.positive {
  color: var(--success-color);
}

.stat-change.negative {
  color: var(--danger-color);
}

.stat-change.warning {
  color: var(--warning-color);
}

/* Dashboard rows and charts */
.dashboard-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-container {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
  height: 400px;
  position: relative;
  border: 1px solid var(--medium-gray);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-header h2 {
  font-size: 1.2rem;
  color: var(--text-color);
  margin: 0;
  font-weight: 600;
}

.chart-controls select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background-color: var(--white);
  font-family: var(--font-family);
}

.chart-controls select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-size: 1.3rem;
  color: var(--text-color);
  font-weight: 600;
  margin: 0;
}

.view-all {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.view-all:hover {
  color: var(--secondary-dark);
}

.view-all i {
  font-size: 0.85rem;
}

/* Recent vistorias section */
.recent-vistorias {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  grid-column: 1 / -1;
  border: 1px solid var(--medium-gray);
}

.table-container {
  overflow-x: auto;
  border-radius: var(--border-radius);
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
}

.data-table th {
  background-color: var(--light-gray);
  color: var(--text-color);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table th:first-child {
  border-top-left-radius: var(--border-radius);
}

.data-table th:last-child {
  border-top-right-radius: var(--border-radius);
}

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

.data-table tbody tr:hover {
  background-color: var(--light-gray);
}

.data-table tr:not(:last-child) {
  border-bottom: 1px solid var(--medium-gray);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  gap: 0.35rem;
}

.status-badge.approved {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.status-badge.pending {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.status-badge.critical {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--light-gray);
}

.view-btn {
  color: var(--info-color);
}

.edit-btn {
  color: var(--warning-color);
}

.delete-btn {
  color: var(--danger-color);
}

.action-btn:hover {
  transform: translateY(-2px);
  background-color: var(--medium-gray);
}

/* Problemas comuns section */
.problemas-comuns {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--medium-gray);
}

.problemas-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.problema-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--medium-gray);
}

.problema-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.problema-info {
  flex: 1;
}

.problema-info h4 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 600;
}

.progress-bar {
  height: 8px;
  background-color: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress {
  height: 100%;
  background-color: var(--secondary-color);
  border-radius: 4px;
}

.problema-count {
  font-weight: 600;
  color: var(--primary-color);
  margin-left: 1rem;
  min-width: 40px;
  text-align: right;
}

/* Veiculos status section */
.veiculos-status {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--medium-gray);
}

.donut-chart-container {
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 0.9rem;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

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

.modal-content h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.modal-content p {
  margin-bottom: 2rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.modal-button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 120px;
  font-family: var(--font-family);
}

.modal-button.confirm {
  background-color: var(--danger-color);
  color: white;
}

.modal-button.confirm:hover {
  background-color: #dc2626;
}

.modal-button.cancel {
  background-color: var(--light-gray);
  color: var(--text-color);
}

.modal-button.cancel:hover {
  background-color: var(--medium-gray);
}

/* Login page styles */
.login-page {
  background-color: var(--light-gray);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-box {
  background-color: white;
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  text-align: center;
  border: 1px solid var(--medium-gray);
}

.login-logo {
  max-width: 180px;
  margin-bottom: 2rem;
}

.login-box h1 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  font-family: var(--font-family);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 58, 84, 0.1);
}

.login-button {
  width: 100%;
  padding: 0.85rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
  font-family: var(--font-family);
}

.login-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.error-message {
  color: var(--danger-color);
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background-color: rgba(239, 68, 68, 0.1);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .dashboard-row {
    grid-template-columns: 1fr;
  }

  .stats-cards {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 992px) {
  .sidebar {
    width: 70px;
    padding: 1.5rem 0;
  }

  .sidebar nav ul {
    padding: 0 0.5rem;
  }

  .sidebar nav ul li a {
    padding: 0.85rem;
    justify-content: center;
  }

  .sidebar nav ul li a span {
    display: none;
  }

  .sidebar nav ul li a i {
    margin: 0;
    font-size: 1.25rem;
  }

  .content {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 0.5rem;
    border-right: none;
    border-bottom: 1px solid var(--medium-gray);
  }

  .sidebar nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
  }

  .sidebar nav ul li {
    margin: 0;
  }

  .sidebar nav ul li a {
    padding: 0.6rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
  }

  .stats-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .filter-controls {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .date-filter {
    width: 100%;
    flex-wrap: wrap;
  }

  .date-filter input {
    flex: 1;
    min-width: 120px;
  }

  .filter-button {
    width: 100%;
  }

  .chart-container {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .header-controls {
    gap: 0.75rem;
  }

  .user-name {
    display: none;
  }

  .dashboard-header h1 {
    font-size: 1.5rem;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .modal-content {
    padding: 1.5rem;
  }
}

/* Add styles for vehicle management page */
.add-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-family);
}

.add-button:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
}

.add-button i {
  font-size: 0.9rem;
}

.header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background-color: var(--light-gray);
  color: var(--text-color);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.back-button:hover {
  background-color: var(--medium-gray);
}

.actions-right {
  display: flex;
  gap: 0.75rem;
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.export-btn {
  background-color: var(--info-color);
  color: var(--white);
}

.export-btn:hover {
  background-color: #2563eb;
}

.print-btn {
  background-color: var(--light-gray);
  color: var(--text-color);
}

.print-btn:hover {
  background-color: var(--medium-gray);
}

/* Vistoria details page */
.vistoria-summary {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  border: 1px solid var(--medium-gray);
}

.info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-group h3 {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary-color);
  font-weight: 600;
}

.info-item {
  display: flex;
  margin-bottom: 0.75rem;
}

.info-item .label {
  font-weight: 500;
  color: var(--text-muted);
  width: 140px;
  flex-shrink: 0;
}

.info-item .value {
  font-weight: 500;
  color: var(--text-color);
}

.vehicle-images,
.checklist-section,
.checklist-images,
.observations-section {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  border: 1px solid var(--medium-gray);
}

.vehicle-images h2,
.checklist-section h2,
.checklist-images h2,
.observations-section h2 {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.image-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: var(--light-gray);
  transition: var(--transition);
}

.image-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-lg);
}

.image-item h3 {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  margin: 0;
  font-weight: 500;
}

.image-container {
  height: 200px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.05);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.checklist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.checklist-item:hover {
  background-color: var(--medium-gray);
}

.item-name {
  font-weight: 500;
  color: var(--text-color);
}

.item-status {
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
}

.status-ok {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
}

.status-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.observations {
  background-color: var(--light-gray);
  padding: 1.25rem;
  border-radius: var(--border-radius);
  margin-top: 0.5rem;
}

.observations p {
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

/* Print styles */
@media print {
  header,
  .sidebar,
  .header-actions,
  footer {
    display: none !important;
  }

  .content {
    margin-left: 0 !important;
    padding: 20px !important;
  }

  .dashboard-container {
    display: block !important;
  }

  body {
    background-color: white !important;
  }

  .vistoria-summary,
  .vehicle-images,
  .checklist-section,
  .checklist-images,
  .observations-section {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* Radio button group styles */
.radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  margin: 0;
}

/* Estilos para a Página Inicial Corporativa */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  margin: -20px -20px 40px -20px;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.company-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 30px;
}

.company-logo img {
  width: 120px;
  height: auto;
  filter: brightness(1.2);
}

.company-details {
  flex: 1;
}

.company-name {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: white;
}

.company-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0 0 20px 0;
  opacity: 0.9;
}

.company-description {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
  margin: 0;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Container geral */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Seções */
.values-section,
.mission-vision-section,
.services-section,
.contact-section {
  padding: 60px 0;
}

.values-section {
  background-color: #f8f9fa;
}

.mission-vision-section {
  background-color: white;
}

.services-section {
  background-color: #f8f9fa;
}

.contact-section {
  background-color: #2c3e50;
  color: white;
}

/* Títulos das seções */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 50px;
  color: #2c3e50;
}

.contact-section .section-title {
  color: white;
}

/* Grid de Valores */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.value-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.value-icon i {
  font-size: 2rem;
  color: white;
}

.value-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: #2c3e50;
}

.value-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #6c757d;
  margin: 0;
}

/* Missão e Visão */
.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
}

.mission-card,
.vision-card {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 15px;
  border-left: 5px solid #667eea;
}

.vision-card {
  border-left-color: #764ba2;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.card-header i {
  font-size: 2rem;
  color: #667eea;
}

.vision-card .card-header i {
  color: #764ba2;
}

.card-header h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  color: #2c3e50;
}

.mission-card p,
.vision-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #495057;
  margin: 0;
}

/* Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-item {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item i {
  font-size: 3rem;
  color: #667eea;
  margin-bottom: 20px;
}

.service-item h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: #2c3e50;
}

.service-item p {
  font-size: 1rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.5;
}

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-item {
  text-align: center;
  padding: 20px;
}

.contact-item i {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 15px;
}

.contact-item h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: white;
}

.contact-item p {
  font-size: 1rem;
  color: #bdc3c7;
  margin: 0;
  line-height: 1.5;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .company-info {
    flex-direction: column;
    gap: 20px;
  }

  .company-name {
    font-size: 2.2rem;
  }

  .company-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .values-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 0;
  }

  .company-name {
    font-size: 1.8rem;
  }

  .company-subtitle {
    font-size: 1.1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .values-section,
  .mission-vision-section,
  .services-section,
  .contact-section {
    padding: 40px 0;
  }
}

/* =================================
   ESTILOS PARA SISTEMA COMERCIAL 
   ================================= */

/* Classes de responsividade */
.p-responsive {
  padding: 0 1rem;
}

.page-title {
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-description {
  color: #666;
  margin-bottom: 0;
}

.btn-responsive {
  min-width: 120px;
}

/* Layout responsivo para desktop/mobile */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 767px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
  
  .p-responsive {
    padding: 0 0.5rem;
  }
}

/* Mobile Cards */
.mobile-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.mobile-card-header {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: between;
  align-items: flex-start;
}

.mobile-card-title {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.mobile-card-body {
  padding: 1rem;
}

.mobile-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.mobile-card-row:last-child {
  margin-bottom: 0;
}

.mobile-card-label {
  font-weight: 500;
  color: #666;
  font-size: 0.875rem;
  flex: 0 0 auto;
}

.mobile-card-value {
  color: #333;
  text-align: right;
  flex: 1;
  margin-left: 1rem;
  font-size: 0.875rem;
}

.mobile-card-actions {
  padding: 1rem;
  border-top: 1px solid #dee2e6;
  display: flex;
  gap: 0.5rem;
}

/* Badges responsivos */
.badge {
  font-size: 0.75rem;
  font-weight: 500;
}

.badge.bg-success {
  background-color: #198754 !important;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}

.badge.bg-danger {
  background-color: #dc3545 !important;
}

.badge.bg-secondary {
  background-color: #6c757d !important;
}

.badge.bg-primary {
  background-color: #0d6efd !important;
}

/* Card responsivo */
.card {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background-color: #fff;
}

.card-header {
  padding: 1rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 0.375rem 0.375rem 0 0;
}

.card-body {
  padding: 1rem;
}

.card-title {
  margin-bottom: 0;
  font-weight: 600;
  color: #333;
}

/* Botões responsivos */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
  color: #fff;
}

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

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: #fff;
}

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

.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: #fff;
}

.btn-outline-success {
  color: #198754;
  border-color: #198754;
  background-color: transparent;
}

.btn-outline-success:hover {
  background-color: #198754;
  color: #fff;
}

.btn-outline-warning {
  color: #ffc107;
  border-color: #ffc107;
  background-color: transparent;
}

.btn-outline-warning:hover {
  background-color: #ffc107;
  color: #212529;
}

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

.btn-outline-danger:hover {
  background-color: #dc3545;
  color: #fff;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn-group {
  display: inline-flex;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-radius: 0.375rem 0 0 0.375rem;
}

.btn-group .btn:last-child {
  border-radius: 0 0.375rem 0.375rem 0;
}

.btn-group .btn:only-child {
  border-radius: 0.375rem;
}

/* Bootstrap Icons */
.bi {
  font-family: "bootstrap-icons";
}

/* Tabelas responsivas */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #333;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.075);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

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

/* Utilities */
.text-center {
  text-align: center !important;
}

.text-end {
  text-align: right !important;
}

.text-muted {
  color: #6c757d !important;
}

.text-primary {
  color: #0d6efd !important;
}

.text-success {
  color: #198754 !important;
}

.text-info {
  color: #0dcaf0 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-danger {
  color: #dc3545 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.me-1 {
  margin-right: 0.25rem !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.d-block {
  display: block !important;
}

.d-flex {
  display: flex !important;
}

.flex-fill {
  flex: 1 1 auto !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

/* Grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.g-3 > * {
  padding: 0.5rem;
}

.g-4 > * {
  padding: 0.75rem;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
}

@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 576px) {
  .flex-sm-row {
    flex-direction: row !important;
  }
  
  .align-items-sm-center {
    align-items: center !important;
  }
}

@media (max-width: 575px) {
  .flex-column {
    flex-direction: column !important;
  }
}

/* Modais Bootstrap-like */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1055;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.fade {
  transition: opacity 0.15s linear;
}

.modal.show {
  display: block;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem;
  pointer-events: none;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: 500;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 1rem;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  border-bottom-right-radius: calc(0.3rem - 1px);
  border-bottom-left-radius: calc(0.3rem - 1px);
}

.btn-close {
  padding: 0.25rem;
  background: transparent;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.5;
  cursor: pointer;
}

.btn-close:hover {
  opacity: 0.75;
}

/* Formulários */
.form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  appearance: none;
}

.form-select-sm {
  padding: 0.25rem 1.75rem 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-control-plaintext {
  display: block;
  width: 100%;
  padding: 0.375rem 0;
  margin-bottom: 0;
  line-height: 1.5;
  color: #212529;
  background-color: transparent;
  border: solid transparent;
  border-width: 1px 0;
}

/* Progress bars */
.progress {
  display: flex;
  height: 1rem;
  overflow: hidden;
  font-size: 0.75rem;
  background-color: #e9ecef;
  border-radius: 0.25rem;
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: #0d6efd;
  transition: width 0.6s ease;
}

/* Alertas */
.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

.alert-dismissible {
  padding-right: 3rem;
}

.position-fixed {
  position: fixed !important;
}

/* Supplier Avatar */
.supplier-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

/* Input groups */
.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.input-group > .form-control {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}

.input-group > .form-control:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group > .btn:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Responsividade adicional */
@media (max-width: 475px) {
  .mobile-card-actions {
    flex-direction: column;
  }
  
  .mobile-card-actions .btn {
    margin-bottom: 0.5rem;
  }
  
  .mobile-card-actions .btn:last-child {
    margin-bottom: 0;
  }
}
