/**
 * Block Screen Library CSS
 * 
 * External CSS file for Block Screen Library styling.
 * This file should be included in projects using the library.
 * 
 * IMPORTANT: This file includes the essential block-screen-feature.css
 * that contains the core classes needed for QR generation.
 */

/* Import essential block screen feature styles */
@import url('./block-screen-feature.css');

/* Container Styles */
.block-screen-container {
    max-width: 500px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
}

.block-screen-header {
    text-align: center;
    margin-bottom: 1rem;
}

.block-screen-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Content Styles */
.block-screen-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Step Styles */
.block-screen-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Form Elements */
.block-screen-select,
.block-screen-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    background: white;
}

.block-screen-select:focus,
.block-screen-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.block-screen-input {
    cursor: pointer;
    background: #f8f9fa;
}

.block-screen-input:hover {
    background: #e9ecef;
}

.block-screen-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* QR Section */
.block-screen-qr-section {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.block-screen-qr-section canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Canvas specific styling for proper phone aspect ratio */
.block-screen-canvas {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    border-radius: 1.5rem;
    background-color: black;
    border: 1px solid #333;
    display: block;
    margin: 0 auto;
}

/* Actions */
.block-screen-actions {
    text-align: center;
    margin-top: 20px;
}

.block-screen-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #6c757d;
    color: white;
    min-width: 120px;
}

.block-screen-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.block-screen-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.block-screen-button--active {
    background: #007bff;
}

.block-screen-button--active:hover:not(:disabled) {
    background: #0056b3;
}

/* Tutorial */
.block-screen-tutorial {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}



/* Responsive Design */
@media (min-width: 768px) {
    .block-screen-container {
        padding-inline: 4rem;
    }
}

@media (max-width: 768px) {
    .block-screen-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .step-indicator {
        align-self: flex-start;
    }


}

/* Animation Classes */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.step-indicator.is-done {
    background: #28a745;
    animation: none;
}

.step-indicator:not(.is-done) {
    animation: pulse 1.5s infinite cubic-bezier(0.66, 0, 0, 0.34, 1);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}