﻿:root {
    --bs-body-font-family: "IRANYekanXVF", Tahoma, sans-serif;
}

@font-face {
    font-family: "IRANYekanXVF";
    src: url('/font/IRANYekanXVF.woff2') format("woff2"), url('/font/IRANYekanXVF.woff') format("woff");
}

@font-face {
    font-display: block;
    font-family: bootstrap-icons;
    src: url('/font/bootstrap-icons.woff2') format("woff2"),url('/font/bootstrap-icons.woff') format("woff")
}

body {
    direction: rtl;
    font-size: 14px;
    background: #f8f9fa;
    font-family: var(--bs-body-font-family);
}

.landing-hero {
    min-height: 50vh;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,1)), url('/img/hero-bg.jpg') center/cover no-repeat;
}

.page-header {
    min-height: 25vh;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,1)), url('/img/hero-bg.jpg') center/cover no-repeat;
}

.field-validation-error {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: inline-block;
}

.alert-danger ul {
    margin-bottom: 0;
}

.form-label.required::after {
    color: red;
    content: " *";
}

.form-check-label {
    cursor: pointer;
}

.card {
    border-radius: 0.66rem !important;
}

.error-card {
    width: 100%;
    max-width: 600px;
}

error-card .error-icon {
    font-size: 4rem;
}

nav.navbar .navbar-nav .nav-link {
    color: black;
}

.btn-light:hover {
    color: #ffffff;
    background-color: #0d6efd;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.35);
}

/* ------------- service card ------------- */

.service-card {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .service-card::before {
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        content: '';
        position: absolute;
        transform: scaleX(0);
        background: rgb(13, 110, 253);
        transition: transform 0.3s ease;
    }

    .service-card:hover {
        transform: translateY(-8px);
    }

        .service-card:hover::before {
            transform: scaleX(1);
        }

    .service-card .icon-wrapper {
        width: 70px;
        height: 70px;
        background: rgb(13, 110, 253);
        transition: transform 0.3s ease;
    }

    .service-card:hover .icon-wrapper {
        transform: rotate(5deg) scale(1.1);
    }

    .service-card .icon-wrapper svg {
        fill: none;
        width: 35px;
        height: 35px;
        stroke: white;
        stroke-width: 2;
    }

    .service-card .feature-item {
        transition: all 0.2s ease;
    }

        .service-card .feature-item:hover {
            transform: translateX(-5px);
            border: 1px rgb(13, 110, 253) solid;
            background-color: #e9ecef !important;
        }

        .service-card .feature-item::before {
            content: '✓';
            margin-left: 8px;
            font-weight: bold;
            color: rgb(13, 110, 253);
        }

/* ------------- alpr page ------------- */

.alpr-upload-area label {
    cursor: pointer;
    transition: transform 0.2s;
}

    .alpr-upload-area label:hover {
        transform: scale(1.02);
    }

.alpr-legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

.alpr-results-content {
    overflow-y: auto;
}

#platesArea .license-plate:not(:last-child) {
    margin-bottom: 1rem;
}

#detailsArea .detection-details:not(:last-child) {
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.alpr-upload-area button:hover {
    transform: scale(1.05);
}

#detailsArea .detection-details .progress {
    background-color: #e9ecef;
    border-radius: 2px;
}

#detailsArea .detection-details .progress-bar {
    transition: width 0.5s ease;
}

/* ------------- license plate ------------- */

.license-plate {
    display: flex;
    color: #1A253A;
    overflow: hidden;
    font-weight: 700;
    max-width: 10rem;
    border-radius: 6px;
    align-items: center;
    aspect-ratio: 4.72727 / 1;
    border: 2px solid #1A253A;
    background-color: #F5F8FF;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.license-strip {
    width: 10px;
    height: 100%;
    flex-shrink: 0;
    background-color: #2C61C9;
    border-right: 2px solid #1A253A;
}

.license-main {
    flex-grow: 1;
    padding: 2px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-evenly;
}

    .license-main p {
        margin: 0;
        font-size: 18px;
        line-height: 1.5;
    }

.license-region {
    display: flex;
    padding: 4px;
    flex-shrink: 0;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid #1A253A;
}

    .license-region img {
        width: 30px;
        height: auto;
        margin-bottom: 3px;
    }

    .license-region p {
        font-size: 18px;
        margin: -4px 0 0 0;
        margin-bottom: -0.5rem;
    }
