/* CS-TGS-Conference Public Styles */

.cs-conference-error {
    background: linear-gradient(135deg, #dc3232 0%, #b32d2d 100%);
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    margin: 25px auto;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    max-width: 600px;
    box-shadow: 0 6px 20px rgba(220, 50, 50, 0.4);
    border: 3px solid #b32d2d;
    position: relative;
    animation: slideInDown 0.5s ease-out;
    line-height: 1.5;
}

.cs-conference-error:before {
    content: "⚠️";
    font-size: 24px;
    margin-left: 10px;
    margin-right: 10px;
    display: inline-block;
}

.cs-conference-notice {
    font-family: Almoni-neue-tzar;
    font-size: 44px;
    font-weight: 600;
    color: #004baa;
    padding: 25px 35px;
    text-align: center;
    position: relative;
    animation: slideInDown 0.5s ease-out;
    line-height: 1.5;
}

.cs-conference-notice:before {
    display: none;
}

.cs-conference-success {
    background: linear-gradient(135deg, #46b450 0%, #3a9540 100%);
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    margin: 25px auto;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    max-width: 600px;
    box-shadow: 0 6px 20px rgba(70, 180, 80, 0.4);
    border: 3px solid #3a9540;
    position: relative;
    animation: slideInDown 0.5s ease-out;
    line-height: 1.5;
}

.cs-conference-success:before {
    content: "✅";
    font-size: 24px;
    margin-left: 10px;
    margin-right: 10px;
    display: inline-block;
}

/* Animation for messages */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* QR Scanner Styles */
.cs-qr-scanner-admin,
.cs-qr-scanner-sponsor {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.qr-scanner-container {
    margin: 10px 0;
    text-align: center;
}

/* Improved QR Scanner Video Styles */
#qr-video-universal {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#qr-video-universal:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* QR Controls */
.qr-controls {
    margin: 10px 0;
    text-align: center;
}

.qr-controls button {
    margin: 0 5px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 250px;
    height: 50px;
    line-height: 1;
}

.qr-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .qr-controls {
        margin: 8px 0;
    }

    .qr-controls button {
        width: 100%;
        margin: 5px 0;
        padding: 12px 20px;
        font-size: 18px;
        min-width: auto;
        height: 50px;
        line-height: 1;
    }

    .qr-scanner-container {
        margin: 8px 0;
    }

    #qr-video-universal {
        max-width: 200px !important;
        height: 120px !important;
    }

    /* Compact mobile layout */
    .scan-result {
        padding: 10px;
        margin: 0px 0px;
    }

    .scan-actions {
        margin-top: 8px;
    }

    .scan-actions .button {
        margin: 5px 5px 5px 0;
        min-width: 150px;
        height: 45px;
        font-size: 16px;
        padding: 10px 15px;
    }

    /* Reduce spacing in registrant details */
    .registrant-details p {
        margin: 0px 0px;
        padding: 0px 0px;
    }

    /* Reduce arrival status spacing */
    .arrival-status {
        margin: 5px 0 !important;
        padding: 8px !important;
    }

    .arrival-status small {
        margin-top: 3px !important;
    }
}

.qr-controls {
    text-align: center;
    margin: 10px 0;
}

.scan-result {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.scan-actions {
    margin-top: 20px;
}

.scan-actions .button {
    margin-right: 10px;
    min-width: 200px;
    height: 40px;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    line-height: 1;
}

/* Skip button styling */
#skip-attendee-universal,
#skip-visitor-universal {
    background: #dc3545 !important;
    color: white !important;
}

#skip-attendee-universal:hover,
#skip-visitor-universal:hover {
    background: #c82333 !important;
}

/* Registrant details styling */
.registrant-details p {
    margin: 0px 0px;
    padding: 0px 0px;
    line-height: 1.4;
}

.arrival-status {
    margin: 8px 0 !important;
    padding: 10px !important;
}

.arrival-status small {
    margin-top: 5px !important;
    display: block;
}

.sponsor-notes {
    margin: 15px 0;
}

.sponsor-notes label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.sponsor-notes textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

/* Reports Styles */
.cs-conference-reports {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-box h3 {
    font-size: 2em;
    margin: 0 0 10px 0;
    color: #0073aa;
}

.stat-box p {
    margin: 0;
    color: #666;
    font-weight: 600;
}

.cs-reports-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.cs-reports-table th,
.cs-reports-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cs-reports-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.cs-reports-table tr:hover {
    background-color: #f9f9f9;
}

/* Status indicators */
.status-arrived {
    background-color: #46b450;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.status-not-arrived {
    background-color: #ffb900;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

/* Button styles */
.button {
    display: inline-block;
    padding: 12px 20px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    min-width: 500px;
    height: 40px;
    transition: all 0.3s ease;
}

.button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.button-primary {
    background: #0073aa;
}

.button-primary:hover {
    background: #005a87;
}

/* Responsive design */
@media (max-width: 768px) {

    .cs-qr-scanner-admin,
    .cs-qr-scanner-sponsor,
    .cs-conference-reports {
        padding: 10px;
    }

    .cs-conference-error,
    .cs-conference-notice,
    .cs-conference-success {
        padding: 20px 25px;
        margin: 20px 10px;
        font-size: 16px;
        max-width: none;
        border-radius: 10px;
    }

    .cs-conference-error:before,
    .cs-conference-notice:before,
    .cs-conference-success:before {
        font-size: 20px;
        margin-left: 5px;
        margin-right: 5px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cs-reports-table {
        font-size: 14px;
    }

    .cs-reports-table th,
    .cs-reports-table td {
        padding: 8px;
    }

    .qr-scanner-container video {
        width: 100%;
        height: auto;
    }

    .scan-actions .button {
        width: 100%;
        margin: 5px 0;
        min-width: auto;
        height: 50px;
        font-size: 18px;
    }

    .button {
        width: 100%;
        margin: 5px 0;
        min-width: auto;
        height: 50px;
        font-size: 18px;
    }
}

/* Direction and text alignment */
.cs-conference-error,
.cs-conference-notice,
.cs-conference-success,
.cs-qr-scanner-admin,
.cs-qr-scanner-sponsor,
.cs-conference-reports {
    direction: ltr;
    text-align: left;
}

/* Override text alignment for messages to be centered */
.cs-conference-error,
.cs-conference-notice,
.cs-conference-success {
    text-align: center;
}

/* QR Display Styles */
.cs-qr-display {
    max-width: 400px;
    margin: 20px auto;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cs-qr-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.cs-sandbox-badge {
    background: #e67e22;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.cs-qr-image {
    margin: 20px 0;
}

.cs-qr-image img {
    max-width: 200px;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.cs-qr-info {
    margin-top: 20px;
    text-align: left;
}

.cs-qr-info p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.cs-arrived {
    color: #27ae60 !important;
    font-weight: bold;
}

.cs-not-arrived {
    color: #e67e22 !important;
    font-weight: bold;
}

/* Responsive QR display */
@media (max-width: 768px) {
    .cs-qr-display {
        margin: 15px;
        padding: 15px;
    }

    .cs-qr-image img {
        max-width: 150px;
    }
}



/* QR Actions */
.cs-qr-actions {
    margin-top: 20px;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cs-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cs-btn-primary {
    background: #0073aa;
    color: white;
}

.cs-btn-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.cs-btn-secondary {
    background: #666;
    color: white;
}

.cs-btn-secondary:hover {
    background: #555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 102, 102, 0.3);
}

/* Detail Rows */
.cs-detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.cs-detail-row:last-child {
    border-bottom: none;
}

.cs-detail-label {
    font-weight: 600;
    color: #333;
    min-width: 150px;
    flex-shrink: 0;
}

.cs-detail-value {
    color: #666;
    flex-grow: 1;
}

.cs-qr-id {
    font-family: monospace;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Status Indicators */
.cs-status-arrived {
    color: #27ae60;
    font-weight: bold;
}

.cs-status-pending {
    color: #f39c12;
    font-weight: bold;
}

/* Instructions */
.cs-instructions-content ul {
    list-style: none;
    padding: 0;
}

.cs-instructions-content li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
}

.cs-instructions-content li:last-child {
    border-bottom: none;
}

/* Gravity Forms Submit Button Centering */
.gform-footer.gform_footer {
    text-align: center !important;
}

#gform_submit_button_1 {
    display: block !important;
    margin: 0 auto !important;
}

/* General Gravity Forms submit button centering for all forms */
.gform_footer input[type="submit"],
.gform_footer .gform_button {
    display: block !important;
    margin: 0 auto !important;
}