﻿

.instruction-text {
    color: #1a2849;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 3px;
}

.scanner-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

#cameraContainer {
    display: none;
    justify-content: center;
    flex-flow: column nowrap;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.qr-card {
    background: #005FFF;
    color: white;
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items:center;
}
    .qr-card img {
        width: 90px;
        max-width: 50%;
    }

    .qr-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
        cursor: pointer;
    }

    .qr-label {
        color: #999;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 20px;
    }

#reader {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f7;
    min-height: 220px;
}

.actions-section {
    /*flex: 1;*/
    width: 450px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-action {
    display: flex;
}

.btn-action-underscanner {
    width: 380px;
    margin: 0 auto;
}

    .btn-action .action-btn:first-child {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        padding-right: 0;
    }

        .btn-action .action-btn:first-child::after {
            content: '';
            width: 1px;
            background: white;
            margin-left: 15px;
            height: 100%;
        }

    .btn-action .action-btn:last-child {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

.action-btn {
    background: var(--color-navy);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(26, 40, 73, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 55px;
    box-sizing: border-box;
}

    .action-btn.secondary {
        background: white;
        color: var(--color-blue);
    }

.form-container {
    position: relative;
    z-index: 0;
    overflow: hidden;
    border-radius: 25px;
    padding: 20px;
}

    .form-container::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180.86deg, #0B1556 1.08%, rgba(16, 230, 178, 0.3) 48.32%);
        opacity: 0.46;
        z-index: -1;
    }

.form-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

    .form-header .form-title {
        color: white;
        margin: 0;
    }

.icon {
    width: 20px;
    height: 20px;
}

    .icon svg {
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    }

.title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.input-wrapper {
    margin-bottom: 20px;
}

.input-field {
    width: 100%;
    padding: 20px 24px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    outline: none;
    transition: all 0.3s ease;
    color: #1a2849;
    box-sizing: border-box;
}

    .input-field::placeholder {
        color: #c0c0c0;
    }

    .input-field:focus {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
        transform: translateY(-2px);
    }

.submit-btn {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    background: #005FFF;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
/*    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
*/}

    .submit-btn:hover {
        transform: translateY(-2px);
        background: #005FFF;
    }

    .submit-btn:active {
        transform: translateY(0);
    }

    .submit-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.register-note {
    color: white;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    margin-bottom: 0px;
    margin-top: 5px;
}

#result {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 16px;
    margin-top: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #2dd4a8;
    font-weight: 600;
    word-break: break-all;
}

    #result:empty {
        display: none;
    }

.clear-btn {
    background: #ff4757;
    margin-top: 15px;
}

    .clear-btn:hover {
        background: #ff3838;
    }

@media (max-width: 768px) {
    .scanner-section {
        flex-direction: column;
        align-items: stretch;
    }

    .qr-card {
        flex: 1;
    }

    .title {
        font-size: 28px;
    }

    .date {
        font-size: 16px;
    }

    .instruction-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    .title {
        font-size: 24px;
    }

    .qr-card {
        padding: 20px;
    }
}

/* Override html5-qrcode styles */
#reader__scan_region {
    border-radius: 12px !important;
}

#reader__dashboard_section {
    display: none !important;
}

