﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    margin-bottom: 60px;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100vh;
    direction: rtl;
    text-align: center;
}

#scanResult {
    margin-top: 25px;
    font-size: 1.4em;
    color: #28a745;
    min-height: 60px;
    word-break: break-word;
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 10px;
    background: white;
}
/* Modal styles */
#scannerModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

#modalContent {
    background-color: #fff;
    margin: auto;
    border-radius: 12px;
    padding: 15px;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

#video {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    border: 3px solid #007bff;
    background: black;
}

#modalButtons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

#stopScanButton {
    padding: 12px 25px;
    font-size: 1.1em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    background-color: #dc3545;
    color: white;
}

    #stopScanButton:hover {
        background-color: #a71d2a;
    }

    #stopScanButton:disabled {
        background-color: #6c757d;
        cursor: not-allowed;
    }

#modalResultText {
    margin-top: 15px;
    font-size: 1.2em;
    color: #28a745;
    min-height: 50px;
    word-break: break-word;
    text-align: center;
    user-select: text;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 8px;
    background: #fefefe;
}

@media (max-width: 600px) {
    #modalContent {
        max-width: 95vw;
        max-height: 70vh;
    }

    #stopScanButton {
        font-size: 1em;
        padding: 10px 20px;
    }

    /*#openScannerBtn {
    font-size: 1.1em;
    padding: 12px 25px;
}*/

}
