/* Custom styles for Receipt Submission Portal */

/* Main color overrides */
:root {
  --aps-primary: #0056b3;
  --aps-secondary: #6c757d;
  --aps-success: #28a745;
  --aps-info: #17a2b8;
  --aps-warning: #ffc107;
  --aps-danger: #dc3545;
}

/* Page container */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Remove purple line in header */
.navbar::after {
  display: none !important;
}

main {
  flex: 1;
}

/* Custom card styles */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
}

.card-header {
  font-weight: 500;
}

/* File upload */
.drag-active {
  background-color: rgba(0, 86, 179, 0.1) !important;
  border-color: var(--aps-primary) !important;
}

/* Custom button styles */
.btn-primary {
  background-color: var(--aps-primary);
  border-color: var(--aps-primary);
}

.btn-primary:hover {
  background-color: #004494;
  border-color: #004494;
}

/* File item */
.file-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  display: inline-block;
}

/* Navbar customization */
.navbar-brand {
  font-weight: 500;
}

/* Home button styling */
.nav-item .btn-primary.nav-link {
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-right: 10px;
}

.nav-item .btn-primary.nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Footer customization */
footer {
  margin-top: auto;
}

/* File Preview */
.file-preview {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  margin-top: 10px;
  background-color: rgba(0, 0, 0, 0.05);
}

.file-preview:empty {
  display: none;
}

/* Image Preview Styling */
.image-preview-container {
  transition: all 0.3s ease;
  border-radius: 5px;
  overflow: hidden;
}

.image-preview-container:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.preview-image-container {
  flex: 0 0 auto;
  max-width: 200px;
  margin: 5px;
  padding: 5px;
  border: 1px solid rgba(222, 226, 230, 0.3);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.preview-image-container:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--aps-info);
}

.image-preview-row {
  transition: background-color 0.3s ease;
}

.toggle-preview, .toggle-batch-preview {
  transition: all 0.2s ease;
}

.toggle-preview:focus, .toggle-batch-preview:focus {
  box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Custom small file badge */
.file-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* CSP-compliant styles (moved from inline) */
.hidden-element {
  display: none;
}

.preview-image {
  max-height: 300px;
  margin: 0 auto;
  display: block;
}

.preview-image-small {
  max-height: 200px;
  max-width: 100%;
}

.table-header-30 {
  width: 30%;
}

.select-height-auto {
  height: auto;
}

.progress-height {
  height: 20px;
}

.hidden-file-input {
  display: none;
}
