/* Event Check-In Manager Plugin Styles */

/* Main container styling for better presentation */
#event-checkin-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Header styling */
.checkin-header {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 3px solid #0073aa;
    transition: all 0.3s ease;
}

.checkin-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.checkin-header p {
    color: #666;
    font-size: 16px;
    margin: 8px 0;
    line-height: 1.4;
}

/* Event details that can be hidden */
#event-details {
    transition: all 0.3s ease;
}

#event-details p {
    display: inline-block;
    margin: 8px 15px;
    white-space: nowrap;
}

/* Compact single-line layout for event details */
@media (min-width: 768px) {
    #event-details {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    #event-details p {
        margin: 4px 0;
    }
}

/* Featured image styling */
.event-featured-image {
    margin-bottom: 20px;
}

.event-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Form step styling */
.checkin-step {
    margin: 30px 0;
    padding: 20px;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.checkin-step h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Input styling */
.checkin-step input[type="text"],
.checkin-step input[type="email"],
.checkin-step input[type="tel"] {
    font-size: 18px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    width: 100%;
    max-width: 350px;
    margin: 5px 0;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.checkin-step input[type="text"]:focus,
.checkin-step input[type="email"]:focus,
.checkin-step input[type="tel"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* License number input - make it stand out */
#license-number {
    font-size: 24px !important;
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Table styling for registration form */
.checkin-step table {
    margin: 20px auto;
    border-spacing: 10px;
}

.checkin-step table td {
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

.checkin-step table td:first-child {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    width: 120px;
}

/* Button styling */
.button-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px 5px;
    min-width: 120px;
}

.button-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #004666 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.button-primary:active {
    transform: translateY(0);
}

.button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button {
    background: #f1f1f1;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 5px;
    min-width: 120px;
}

.button:hover {
    background: #e8e8e8;
    border-color: #bbb;
}

/* Message styling */
.message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.4;
}

.message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #b3d9c6;
}

.message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f1aeb5;
}

.message.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 2px solid #abdde5;
}

/* Checkout details styling - NEW RESPONSIVE LAYOUT */
#checkout-details {
    text-align: left;
    margin: 20px 0;
}

.checkout-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.checkout-column {
    min-height: 200px;
}

/* Mobile responsive for checkout columns */
@media (max-width: 768px) {
    .checkout-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .checkout-column {
        min-height: auto;
    }
}

/* Legacy checkout details for backward compatibility */
#checkout-details ul {
    text-align: left;
    list-style: none;
    padding: 0;
}

#checkout-details li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 16px;
}

#checkout-details li:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
    color: #0073aa;
}

/* Success message styling */
#success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 3px solid #28a745;
    border-radius: 12px;
    padding: 30px;
}

#success-message h3 {
    color: #155724;
    font-size: 24px;
    margin-bottom: 20px;
}

#success-details {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* CEU summary styling */
#success-details ul {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

/* Hide event details when in form steps */
.hide-event-details #event-details {
    display: none !important;
}

.hide-event-details #important-notice {
    display: none !important;
}

.hide-event-details .checkin-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
}
#important-notice{
    white-space: unset !important;
}

/* Responsive design */
@media (max-width: 768px) {
    #event-checkin-container {
        margin: 20px auto;
        padding: 20px;
        border-radius: 8px;
        max-width: 95%;
    }
    
    .checkin-header h2 {
        font-size: 24px;
    }
    
    .checkin-step h3 {
        font-size: 20px;
    }
    
    .checkin-step input[type="text"],
    .checkin-step input[type="email"],
    .checkin-step input[type="tel"] {
        font-size: 16px;
        max-width: 100%;
    }
    
    #license-number {
        font-size: 20px !important;
    }
    
    .button-primary,
    .button {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 100px;
        margin: 5px 2px;
    }
    
    .checkin-step table {
        border-spacing: 5px;
    }
    
    .checkin-step table td:first-child {
        width: 100px;
        font-size: 14px;
    }
    
    /* Stack event details vertically on mobile */
    #event-details {
        flex-direction: column;
        gap: 10px;
    }
    
    #event-details p {
        margin: 4px 0;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Fade in animations for better UX */
.checkin-step {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auto-reset notification styling */
.auto-reset-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    color: #856404;
    font-size: 14px;
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Focus indicators for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .message.success {
        background: #d4edda;
        border-color: #155724;
    }
    
    .message.error {
        background: #f8d7da;
        border-color: #721c24;
    }
    
    .message.info {
        background: #d1ecf1;
        border-color: #0c5460;
    }
}

/* Print styles */
@media print {
    #event-checkin-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .button-primary,
    .button {
        display: none;
    }
    
    .checkin-step {
        page-break-inside: avoid;
    }
    
    .auto-reset-notification {
        display: none;
    }
}

/* Admin page styling improvements */
.resend-email {
    background: #17a2b8 !important;
    color: white !important;
    border-color: #17a2b8 !important;
}

.resend-email:hover {
    background: #138496 !important;
    border-color: #117a8b !important;
}

/* Enhanced loading states for admin buttons */
.button-small:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Better spacing for action buttons in admin */
.wp-list-table .button-small {
    margin: 2px;
    white-space: nowrap;
}

/* Improved modal styling */
.modal-content {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Status badge improvements */
.status-checked_in,
.status-checked_out {
    display: inline-block;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Debug page styling */
.card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin: 20px 0;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.card h2 {
    margin-top: 0;
    color: #23282d;
    font-size: 18px;
    font-weight: 600;
}

/* Time window notification styling */
.time-window-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: #856404;
    text-align: center;
}

.time-window-message h2 {
    color: #dc3545;
    margin-top: 0;
}

/* Improved form validation styling */
.validation-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.validation-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

/* Enhanced responsive design for tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    #event-checkin-container {
        max-width: 85%;
        padding: 25px;
    }
    
    .checkout-columns {
        gap: 15px;
    }
    
    .button-primary,
    .button {
        font-size: 15px;
        padding: 11px 22px;
    }
}

/* Improved button states */
.button-primary:focus,
.button:focus {
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

.button-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Better visual hierarchy */
h1 {
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #0073aa;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #005a87;
}

/* Enhanced touch targets for mobile */
@media (max-width: 768px) {
    .button-primary,
    .button {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        min-height: 44px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body{
    background-color:#222 !important;
}

h1{
    color:#fff !important;
}

#certificate-qr img{
    margin: auto !important;
}

#ceu-manager-qr img{
    margin: auto !important;
}