:root {
  --primary-color: #0b4f6c;
  --primary-dark: #083b4f;
  --accent-color: #f5a623;
  --surface-color: #ffffff;
  --surface-muted: #f4f6f9;
  --text-color: #1f2933;
  --text-muted: #5f6c7b;
  --border-color: rgba(143, 155, 179, 0.35);
  --shadow-soft: 0 12px 30px rgba(13, 30, 53, 0.1);
}

html, body {
  height: 100%;
}

body {
  background: linear-gradient(180deg, #dbe6f6 0%, #f2f7fb 35%, #ffffff 100%);
  color: var(--text-color);
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  margin: 0;
}

.page-wrapper {
  min-height: calc(100vh - 64px);
  padding: 2.5rem 0 3rem;
}

.navbar {
  background: rgba(8, 59, 79, 0.92) !important;
  box-shadow: 0 4px 18px rgba(8, 59, 79, 0.35);
  backdrop-filter: blur(12px);
}

.navbar .navbar-brand {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar .nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85) !important;
}

main.container {
  max-width: 1180px;
}

.form-card,
.dashboard-card,
.listing-card {
  background: var(--surface-color);
  border-radius: 18px;
  border: 1px solid rgba(8, 59, 79, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem;
}

.section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
}

.form-section {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--surface-muted);
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 600;
  color: var(--primary-dark);
}

.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid rgba(90, 109, 128, 0.35);
  padding: 0.6rem 0.85rem;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(11, 79, 108, 0.15);
}

.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 12px;
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  box-shadow: 0 12px 25px rgba(11, 79, 108, 0.22);
}

.btn-secondary,
.btn-outline-light {
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

.table-wrapper {
  background: var(--surface-color);
  border-radius: 18px;
  border: 1px solid rgba(8, 59, 79, 0.08);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.table {
  margin-bottom: 0;
}

.auth-wrapper {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 1rem 3rem;
  background: linear-gradient(180deg, rgba(8, 59, 79, 0.12) 0%, rgba(255, 255, 255, 0) 60%);
}

.auth-hero {
  text-align: center;
  max-width: 480px;
  color: var(--primary-dark);
  margin-top: 2rem;
}

.auth-hero img {
  max-width: 300px;
  margin-bottom: 1.5rem;
}

.auth-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.auth-hero p {
  font-size: 1rem;
  color: rgba(8, 59, 79, 0.75);
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface-color);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 35px rgba(8, 59, 79, 0.15);
  padding: 2.75rem 2.5rem;
  border-top: 4px solid var(--primary-color);
}

.auth-card h2 {
  font-weight: 600;
  color: var(--primary-dark);
}

.badge-pill {
  background: rgba(8, 59, 79, 0.12);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
}

.image-preview-wrapper {
  background: rgba(8, 59, 79, 0.05);
  border: 1px dashed rgba(8, 59, 79, 0.4);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview-wrapper.has-image {
  border-style: solid;
  background: rgba(8, 59, 79, 0.1);
}

.image-preview {
  max-width: 100%;
  max-height: 220px;
  border-radius: 12px;
}

.image-preview-placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.image-preview-wrapper.has-image .image-preview-placeholder {
  display: none;
}

.custom-file-input input[type="file"] {
  display: none;
}

.custom-file-input label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 12px;
  border: 1px dashed rgba(11, 79, 108, 0.4);
  color: var(--primary-dark);
  font-weight: 600;
  cursor: pointer;
  background: rgba(11, 79, 108, 0.08);
  transition: all 0.2s ease;
}

.custom-file-input label:hover {
  background: rgba(11, 79, 108, 0.16);
}

@media (max-width: 992px) {
  .form-card,
  .listing-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .form-card,
  .listing-card {
    padding: 1.75rem;
  }
  .form-section {
    padding: 1.25rem;
  }
  .auth-card {
    padding: 2rem 1.5rem;
  }
}
