@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@700&family=Cairo:wght@600;700;800&family=Reem+Kufi:wght@600;700&family=Tajawal:wght@700;800;900&display=swap');

body,
html {
    text-align: right;
    direction: rtl;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    background-image: url(../pic/lan2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

img {
    max-width: 100%;
}

.navbar {
    background-color: #ffffffda;
}

.navbar .container {
    justify-content: space-between;
    align-items: center;
}

.navbar .container img {
    max-height: 80px;
}

.app-cont {
    max-width: 800px;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.form-style {
    margin-top: 1rem;
}

.form-style .form-control {
    height: 50px;
    border-radius: 6px;
    border: 2px solid #28317771;
    margin-bottom: 1.5rem;
    box-shadow: none !important;
}

/* Custom checkmark styling */
.custom-radio {
    position: relative;
    margin-bottom: 15px;
}

.custom-radio input:checked ~ .custom-control-label::after {
    content: "✔";
    position: absolute;
    top: 10px;
    left: 10px;
    color: #28a745;
    background: rgba(255, 255, 255, 0.9);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border: 2px solid #fff;
}

.custom-radio .custom-control-label {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.custom-radio .custom-control-label img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.custom-radio:hover .custom-control-label img {
    transform: scale(1.03);
}

/* RTL adjustments */
[dir="rtl"] .custom-radio input:checked ~ .custom-control-label::after {
    left: auto;
    right: 10px;
}
.btn-primary {
    background-color: #760808;
    border-color: #871818;
    box-shadow: none !important;
    min-height: 50px;
    min-width: 180px;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #871717;
    border-color: #530f0f;
}

.to-img.show-version {
    width: 100%;
    max-width: 300px;
}

.to-img.show-version .cat {
    font-weight: bold;
    font-size: 16px;
}

.to-img.show-version .name {
    font-size: 27px;
    font-weight: 700
}

.modal-header {
    border: 0;
    padding-bottom: 0;
}

.modal-header .close {
    padding: 1rem 1rem;
    margin: -1rem auto -1rem -1rem;
}

.modal-dialog {
    max-width: 332px;
    margin-left: auto;
    margin-right: auto;
}

.modal-content {
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.modal-open .modal {
    overflow: hidden auto;
    background: rgb(0 0 0 / 20%);
}

.modal .btn-primary {
    display: block;
    width: 100%;
}

.emp-v .to-img .name {
    color: #ffffff;
}

/* ========================= img temp ===================================== */

.abs-wr {
    position: absolute;
    left: -2000px;
}

.to-img {
    width: 900px;
    position: relative;
    border: 0;
    overflow: hidden;
}

.to-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.to-img .cat {
    position: absolute;
    height: auto;
    width: 100%;
    padding: 10px 0;
    left: 0;
    right: 0;
    bottom: 5.5%;
    text-align: center;
    font-size: 41px;
    font-weight: bold;
    color: #ffffff;
}

/* Arabic Font Classes */
.font-cairo {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 800 !important;
}

.font-amiri {
    font-family: 'Amiri', serif !important;
    font-weight: 700 !important;
    font-size: 64px !important; /* Amiri looks better slightly larger */
    bottom: 8.5% !important;
}

.font-reem {
    font-family: 'Reem Kufi', sans-serif !important;
    font-weight: 700 !important;
    font-size: 60px !important;
}

.font-tajawal {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 800 !important;
}

.to-img .name {
    position: absolute;
    height: auto;
    width: 100%;
    padding: 10px 0;
    left: 0;
    right: 0;
    bottom: 9.5%;
    text-align: center;
    font-size: 58px;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8), 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.25s ease;
}

/* Contrast Shadow for light/white name on dark background (Card 2) */
.to-img .name[style*="color: rgb(248, 245, 240)"],
.to-img .name[style*="color: #f8f5f0"],
.to-img .name[style*="color: white"],
.to-img .name[style*="color: #ffffff"] {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.4) !important;
}

.emp-v .to-img .name {
    bottom: 14%;
}

.emp-v .to-img .name,
.emp-v .to-img .cat {
    padding: 0 10px;
}