/* This contains styles specifically for the console (menu) layout */
.chooseEventForm {
    color: white;
    valign: center;
    font-size: 18px;
}

.hidden {
    display: none;
}

.cleared {
    clear: both;
}

.key-value-grid {
    display: grid;
    grid-template-columns: 35% 60%;
    grid-column-gap: 5%;
    grid-row-gap: .2em;
}

.key-value-grid dt, 
.key-value-grid label {
    text-align: right;
    font-weight: bold;
}

.key-value-grid label.error {
    grid-column: span 2;
    font-weight: normal;
    color: red;
    margin-bottom: .5em;
}

.key-value-grid dd {
    margin-left: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.switch-control {
    display: inline-block;
    position: relative;
    width: 4em;
    min-width: 4em;
    height: 1.6em;
    cursor: pointer;
}

.switch-control input {
    display: hidden;
    width: 0;
    height: 0;
}

.switch-control .slider {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: red;
    transition: .5s;
    padding: .2em;
    display: flex;
    justify-content: space-between;
    color: white;
    font-weight: bold;
}

.switch-control .slider:before {
    position: absolute;
    content: "";
    height: 1.2em;
    width: 1.6em;
    transition: .4s;
    background-color: white;
    display: block;
}

.switch-control input:checked + .slider {
    background-color: green;
}

.switch-control input:checked + .slider:before {
    transform: translateX(2em);
}

.add-button {
    padding: .5em;
    margin: 0 0 10px 5px;
    background-color: #3060be;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    min-width: 2.5em;
    max-width: 2.5em;
    transition: max-width .5s;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
}

.add-button:active {
    background-color: #678DDA;
}

.add-button.rounded {
    border-radius: 1.5em;
    border: 1px solid green;
}

.add-button .button-text:before {
    content: '+';
    margin-left: .5em;
    margin-right: 1em;
    font-size: 1em;
}

.add-button:hover,
.add-button:focus {
    max-width: 50%;
}

.card-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.gateway-card {
    width: calc(100% - 10px);
    margin: 5px;
}

@media screen and (min-width: 1024px) {
    .gateway-card {
        width: calc(33% - 10px);
    }
}

.gateway-card .ui-widget-header {
    margin: 0;
    padding: .5em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.gateway-card .ui-widget-header *:first-child {
    flex-basis: 80%;
}

.gateway-card .ui-widget-header button {
    height: 1.6em;
    text-transform: uppercase;
    margin-right: 0.5em;
}

.gateway-card .ui-widget-header .ui-button-text {
    padding: 0 .3em;
}


/* These css elements are for the quicksearch tool box*/
/* Centering the quick search form within its container */
#quickSearchDiv {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 0px;
    width: 100%;  /* Make sure the div takes full width */
}

/* Quick search input box */
#quickSearchInput {
    width: 80%;  /* Take the full width of the parent container */
    padding: 0.4em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    outline: none;
    
    margin: 0;  /* Remove any bottom margin */
}

/* Input box focus effect */
#quickSearchInput:focus {
    border-color: #3060be;  /* Blue border on focus */
}

/* Placeholder text styling */
#quickSearchInput::placeholder {
    color: #999;
}
