table.distabl td {
    vertical-align: top;
}

#greenSquare {
    background-color: #04AA6D;
    border: none;
    color: white;
    padding: 10px 10px;
    text-decoration: none;

    width: 100px;
    cursor: pointer;
    border-radius: 10px;
}

#reset_arrivals {
    background-color: #0a76be;
    border: none;
    color: white;
    padding: 10px 10px;
    text-decoration: none;

    width: 100px;
    cursor: pointer;
    border-radius: 10px;
}

.layout {
    width: 100%;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.layout2 {
    width: 100%;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.layout3 {
    width: 100%;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.layout div {
    font-family: Verdana, sans-serif;
    padding: 8px 6px 8px 6px;
    text-align: center;
    background-color: green;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
}

.layout2 div {
    font-family: Verdana, sans-serif;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    background-color: yellow;
    color: black;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    width: 285px;
    padding: 15px 5px 15px 5px;
}

.layout3 div {
    font-family: Verdana, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background-color: red;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    padding: 10px 5px 10px 5px;
    width: 85px;
}

.layout a:link,
a:visited {

    text-decoration: none;
    text-align: center;
}

.layout3 a:link,
a:visited {

    text-decoration: none;
    text-align: center;
}

.layout2 a:link,
a:visited {

    text-decoration: none;
    text-align: center;
}

.link02 {
    color: black;
    text-decoration: none;
    text-align: center;
}

.link01 {
    text-decoration: none;
    color: #1976d2;
    font-weight: 500;
}

.link01:hover {
    text-decoration: underline;
    color: #1565c0;
}

.heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1976d2;
    color: #fff;
    padding: 18px 28px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 1.1em;
    font-weight: 500;
}

.heading>div {
    background: none;
    text-align: center;
    padding: 0 8px;
    font-size: 1.2em;
    font-weight: 400;
    color: #fff;
    border-radius: 0;
}

.custom-select {
    width: 400px;
    position: relative;
}

.custom-select select {
    appearance: none;
    width: 100%;
    font-size: 1.15rem;
    padding: 0.675em 6em 0.675em 1em;
    background-color: #fff;
    border: 1px solid #caced1;
    border-radius: 0.25rem;
    color: #000;
    cursor: pointer;
}

.custom-select input[type=submit] {
    background: #2B65B5;
    color: white;
    height: 30px;
    width: 150px;
    font: 18px;
    text-shadow: none;
    margin: 10px 5px 0 250px;
    position: absolute;
    border: 1px solid #caced1;
    border-radius: 0.25rem;
    cursor: pointer;
}

.lua-parents-dash-wrap {
    background: #f9fbfd;
    border: 2px solid #1976d2;
    border-radius: 12px;
    padding: 32px 24px 24px 24px;
    max-width: 800px;
    margin: 30px auto;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.lua-parents-dash {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(25, 118, 210, 0.06);
}

.lua-parents-dash th,
.lua-parents-dash td {
    padding: 14px 10px;
    text-align: left;
}

.lua-parents-dash th {
    background: #1976d2;
    color: #fff;
    font-weight: 400;
    border-bottom: 2px solid #1565c0;
}

.lua-parents-dash tr:nth-child(even) {
    background: #f1f6fa;
}

.lua-parents-dash tr:hover {
    background: #e3f2fd;
}

.lua-status-waiting {
    color: #757575;
    font-weight: 500;
}

.lua-status-ready {
    color: #ff9800;
    font-weight: 400;
}

.lua-status-departed {
    color: #388e3c;
    font-weight: 400;
}

.lua-alt-pickup-approved {
    color: #388e3c;
    font-weight: 400;
}

.lua-alt-pickup-pending {
    color: #d32f2f;
    font-weight: 400;
}

.lua-cancel-alt-pickup.button {
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    cursor: pointer;
    margin-top: 6px;
    font-size: 0.95em;
    transition: background 0.2s;
}

.lua-cancel-alt-pickup.button:hover {
    background: #b71c1c;
}

#lua-parents-dash-refresh.button {
    display: block;
    margin: 0 auto 18px auto;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 7px 18px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    max-width: 340px;
    text-align: center;
}

#lua-parents-dash-refresh.button:hover {
    background: #1565c0;
}

#lua-alt-pickup-form {
    margin-top: 18px;
    background: #e3f2fd;
    padding: 18px 18px 10px 18px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(25, 118, 210, 0.06);
    max-width: 500px;
}

#lua-alt-pickup-form label {
    font-weight: 400;
    margin-top: 10px;
    display: block;
}

#lua-alt-pickup-form select,
#lua-alt-pickup-form input[type="text"] {
    width: 100%;
    padding: 7px;
    margin-bottom: 12px;
    border-radius: 4px;
    border: 1px solid #bdbdbd;
}

#lua-alt-pickup-form button {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}

#lua-alt-pickup-form button:hover {
    background: #1565c0;
}

#lua-alt-pickup-message.success {
    color: #388e3c;
    font-weight: 400;
    margin-top: 10px;
}

#lua-alt-pickup-message.error {
    color: #d32f2f;
    font-weight: 400;
    margin-top: 10px;
}

.lua-admin-dash-wrap {
    background: #f9fbfd;
    border: 2px solid #1976d2;
    border-radius: 12px;
    padding: 32px 24px 24px 24px;
    max-width: 1100px;
    margin: 30px auto;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.lua-admin-dash-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(25, 118, 210, 0.06);
}

.lua-admin-dash-table th,
.lua-admin-dash-table td {
    padding: 14px 10px;
    text-align: left;
    color: #222;
}

.lua-admin-dash-table th {
    background: #1976d2;
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #1565c0;
}

.lua-admin-dash-table tr:nth-child(even) {
    background: #f1f6fa;
}

.lua-admin-dash-table tr:hover {
    background: #e3f2fd;
}

.lua-admin-action-btn {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    cursor: pointer;
    margin: 2px 0;
    font-size: 1em;
    transition: background 0.2s;
    min-height: 38px;
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
}

.lua-admin-action-btn:hover {
    background: #1565c0;
}

.lua-admin-action-btn.reset {
    background: #d32f2f;
}

.lua-admin-action-btn.reset:hover {
    background: #b71c1c;
}

.lua-dash-controls {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    align-items: center;
}

.lua-dash-controls form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.lua-admin-action-btn,
#reset_arrivals,
#greenSquare {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    /* Increased vertical padding */
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    min-width: 220px;
    min-height: 48px;
    /* Ensures enough height */
    line-height: 1.3;
    /* Ensures text is vertically centered */
    box-sizing: border-box;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    overflow: visible;
}

#greenSquare {
    background: #03a52b;
}

#reset_arrivals {
    background: #0a76be;
}

.lua-admin-action-btn.reset {
    background: #d32f2f;
}

.lua-admin-action-btn:hover,
#reset_arrivals:hover,
#greenSquare:hover {
    opacity: 0.92;
}

#lua-im-here-btn {
    display: block;
    margin: 0 auto 12px auto;
    background: #43a047;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(67, 160, 71, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    outline: none;
    width: 100%;
    max-width: 340px;
    text-align: center;
}

#lua-im-here-btn:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
}

#lua-im-here-btn:hover:enabled,
#lua-im-here-btn:focus:enabled {
    background: #388e3c;
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.15);
}

/* Center the card grid */
.lua-parents-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
}

/* Card style: no border, centered content */
.lua-parent-card {
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.08);
    padding: 22px 18px 18px 18px;
    min-width: 260px;
    max-width: 340px;
    width: 100%;
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow 0.2s;
}

.lua-parent-card:hover {
    box-shadow: 0 4px 18px rgba(25, 118, 210, 0.15);
    border-color: #1565c0;
}

.lua-parent-card .student-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 6px;
}

.lua-parent-card .student-class {
    font-size: 1em;
    color: #444;
    margin-bottom: 10px;
}

.lua-parent-card .student-status {
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f6fa;
    color: #757575;
    display: inline-block;
}

.lua-parent-card .student-status.ready {
    background: #fff3e0;
    color: #ff9800;
}

.lua-parent-card .student-status.departed {
    background: #e8f5e9;
    color: #388e3c;
}

.lua-parent-card .student-notes {
    font-size: 0.98em;
    color: #555;
    margin-bottom: 10px;
}

.lua-parent-card .alt-pickup {
    font-size: 0.98em;
    margin-bottom: 8px;
}

.lua-parent-card .alt-pickup .approved {
    color: #388e3c;
    font-weight: 500;
}

.lua-parent-card .alt-pickup .pending {
    color: #d32f2f;
    font-weight: 500;
}

.lua-parent-card .card-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 700px) {
    .lua-parents-card-grid {
        gap: 14px;
        padding: 8px 0;
    }

    .lua-parent-card {
        min-width: 90vw;
        max-width: 98vw;
        padding: 16px 8px 12px 8px;
    }

    #lua-im-here-btn,
    #lua-parents-dash-refresh.button {
        max-width: 98vw;
        font-size: 15px;
        padding: 10px 10px;
    }
}

/* Hide old table styles if present */
.lua-parents-dash {
    display: none !important;
}