/* Global styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    height: 100vh;
    margin: 0;
}

header {
	padding: 30px;
	background-color: #f1f2f3;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

form,
.card {
    background-color: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 340px;
    max-width: 90%;
    box-sizing: border-box;
}

form small {
    color: #999;
}

label {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

select {
    width: 100%;
    padding: 10px;
    margin-bottom: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: white;
    /* Set background color to white */
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 12px;
    /* Adjust the size of the arrow */
}

/* Optional: change border color when focused */
select:focus {
    outline: none;
    border-color: #007bff;
}

select::-ms-expand {
    display: none;
    /* Remove default IE/Edge dropdown arrow */
}

.hidden {
    display: none;
}

.user-filter {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 156px;
    margin: 12px 0;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="submit"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

input[type="checkbox"] {
    margin-right: 8px;
}

br {
    clear: both;
}

aside.form-meta {
    white-space: nowrap;
    padding: 12px 0 0;
    color: #888;
}


/* General table styling */
table {
    width: 90%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    box-sizing: border-box;
}

/* Table header styling */
th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Striped rows */
tr:nth-child(odd) {
    background-color: #f9f9f9;
    /* Light grey for odd rows */
}

/* Table header background */
th {
    background-color: #4CAF50;
    /* Green background */
    color: white;
}

/** SUPER ADMIN NAV */
nav.nav-a ul{
    list-style:none;
    margin:0;
    padding:0;
}

nav.nav-a li{
    list-style:none;
    display:inline-block;
    position: relative;
    background-color:black;
}

nav.nav-a li a{
    color:#fff;
    padding:6px 12px;
    display: inline-block;
}

nav.nav-a ul.sub-menu{
    display:none;
    width:200px;
    background-color:black;
    padding-bottom:4px;
}

nav.nav-a ul.sub-menu li{
    display: block;
    padding:4px 4px 0;
}

nav.nav-a ul.sub-menu a{
    color:#fff;
}

nav.nav-a > ul > li:hover ul.sub-menu{
    display:block;
    position:absolute;
}

.alert.alert-warning {
	color: #664d03;
	background-color: #fff3cd;
	border-color: #ffecb5;
    margin:15px 0 0;
    padding:8px 16px;
}


form .choices__inner {
	min-height: auto;
}

form .choices {
	width: 94%;
	overflow: visible;
	margin-bottom: 0;
}

.copy-icon{
    cursor:copy;
}


/* Responsive styling */
@media (max-width: 768px) {

    table,
    th,
    td {
        display: block;
    }

    th {
        text-align: center;
    }

    td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    td:before {
        content: attr(data-label);
        /* Adding a label to each cell */
        position: absolute;
        left: 10px;
        font-weight: bold;
    }

    tr {
        margin-bottom: 15px;
        display: block;
    }

    th,
    td {
        border: none;
    }
}


/* RACE DAY TABS */
.tabs {
    display: flex;
    flex-direction: column;
    width: 80%;
    font-family: sans-serif;
  }

  .tab-labels {
    display: flex;
    cursor: pointer;
  }

  .tab-labels label {
    padding: 10px 20px;
    background: #ddd;
    margin-right: 2px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
  }

  input[type="radio"] {
    display: none;
  }

  .tab-content {
    border: 1px solid #ccc;
    border-top: none;
    padding: 20px;
    display: none;
  }

  /* Show content when radio is checked */
  #Monday-tab:checked ~ .content #Monday,
  #Tuesday-tab:checked ~ .content #Tuesday,
  #Wednesday-tab:checked ~ .content #Wednesday,
  #Thursday-tab:checked ~ .content #Thursday,
  #Friday-tab:checked ~ .content #Friday {
    display: block;
  }

  /* Highlight active tab */
  #Monday-tab:checked ~ .tab-labels label[for="Monday-tab"],
  #Tuesday-tab:checked ~ .tab-labels label[for="Tuesday-tab"],
  #Wednesday-tab:checked ~ .tab-labels label[for="Wednesday-tab"],
  #Thursday-tab:checked ~ .tab-labels label[for="Thursday-tab"],
  #Friday-tab:checked ~ .tab-labels label[for="Friday-tab"] {
    background: #fff;
    border-bottom: 1px solid white;
  }
  /* END RACE DAY TABS */