﻿body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 20px;
}

/* استایل دکمه‌های مرحله */
.tab-button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #2196F3;
    color: white;
    border: none;
    margin: 10px;
    border-radius: 5px;
}

.tab-content {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #f1f1f1;
    border-radius: 5px;
}

.active-tab {
    display: block;
}

/* استایل فیلدها */
input[type="text"], textarea {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
/* استایل فیلدها */
input[type="number"], textarea {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    resize: vertical;
    height: 100px;
}

/* استایل دکمه‌ها */
button {
    padding: 5% 5%;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
}

/* استایل مربوط به صفحه موبایل */
@media (max-width: 600px) {
    body {
        margin: 10px;
    }

    .tab-content {
        padding: 5px;
    }

    #videoElement {
        width: 100% !important;
        height: auto !important;
    }

    #signatureCanvas {
        width: 100%;
        height: 300px;
    }

    #previewSignature {
        width: 100%;
        height: auto;
    }
}

/* استایل امضا */
canvas {
    border: 1px solid #ccc;
    margin-top: 10px;
}

/* دوربین */
#videoElement {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin-top: 10px;
}

#controls {
    position: relative;
}

#flashButton,
#captureButton {
    position: absolute;
    top: 10px;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

#flashButton {
    left: 10px;
}

#captureButton {
    right: 10px;
}

    #flashButton img,
    #captureButton img {
        width: 54px;
        height: 54px;
    }

.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    #videoElement {
        max-width: 100%;
        height: auto;
    }

    #flashButton,
    #captureButton {
        width: 70px;
        height: 70px;
    }

        #flashButton img,
        #captureButton img {
            width: 50px;
            height: 50px;
        }
}

.green {
    background-color: #d4edda;
}

.purple {
    background-color: #e8daef;
}

.red {
    background-color: #f8d7da;
}