﻿video,
canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

video {
    transform: rotate(0deg);
    object-fit: cover;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.status-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
}

.status-ready {
    background-color: #10b981;
    color: white;
}

.status-loading {
    background-color: #f59e0b;
    color: white;
}

.status-error {
    background-color: #ef4444;
    color: white;
}

.method-selector {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
}

.loader-spin {
    border-radius: 9999px;
    border-width: 4px;
    border-style: solid;
    border-color: #38bdf8 #38bdf8 #38bdf8 transparent;
    animation: spin 1s linear infinite;
}

/* Ensure all modal and drawer content uses IRANSans */
#uploadDrawer,
#resultsModal,
#manualEditBox,
#detectingIndicator {
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
}

/* Special styling for Persian numbers */
.persian-number {
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
    font-feature-settings: "tnum" 1;
}
