/* Fonts */
@font-face {
  font-family: "Ford F-1 Regular Custom";
  src: url("https://static.ucraft.net/fs/ucraft/userFiles/fordperformance/fonts/FordF-1-Regular.woff?v=1767011013")
    format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Ford F-1 Semibold Custom";
  src: url("https://static.ucraft.net/fs/ucraft/userFiles/fordperformance/fonts/FordF-1-Semibold.woff?v=1767011018")
    format("opentype");
  font-display: swap;
}

/* Variables */
:root {
  --blue: #0072ce;
  --dark-blue: #020957;
  --blue-600: #005fa3;
  --bg: #f6f8fb;
  --border: #dce1e7;
  --card: #fff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --text: #0f172a;
  --muted: #6b7280;
}

/* Layout */
body {
  font-family: "Ford F-1 Regular Custom";
  background: var(--bg);
  font-weight: 100;
  margin: 0;
  color: #0f172a;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html {
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

body.fpc-page-loading,
body.fpc-page-ready,
body.fpc-page-leaving {
  overflow-x: hidden;
}

#fpcPageMount {
  min-height: 1px;
}

body.fpc-page-loading #fpcPageMount,
body.fpc-page-leaving #fpcPageMount {
  opacity: 0;
  transform: translateY(10px);
}

body.fpc-page-ready #fpcPageMount {
  opacity: 1;
  transform: none;
  will-change: auto;
}

body.fpc-page-loading #fpcPageMount,
body.fpc-page-leaving #fpcPageMount {
  transition: opacity 260ms ease, transform 260ms ease;
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  html,
  body,
  #fpcPageMount,
  .container,
  .fullpage,
  .card,
  main,
  section,
  div,
  [style*="overflow: auto"],
  [style*="overflow:auto"],
  [style*="overflow-x: auto"],
  [style*="overflow-x:auto"],
  [style*="overflow-y: auto"],
  [style*="overflow-y:auto"] {
    scroll-behavior: auto !important;
  }

  body.fpc-page-loading #fpcPageMount,
  body.fpc-page-ready #fpcPageMount,
  body.fpc-page-leaving #fpcPageMount {
    transition: none !important;
    animation: none !important;
  }
}

* {
  -webkit-tap-highlight-color: transparent;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body,
#fpcPageMount,
.container,
.fullpage,
.card,
main,
section,
div {
  -webkit-overflow-scrolling: touch;
}

body,
#fpcPageMount,
.container,
.fullpage,
.card,
main,
section,
div,
[style*="overflow: auto"],
[style*="overflow:auto"],
[style*="overflow-x: auto"],
[style*="overflow-x:auto"],
[style*="overflow-y: auto"],
[style*="overflow-y:auto"] {
  scroll-behavior: smooth;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

table,
th,
td {
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge */
}

/* Typography */
h1,
h2,
label,
.btn {
  font-family: "Ford F-1 Semibold Custom";
}

h2 {
  font-size: 1.1rem;
  color: #374151;
  margin: 40px 0 16px 8px;
}

.container {
  max-width: 950px;
  margin: 50px auto;
  padding: 0 20px;
}

.fullpage {
  background: var(--bg);
  padding: 4rem 5rem;
  overflow: hidden;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 44px;
  border: 1px solid var(--border);
  overflow: hidden;
}

@media (max-width: 900px) {
  .card,
  .fullpage {
    padding: 20px;
  }
}

/* Form layout utilities */
.form-grid-2-desktop {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 20px;
}

.form-grid-2-desktop > .form-group {
  min-width: 0;
}

@media (min-width: 900px) {
  .form-grid-2-desktop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  line-height: 1;
  font-size: 14px;
}
.btn:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.btn.primary {
  padding: 10px 14px;
}
.btn.small {
  padding: 8px 12px;
  font-size: 0.92rem;
}
.btn.danger {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}
.btn.danger:hover {
  background: #ffe4e6;
}
.btn.ghost {
  background: #fff;
  border-color: var(--border);
  color: #0f172a;
}
.btn.delete {
  background: #fff;
  border-color: #fecaca;
  color: #b91c1c;
}
.btn.delete:hover {
  background: #fee2e2;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.btn-icon.delete {
  color: #a4a5a6;
  border: none;
  background: transparent;
}

.btn-icon.delete:hover {
  color: #dc2626;
  background: #fee2e2;
  border-color: #fca5a5;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.btn.primary {
  background: var(--dark-blue);
  color: #fff;
  border: none;
}
.btn.primary:hover {
  background: var(--blue);
}

.btn.secondary {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn.secondary:hover {
  background: var(--blue);
  color: #fff;
}

.btn.primary.is-saved {
  background: #dcfce7 !important;
  color: #166534 !important;
  border-color: #a7f3d0 !important;
}

.btn.primary.is-saved {
  animation: saveFade 250ms ease;
}

@keyframes saveFade {
  from {
    opacity: 0.35;
    transform: translateY(1px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn.primary:disabled {
  background: #e2e8f0 !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
  cursor: default !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1;
}

/* Vlaggen in landkolom */
.flag {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-block;
  vertical-align: middle;
}

.flag-wrap {
  width: 24px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.flag-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

/* ========== SAMENVATTING ========== */
.card.event-summary {
  position: relative;
}

.event-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.summary-content {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

.summary-left {
  min-width: 0;
  flex: 0 0 auto;
}

.summary-left img {
  display: block;
  max-width: 100%;
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.summary-right {
  flex: 1;
  min-width: 0;
  position: relative;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.summary-header h2 {
  font-size: 1.3rem;
  margin: 0;
  flex: 1;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* === badges rechtsboven === */
.summary-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.summary-badges .label,
.summary-badges .status {
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: capitalize;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* Labelkleuren */
.label.new {
  background: #fbe0e0;
  color: #b91c1c;
}
.label.last {
  background: #fef9c3;
  color: #92400e;
}
.label.sold {
  background: #e2e8f0;
  color: #334155;
}
.label.postponed {
  background: #e0f2fe;
  color: #0369a1;
}

/* Statuskleuren */
.status.online {
  background: #dcfce7;
  color: #166534;
}
.status.concept {
  background: #fef9c3;
  color: #854d0e;
}
.status.offline {
  background: #fee2e2;
  color: #991b1b;
}
.status.archived {
  background: #e2e8f0;
  color: #334155;
}

.summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: #475569;
  margin-top: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}

#summaryTime {
  margin-top: 6px;
  color: #64748b;
  font-size: 0.9rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .event-summary {
    display: block;
    padding: 16px;
  }
  .summary-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .summary-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .summary-badges {
    align-self: flex-start;
    justify-content: flex-start;
  }
  .summary-left img {
    max-height: 60px;
  }
}

/* FILE INPUT */
select,
select.input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  font-family: "Ford F-1 Regular Custom";
  font-size: 0.88rem;
  line-height: 1.25;
  background: #fff;
  color: #0f172a;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select:focus,
select.input:focus {
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus {
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  border-radius: 6px;
}

input[type="date"]::-webkit-datetime-edit-day-field::selection,
input[type="date"]::-webkit-datetime-edit-month-field::selection,
input[type="date"]::-webkit-datetime-edit-year-field::selection {
  background: rgba(15, 23, 42, 0.14);
  color: inherit;
}

input[type="file"].input {
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-family: "Ford F-1 Regular Custom";
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

input[type="file"].input:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

input[type="file"].input::file-selector-button {
  border: none;
  background: var(--dark-blue);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: "Ford F-1 Semibold Custom";
  font-size: 0.85rem;
  margin-right: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

input[type="file"].input::file-selector-button:hover {
  background: var(--blue);
}
