/* EP Cargo Brand Colors */
:root {
  --ep-cargo-red: #A3182E;
  --ep-cargo-red-dark: #7d1222;
  --ep-cargo-red-light: #c91e3a;
  --ep-cargo-gray: #666666;
  --ep-cargo-gray-light: #999999;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--ep-cargo-red);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Custom styles for POD View application */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.card {
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.photo-thumbnail {
    transition: transform 0.2s;
    cursor: pointer;
}

.photo-thumbnail:hover {
    transform: scale(1.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(163, 24, 46, 0.075);
}

.badge {
    font-size: 0.75em;
}

.carousel-item img {
    border-radius: 0.375rem;
}

.alert {
    border: none;
    border-radius: 0.375rem;
}

.btn-group .btn {
    border-radius: 0.375rem;
}

.btn-group .btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group .btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Loading spinner for images */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--ep-cargo-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* EP Cargo Primary Button Styles */
.btn-primary {
    background-color: var(--ep-cargo-red);
    border-color: var(--ep-cargo-red);
}

.btn-primary:hover {
    background-color: var(--ep-cargo-red-dark);
    border-color: var(--ep-cargo-red-dark);
}

.btn-primary:focus, .btn-primary:active {
    background-color: var(--ep-cargo-red-dark);
    border-color: var(--ep-cargo-red-dark);
}

/* Navbar Branding */
.navbar-brand {
    color: var(--ep-cargo-red) !important;
    font-weight: bold;
}

/* Link Colors */
a {
    color: var(--ep-cargo-red);
}

a:hover {
    color: var(--ep-cargo-red-dark);
}