
/* Enhanced visibility for disabled fields */
input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  background-color: #e9ecef !important;
  /* Light gray for contrast */
  color: #495057 !important;
  /* Darker text for readability */
  border: 1.5px solid #b0b0b0 !important;
  opacity: 1 !important;
  /* Remove default opacity */
  font-style: italic;
  cursor: not-allowed;
}

/* Optional: Add a lock icon background for disabled fields (requires a lock icon SVG or font) */
/*
input:disabled, select:disabled, textarea:disabled {
  background-image: url('data:image/svg+xml;utf8,<svg ...>');
  background-repeat: no-repeat;
  background-position: right 0.5em center;
  padding-right: 2em;
}
*/
@media only screen and (max-width: 600px) {
  .hide-on-narrow {
    display: none !important;
  }
}

@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html,
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, white 0%, #f0f3f7 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #333;
}

a,
.btn-link {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Modern Button Styles */
.btn {
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #1b6ec2;
  color: #fff;
}

/* Add border to Bootstrap btn-info */
.btn-info {
  border: 2px solid #117a8b;
}

.btn-primary:hover:not(:disabled) {
  background-color: #1461b1;
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #5a6268;
}

.btn-outline-primary {
  background-color: transparent;
  border: 2px solid #1b6ec2;
  color: #1b6ec2;
}

.btn-outline-primary:hover:not(:disabled) {
  background-color: #1b6ec2;
  color: #fff;
}

.btn-danger {
  background-color: #dc3545;
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background-color: #c82333;
}

.btn-success {
  background-color: #28a745;
  color: #fff;
}

.btn-success:hover:not(:disabled) {
  background-color: #218838;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  min-height: 32px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  min-height: 48px;
  font-size: 1.125rem;
}

.content {
  padding-top: 1.1rem;
}

/* Modern Input Styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
  border-radius: 6px;
  border: 2px solid #d0d0d0;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  background-color: #fff;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
textarea:hover,
select:hover {
  border-color: #a0a0a0;
  background-color: #fafafa;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #1b6ec2;
  box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.1);
  background-color: #fff;
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="number"]:disabled,
input[type="date"]:disabled,
input[type="time"]:disabled,
textarea:disabled,
select:disabled {
  background-color: #f0f0f0;
  border-color: #ddd;
  color: #999;
  cursor: not-allowed;
  opacity: 0.7;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
  color: #999;
  opacity: 0.8;
}

/* Validation states */
.valid.modified:not([type=checkbox]) {
  border-color: #26b050;
  box-shadow: 0 0 0 3px rgba(38, 176, 80, 0.1);
}

.invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.validation-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.labelIndent {
  min-width: 180px;
}

.labelIndent100fixed {
  min-width: 100px;
  max-width: 100px;
}

.labelIndent100 {
  min-width: 100px;
}

.strokeLength {
  max-width: 65px;
}

.show-on-narrow {
  display: none;
}

@media only screen and (max-width: 600px) {
  .hide-on-narrow {
    display: none;
  }
}

@media only screen and (max-width: 600px) {
  .show-on-narrow {
    display: block;
  }
}

@media only screen and (max-width: 500px) {
  .hide-on-narrow-500 {
    display: none;
  }
}

tr.resultgrid td {
  border: 1px solid black;
  text-align: center;
  min-width: 30px;
  min-height: 30px;
  height: 33px;
}

tr.resultheader td {
  border: 1px solid black;
  background-color: aquamarine;
  text-align: center;
  min-width: 30px;
}

table.resultheader tr {
  border: 1px solid black;
  background-color: aliceblue;
  text-align: center;
  min-width: 30px;
}

tr.resultheader-italic td {
  border: 1px solid black;
  background-color: lightgray;
  text-align: center;
  min-width: 30px;
  font-style: italic;
}

table.resultheader-italic tr {
  border: 1px solid black;
  background-color: lightgray;
  text-align: center;
  min-width: 30px;
  font-style: italic;
}

td.resulttotal {
  font-weight: bold;
}
td.resulttotalgold {
  font-weight: bold;
  color: red;
}

td.resulttotalitalic {
  font-style: italic;
}

tr.noBorder td {
  border: 0;
}

tr.noBorderMinorPadding td {
  border: 0;
  padding: 0.1em;
  padding-left: 10px;
  padding-right: 10px;
}

tr.noBorderMinorTopBottomPadding td {
  border: 0;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
}

tr.noBorderMinorTopBPadding td {
  border: 0;
  padding-top: 0.2em;

}

tr.minorTopBottomPadding td {
  border: 0;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
}

tr.bottomBorderMinorPadding td {
  border: 1px;
  border-bottom-style: solid;
  padding: 0.1em;
  padding-left: 10px;
  padding-right: 10px;
}

/* site.css */
.tdmin100 {
  min-width: 100px;
}

.inputNoPaddingCentered {
  max-width: 100px;
  padding: 0.1em;
  text-align: center;
}

.form-group {
  margin-bottom: 0.3rem;
}

.tablebordered {
  border: 2px solid green;
  padding: 20px;
}

.eagle_old {
  color: black;
  background-color: transparent;
}

.eagle {
  border-radius: 50%;
  background-color: transparent;
  /* Adjust the background color as needed */
  border: 2px solid #000;
  /* Adjust the border color and width as needed */
  color: red;
}

.birdie {
  border-radius: 50%;
  background-color: transparent;
  /* Adjust the background color as needed */
  border: 1px solid red;
  /* Adjust the border color and width as needed */
  color: red;
}

.par {
  background-color: transparent;
  /* Adjust the background color as needed */
  color: green;
  /* Adjust the text color as needed */
  font-weight: bold;
}

.bogey {
  background-color: transparent;
  /* Adjust the background color as needed */
  border-bottom: 2px solid blue;
  /* Only bottom border */
  border-left: none;
  border-right: none;
  border-top: none;
  color: blue;
  /* Adjust the text color as needed */
}

.doublebogey {
  background-color: transparent;
  /* Adjust the background color as needed */
  border-bottom: 3px double brown;
  /* Only double bottom border */
  border-left: none;
  border-right: none;
  border-top: none;
  color: brown;
  /* Adjust the text color as needed */
}

.triplebogey {
  background-color: transparent;
  /* Adjust the background color as needed */
  border-bottom: 3px double black;
  /* Only double bottom border */
  border-left: none;
  border-right: none;
  border-top: none;
  color: black;
  /* Adjust the text color as needed */
}

.holeresult {
  text-align: center;
  display: inline-block;
  width: 23px;
  height: 24px;
  line-height: 14px;
  font-weight: normal;
  font-size: medium;
  padding: 0.2em 0em;
}

.holeresultbold {
  font-weight: bold;
  text-decoration: underline;
}

.player-scores {
  display: block;
  /* Ensure the div behaves like a block element */
  overflow: visible;
  /* Allow content to overflow */
}

.noresult {
  color: red;
  background-color: transparent;
}

/* Modern Checkbox & Radio Styles */
input[type="checkbox"],
input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: #1b6ec2;
  transition: all 0.2s ease;
  vertical-align: middle;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover {
  transform: scale(1.1);
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  outline: 2px solid #1b6ec2;
  outline-offset: 2px;
}

input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Checkbox/Radio label styling */
label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

label:hover {
  color: #1b6ec2;
}

input[type="checkbox"]:disabled~label,
input[type="radio"]:disabled~label {
  opacity: 0.6;
  cursor: not-allowed;
  color: #999;
}

.divminimized {
  /* display: none; */
  height: 10px;
}

.alertshort alert {
  display: inline-block;
}

/* app.css */
.right-aligned-buttons {
  float: right;
}


.rightmostbutton-container {

  max-width: 450px;
}

.disabled-table input {
  pointer-events: none;
  opacity: 0.5;
}

.inline-form-group {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  /* Optional: Adds space between form groups */
}

.inline-form-group label {
  margin-right: 0.5rem;
  /* Optional: Adds space between label and input */

}

/* Custom Alert Classes for TournamentApp */
.my-alert-success {
  background-color: #e6f9ed;
  color: #218838;
  border: 1px solid #218838;
  border-radius: 6px;
  padding: 0.5em 0.75em;
  margin-bottom: 1em;
  font-weight: 500;
}

.my-alert-danger {
  background-color: #fbeaea;
  color: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 6px;
  padding: 0.5em 0.75em;
  margin-bottom: 1em;
  font-weight: 500;
}

.my-alert-warning {
  background-color: #fffbe6;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 6px;
  padding: 0.5em 0.75em;
  margin-bottom: 1em;
  font-weight: 500;
}