/*
 * Event QR Check-in - v4 Stylesheet
 * A professional and elegant design for the check-in form.
 */

/* General Body Style for a subtle background */
body.page-template-default {
    background-color: #f4f7f6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#eqc-checkin-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 450px;
    margin: 50px auto;
    padding: 35px 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    text-align: center;
}

/* Form Header with Icon */
.eqc-form-header {
    margin-bottom: 20px;
}

.eqc-form-header svg {
    color: #0073aa;
    width: 40px;
    height: 40px;
}

.eqc-event-title {
    color: #212529;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 700;
}

.eqc-event-time {
    color: #6c757d;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
}

.eqc-event-time strong {
    font-weight: 600;
    color: #495057;
}

#eqc-form-container .eqc-form-group {
    margin-bottom: 22px;
    text-align: left;
}

#eqc-form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

#eqc-form-container input[type="text"],
#eqc-form-container input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    color: #212529;
    background-color: #f8f9fa;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#eqc-form-container select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #f8f9fa;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* **NEW**: Set color for select dropdown based on validity */
#eqc-form-container select:invalid {
    color: #6c757d; /* Grey color for the initial placeholder option */
}

#eqc-form-container select:valid {
    color: #000000;
    padding: 5px 15px;
}

#eqc-form-container select option {
    color: #000000; /* Ensure options in the list are black */
}


#eqc-form-container input::placeholder {
    color: #adb5bd;
}

#eqc-form-container input:focus,
#eqc-form-container select:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
    outline: none;
    background-color: #ffffff;
}

#eqc-submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

#eqc-submit-btn:hover {
    background-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 90, 135, 0.2);
}

#eqc-submit-btn:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Message styles */
#eqc-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    display: none; /* Hidden by default */
}

.eqc-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.eqc-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* --- Success Message Styles --- */
#eqc-success-container {
    text-align: center;
}

.eqc-success-icon {
    margin-bottom: 20px;
}

.eqc-success-title {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
    margin-top: 0;
    margin-bottom: 10px;
}

.eqc-success-message {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
}
/*
 * Event QR Check-in - v9 Stylesheet
 * Styles for Check-in Form & Public Event List with Pagination
 */

/* --- General Body Style --- */
body.page-template-default {
    background-color: #f4f7f6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Check-in Form Styles --- */
#eqc-checkin-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 450px;
    margin: 50px auto;
    padding: 35px 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    text-align: center;
}
.eqc-form-header { margin-bottom: 20px; }
.eqc-form-header svg { color: #0073aa; width: 40px; height: 40px; }
.eqc-event-title { color: #212529; margin-top: 0; margin-bottom: 8px; font-size: 26px; font-weight: 700; }
.eqc-event-time { color: #6c757d; margin-top: 0; margin-bottom: 30px; font-size: 15px; line-height: 1.5; }
.eqc-event-time strong { font-weight: 600; color: #495057; }
#eqc-form-container .eqc-form-group { margin-bottom: 22px; text-align: left; }
#eqc-form-container label { display: block; margin-bottom: 8px; font-weight: 600; color: #495057; font-size: 14px; }
#eqc-form-container input[type="text"], #eqc-form-container input[type="tel"], #eqc-form-container select { width: 100%; padding: 12px 16px; border: 1px solid #ced4da; border-radius: 8px; box-sizing: border-box; font-size: 16px; color: #212529; background-color: #f8f9fa; transition: border-color 0.2s, box-shadow 0.2s; }
#eqc-form-container select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; }
#eqc-form-container select:invalid { color: #6c757d; }
#eqc-form-container select:valid { color: #000000; }
#eqc-form-container select option { color: #000000; }
#eqc-form-container input::placeholder { color: #adb5bd; }
#eqc-form-container input:focus, #eqc-form-container select:focus { border-color: #0073aa; box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15); outline: none; background-color: #ffffff; }
#eqc-submit-btn { width: 100%; padding: 14px; background-color: #0073aa; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: 700; letter-spacing: 0.5px; transition: all 0.3s ease; margin-top: 10px; }
#eqc-submit-btn:hover { background-color: #005a87; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 90, 135, 0.2); }
#eqc-submit-btn:disabled { background-color: #adb5bd; cursor: not-allowed; transform: none; box-shadow: none; }
#eqc-message { padding: 15px 20px; margin-bottom: 20px; border-radius: 8px; font-size: 15px; font-weight: 500; display: none; }
.eqc-success { background-color: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.eqc-error { background-color: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.eqc-info { background-color: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* --- Success/Location Message Styles --- */
#eqc-success-container { text-align: center; }
.eqc-success-icon { margin-bottom: 20px; }
.eqc-success-title { font-size: 24px; font-weight: 700; color: #28a745; margin-top: 0; margin-bottom: 10px; }
.eqc-success-message { font-size: 16px; color: #6c757d; line-height: 1.6; }
#eqc-location-checker { text-align: center; padding: 40px 0; color: #6c757d; }
.eqc-loader { border: 4px solid #f3f3f3; border-radius: 50%; border-top: 4px solid #0073aa; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 20px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- NEW: Public Event List Styles --- */
.eqc-event-list-wrapper { max-width: 900px; margin: 30px auto; padding: 0 15px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.eqc-event-section h2 { font-size: 28px; font-weight: 700; color: #333; border-bottom: 3px solid #0073aa; padding-bottom: 10px; margin-top: 50px; margin-bottom: 30px; }
.eqc-event-section:first-child h2 { margin-top: 20px; }
.eqc-event-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.eqc-event-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}
.eqc-event-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

.eqc-event-card-content {
    padding-right: 20px;
    flex-grow: 1;
}

.eqc-event-card h3 { font-size: 20px; font-weight: 600; margin-top: 0; margin-bottom: 15px; color: #212529; }
.eqc-event-card-time { padding-left: 10px; font-size: 14px; color: #6c757d; margin-bottom: 10px; display: flex; align-items: center; }
.eqc-card-icon { margin-right: 10px; color: #0073aa; flex-shrink: 0; }
.eqc-card-icon svg { width: 16px; height: 16px; }

.eqc-event-card-action {
    flex-shrink: 0;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.eqc-event-card-qr img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
}

.eqc-event-card-button {
    display: inline-block;
    text-align: center;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}
.eqc-event-card-button:hover {
    transform: scale(1.05);
}

.eqc-event-ongoing .eqc-event-card-button { background-color: #28a745; }
.eqc-event-upcoming .eqc-event-card-button { background-color: #007bff; }
.eqc-event-finished .eqc-event-card-button { background-color: #6c757d; }

.eqc-event-ongoing { border-left: 5px solid #28a745; }
.eqc-event-upcoming { border-left: 5px solid #007bff; }
.eqc-event-finished { border-left: 5px solid #6c757d; }

.eqc-load-more-container {
    text-align: center;
    margin-top: 30px;
}
.eqc-load-more-btn {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}
.eqc-load-more-btn:hover {
    background-color: #005a87;
    transform: translateY(-2px);
}
.eqc-load-more-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}
