/**
 * Pro Tourny — premium datetime-local inputs (start tournament + dashboard).
 */
.pt-datetime-input,
input.pt-datetime-input[type="datetime-local"],
.form-group input[type="datetime-local"].pt-datetime-input,
.draws-field input[type="datetime-local"].pt-datetime-input {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  color-scheme: light;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pt-datetime-input:hover,
input.pt-datetime-input[type="datetime-local"]:hover {
  border-color: #94a3b8;
  background: #fff;
}

.pt-datetime-input:focus,
input.pt-datetime-input[type="datetime-local"]:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.pt-datetime-input::-webkit-calendar-picker-indicator,
input.pt-datetime-input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 0.35rem;
  margin-right: 0.1rem;
  border-radius: 8px;
  opacity: 0.88;
}

.pt-datetime-input::-webkit-calendar-picker-indicator:hover,
input.pt-datetime-input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  background: #eff6ff;
  opacity: 1;
}

.pt-datetime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

@media (max-width: 720px) {
  .pt-datetime-grid {
    grid-template-columns: 1fr;
  }
}

.pt-datetime-hint {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #64748b;
}

.pt-datetime-hint strong {
  color: #334155;
  font-weight: 600;
}

/* Split date + time (start tournament + dashboard) */
.pt-datetime-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9.25rem, 10.75rem);
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  row-gap: 0.35rem;
  align-items: stretch;
}

.pt-datetime-split-cell {
  display: contents;
}

.pt-datetime-split-cell:first-child .pt-datetime-split-label {
  grid-column: 1;
  grid-row: 1;
}

.pt-datetime-split-cell:first-child .pt-datetime-date {
  grid-column: 1;
  grid-row: 2;
}

.pt-datetime-split-cell:last-child .pt-datetime-split-label {
  grid-column: 2;
  grid-row: 1;
}

.pt-datetime-split-cell:last-child .pt-datetime-time {
  grid-column: 2;
  grid-row: 2;
}

.pt-datetime-split-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
  align-self: end;
  min-height: 1rem;
}

.pt-datetime-date,
.pt-datetime-time {
  width: 100%;
  box-sizing: border-box;
  height: 2.875rem;
  min-height: 2.875rem;
  margin: 0;
  padding: 0 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.25;
  color-scheme: light;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pt-datetime-time {
  padding-right: 2.25rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.72rem center;
  background-size: 1.125rem;
  cursor: pointer;
}

.pt-datetime-date:hover,
.pt-datetime-time:hover {
  border-color: #94a3b8;
  background-color: #fff;
}

.pt-datetime-date:focus,
.pt-datetime-time:focus {
  outline: none;
  border-color: #2563eb;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.pt-datetime-date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 8px;
  opacity: 0.9;
}

.pt-datetime-date::-webkit-calendar-picker-indicator:hover {
  background: #eff6ff;
}

.st-datetime-field {
  gap: 0.55rem;
}

.pt-datetime-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.pt-datetime-quick-btn {
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, 0.16);
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pt-datetime-quick-btn:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.pt-datetime-quick-btn.is-active {
  border-color: #3b82f6;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.14);
}

.pt-datetime-quick-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .pt-datetime-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .pt-datetime-split-cell:first-child .pt-datetime-split-label {
    grid-column: 1;
    grid-row: 1;
  }

  .pt-datetime-split-cell:first-child .pt-datetime-date {
    grid-column: 1;
    grid-row: 2;
  }

  .pt-datetime-split-cell:last-child .pt-datetime-split-label {
    grid-column: 1;
    grid-row: 3;
  }

  .pt-datetime-split-cell:last-child .pt-datetime-time {
    grid-column: 1;
    grid-row: 4;
  }
}
