/* global.css - Foundation styles for the Bicycle Theft Hub */

:root {
  --primary-blue: #1c3aa9;
  --dark-navy: #0d0167;
  --police-red: #ff0000;
--bg-light: #fbfbfb;
  --text-gray: #636363;
  --white: #ffffff;
  --btn-gradient: linear-gradient(to right, #ff0000 0%, #0d0167 71%);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Arial", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-gray);
}

a {
  cursor: pointer;
}

/* Heading utilities */
.page-title {
  color: var(--dark-navy);
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 30px 0;
}

.section-title {
  color: var(--dark-navy);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 20px 0;
}

/* All input/select/textarea text is dark navy and bold; placeholders stay grey and normal weight */
input, select, textarea {
  color: #0d0167;
  font-weight: bold;
}
/* Override Chrome autofill styling which changes text colour and background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0d0167;
  -webkit-box-shadow: 0 0 0px 1000px white inset;
  font-weight: bold;
}
input::placeholder, textarea::placeholder {
  color: var(--text-gray);
  font-weight: normal;
}
/* Select showing its placeholder option (value="") appears grey and normal weight */
select:has(option[value=""]:checked) {
  color: var(--text-gray);
  font-weight: normal;
}
/* Options in the dropdown list are grey and normal weight */
option {
  color: var(--text-gray);
  font-weight: normal;
}
/* File inputs always show placeholder text — keep grey and normal weight */
input[type="file"] {
  color: var(--text-gray);
  font-weight: normal;
}
/* Date inputs start grey/normal until JS sets a value */
input[type="date"]:not([data-filled]) {
  color: var(--text-gray);
  font-weight: normal;
}

/* Gradient-bordered input field */
.input-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  background: var(--btn-gradient);
  padding: 2px;
  border-radius: 12px;
}


.inner-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  height: 48px;
}

.icon-box {
  background: #e0e0e0;
  width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #ccc;
}

.icon-box img { width: 20px; height: 20px; }

.inner-wrapper input {
  border: none;
  padding: 0 15px;
  flex: 1;
  font-size: 16px;
  outline: none;
  color: #0d0167;
  font-weight: bold;
}

.inner-wrapper input::placeholder {
  color: var(--text-gray);
  font-weight: normal;
}

.eye-icon { width: 22px; margin-right: 12px; cursor: pointer; opacity: 0.7; }

/* Report form rows — label left, input/value right */
.report-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
  position: relative;
}

.report-label {
  background: var(--dark-navy);
  color: var(--white);
  font-weight: bold;
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  min-width: 360px;
  text-align: center;
}

/* Editable input / select in a report row */
.report-input {
  flex: 1;
  border: 2px solid var(--dark-navy);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--dark-navy);
  outline: none;
}

select.report-input {
  appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"),
    linear-gradient(to bottom, #ff0000, #ff0000);
  background-repeat: no-repeat, no-repeat;
  background-position: right 8px center, right 0 top 0;
  background-size: 28px, 48px 100%;
  padding-right: 58px;
  cursor: pointer;
}

input[type="date"].report-input {
  appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"),
    linear-gradient(to bottom, #ff0000, #ff0000);
  background-repeat: no-repeat, no-repeat;
  background-position: right 8px center, right 0 top 0;
  background-size: 28px, 48px 100%;
  padding-right: 58px;
  cursor: pointer;
}

input[type="date"].report-input::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 48px;
  height: 100%;
  position: absolute;
  right: 0;
  cursor: pointer;
}

/* Read-only display value in a report row */
.report-value {
  flex: 1;
  border: 2px solid var(--dark-navy);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: bold;
  color: var(--dark-navy);
  background: var(--white);
}

.report-value.placeholder { color: #aaa; font-weight: normal; }
::placeholder { font-weight: normal; }

/* Child element — targets .report-label that is a direct child of .report-row */
.report-row > .report-label { text-align: center; }

/* Adjacent sibling element — targets .report-input immediately following a .report-label */
.report-label + .report-input { border-radius: 8px; }

.link-subtle {
  color: #636363;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}
.link-subtle:hover { color: #0d0167; }
