body {
  background-color: #f5f5f5;
}
.navbar-brand {
  font-weight: 600;
  font-size: 1.5rem;
  color: #1a3b5d;
}
.main-container {
  padding: 20px;
}
.card {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}
.card-header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 15px 20px;
}
.card-title {
  margin-bottom: 0;
  color: #1a3b5d;
  font-weight: 600;
}
.card-subtitle {
  color: #6c757d;
  font-size: 0.9rem;
}
.search-container {
  position: relative;
  margin-bottom: 20px;
}
.search-icon {
  position: absolute;
  left: 15px;
  top: 12px;
  color: #6c757d;
}
.search-input {
  padding-left: 40px;
  border-radius: 25px;
}
.refresh-btn {
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.table th {
  font-weight: 600;
  color: #495057;
}
.status-badge {
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 500;
}
.details-btn {
  color: #1a3b5d;
  text-decoration: none;
  font-weight: 500;
}
.details-btn:hover {
  text-decoration: underline;
}
.footer {
  background-color: #1a3b5d;
  color: white;
  padding: 20px 0;
  margin-top: 40px;
}
.footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}
.footer a:hover {
  text-decoration: underline;
}
.nav-tabs .nav-link {
  color: #495057;
  font-weight: 500;
  border: none;
  padding: 12px 20px;
}
.nav-tabs .nav-link.active {
  color: #1a3b5d;
  font-weight: 600;
  border-bottom: 3px solid #1a3b5d;
  background-color: transparent;
}
.nav-tabs {
  border-bottom: 1px solid #dee2e6;
}
.warranty-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}
.warranty-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.warranty-card .label {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.85rem;
}
.warranty-card .value {
  font-weight: 500;
  color: #212529;
}
.warranty-card .card-divider {
  height: 1px;
  background-color: #eee;
  margin: 10px 0;
}
.register-btn {
  background-color: #1a3b5d;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: 500;
}
.register-btn:hover {
  background-color: #142e48 !important;
  color: white !important;
}
.form-section {
  margin-bottom: 30px;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.form-section-title {
  font-weight: 600;
  color: #1a3b5d;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.form-label {
  font-weight: 500;
  color: #495057;
}
.table-responsive {
  display: block;
}

/* Hide table on mobile and show cards instead */
@media (max-width: 767.98px) {
  .table-responsive {
      display: none;
  }
  .mobile-cards {
      display: block;
  }
}

/* Hide cards on desktop and show table instead */
@media (min-width: 768px) {
  .mobile-cards {
      display: none;
  }
  .table-responsive {
      display: block;
  }
}

/* Photo upload styles */
.photo-upload-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}
.photo-preview {
  width: 120px;
  height: 120px;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
}
.photo-preview.has-image {
  border: 2px solid #1a3b5d;
}
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-preview .upload-icon {
  font-size: 2rem;
  color: #6c757d;
}
.photo-preview .remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #dc3545;
  font-size: 0.8rem;
  z-index: 2;
}
.photo-preview .remove-btn:hover {
  background-color: rgba(255, 255, 255, 1);
}
.photo-input {
  display: none;
}
.set-date-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.8rem;
}
.set-date-btn:hover {
  background-color: #5a6268;
}

/* Modal styles */
.photo-modal .modal-content {
  border-radius: 10px;
  overflow: hidden;
}
.photo-modal .modal-body {
  padding: 0;
}
.photo-modal img {
  width: 100%;
  height: auto;
}



/* Print styles */
.print-btn {
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-weight: 500;
  margin-right: 10px;
}
.print-btn:hover {
  background-color: #218838;
  color: white;
}

.print-preview {
  display: none;
}

/* Action buttons */
.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}
.action-btn:last-child {
  margin-right: 0;
}
.action-btn.edit {
  background-color: #ffc107;
}
.action-btn.edit:hover {
  background-color: #e0a800;
}
.action-btn.print {
  background-color: #28a745;
}
.action-btn.print:hover {
  background-color: #218838;
}
.action-btn.details {
  background-color: #1a3b5d;
}
.action-btn.details:hover {
  background-color: #142e48;
}

/* Pagination styles */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}
.pagination-info {
  color: #6c757d;
  font-size: 0.9rem;
}
.pagination {
  margin-bottom: 0;
}
.pagination .page-item .page-link {
  color: #1a3b5d;
  border-color: #dee2e6;
}
.pagination .page-item.active .page-link {
  background-color: #1a3b5d;
  border-color: #1a3b5d;
  color: white;
}
.pagination .page-item.disabled .page-link {
  color: #6c757d;
}



/* Empty state styles */
.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  margin: 20px 0;
}
.empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #f0f4f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.empty-state-icon i {
  font-size: 2.5rem;
  color: #1a3b5d;
}
.empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a3b5d;
  margin-bottom: 10px;
}
.empty-state-description {
  color: #6c757d;
  max-width: 500px;
  margin-bottom: 25px;
}
.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.action-buttons .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
}
.action-buttons .btn img,
.action-buttons .btn i {
  font-size: 1rem;
}


/* Details modal styles */
.details-modal .modal-dialog {
    max-width: 800px;
}
.details-modal .modal-content {
    border-radius: 10px;
    overflow: hidden;
}
.details-modal .modal-header {
    background-color: #1a3b5d;
    color: white;
    border-bottom: none;
}
.details-modal .modal-title {
    font-weight: 600;
}
.details-modal .modal-body {
    padding: 0;
}
.details-section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}
.details-section:last-child {
    border-bottom: none;
}
.details-section-title {
    font-weight: 600;
    color: #1a3b5d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.details-section-title i {
    margin-right: 10px;
    width: 24px;
    text-align: center;
}
.details-row {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
}
.details-label {
    font-weight: 500;
    color: #6c757d;
    width: 180px;
    margin-right: 10px;
}
.details-value {
    font-weight: 400;
    color: #212529;
    flex: 1;
}
.details-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.details-photo {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
}
.details-photo:hover {
    border-color: #1a3b5d;
    transform: scale(1.05);
}
.details-modal .modal-footer {
    border-top: none;
    padding: 15px 20px;
}
.details-modal .btn-edit {
    background-color: #ffc107;
    color: #212529;
}
.details-modal .btn-print {
    background-color: #28a745;
    color: white;
}
.details-modal .btn-close-modal {
    background-color: #6c757d;
    color: white;
}

/* Print-specific styles */
@media print {
  body * {
      visibility: hidden;
  }
  .print-container, .print-container * {
      visibility: visible;
  }
  .print-container {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
  }
  .no-print {
      display: none !important;
  }
  .print-header {
      text-align: center;
      margin-bottom: 20px;
      padding-bottom: 20px;
      border-bottom: 1px solid #ddd;
  }
  .print-section {
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 1px solid #eee;
  }
  .print-section-title {
      font-weight: 600;
      margin-bottom: 15px;
      color: #1a3b5d;
  }
  .print-row {
      display: flex;
      margin-bottom: 10px;
  }
  .print-label {
      font-weight: 600;
      width: 150px;
      color: #495057;
  }
  .print-value {
      flex: 1;
  }
  .print-photos {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 10px;
  }
  .print-photo {
      width: 100px;
      height: 100px;
      border: 1px solid #ddd;
      object-fit: cover;
  }
  .print-footer {
      margin-top: 30px;
      text-align: center;
      font-size: 0.9rem;
      color: #6c757d;
  }
  .page-break {
      page-break-before: always;
  }
}