body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0fff4, #f4f4f4);
    text-align: center;
    margin: 0;
    padding: 50px 0;
    direction: ltr;
}

form {
    background: #ffffff;
    display: inline-block;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 380px;
}

label {
    display: block;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 17px;
}

input[type="text"],
input[type="date"],
select {
    width: 90%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 10px 0 20px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    text-align: center;
}

input:focus,
select:focus {
    border-color: #28a745;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
    outline: none;
}

button {
    background-color: #28a745;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s, transform 0.2s;
    font-size: 16px;
}

button:hover {
    background: linear-gradient(90deg, #28a745, #20c997);
    transform: scale(1.05);
}

.message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 6px;
    background-color: #e2e3e5;
    color: #333;
    font-weight: bold;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
}

.name-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    margin-top: 15px;
    box-sizing: border-box;
}

.name-row label {
    font-weight: bold;
    font-size: 16px;
}

.paste-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #555;
    padding: 0;
    margin: 0;
}

.paste-btn:hover {
    background: none;
    color: #555;
    transform: none;
}

.name-input {
    display: block;
    margin: 10px auto 20px;
    width: 90%;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
}


.name-row1 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 52px 12px 14px;
    margin: 8px 0;
    background: #f3f4f6;
    border: 8px solid #fff;
    border-radius: 18px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    box-sizing: border-box;
}

.name-row1 input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex: 0 0 auto;
}

.badge-days {
    color: #f59e0b;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.name-row1 label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.row-main {
    display: block;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.badge-family {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #ef4444;
    background: #fee2e2;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-star {
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 900;
    color: #0ea5e9;
}

.removeBtn {
    position: absolute;
    right: 12px;
    top: 30%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;

    transition: 0.15s;
    z-index: 10;
}

.removeBtn:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-40%) scale(1.12);
}


.row-first,
.row-last {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
}


.badge-family {
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    background: #fee2e2;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-star {
    font-size: 18px;
    font-weight: 900;
    color: #0ea5e9;
    margin-left: 6px;
    flex: 0 0 auto;
}

.name-row1 button {
    flex: 0 0 auto;
    font-size: 18px;
    border: none;
    background: none;
    cursor: pointer;
    color: #dc3545;
    opacity: .7;
}

.name-row1 button:hover {
    opacity: 1;
    transform: scale(1.12);
}


.rowCheckbox {
    cursor: pointer;
    transform: scale(1.2);
}

#buttonsBox {
    display: none;
    margin-top: 20px;
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.aegov-file-input-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.aegov-file-input-control input[type="file"] {
    display: none;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: #28a745;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.file-input-label:hover {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.file-input-label svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.rl {
    margin-right: 0px;
    margin-left: 10px;
    gap: 10px;
}

.sl {
    margin-right: 10px;
    margin-left: 0px;
    gap: 10px;
}

.search-box {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
    width: 380px;
    margin: 0 auto 30px;
}

.search-box input {
    width: 90%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #28a745;
    text-align: center;
    font-size: 16px;
    margin-bottom: 12px;
}

.search-box button {
    width: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    font-size: 17px;
    font-weight: bold;
}


.view-container {
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.view-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 25px;
    text-align: center;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.image-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}

.image-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.image-card img {
    width: 100%;
    border-radius: 10px;
    cursor: zoom-in;
}

.image-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.image-actions a {
    background: #28a745;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.image-actions a:hover {
    background: #218838;
}

.image-actions button {
    background: #dc3545;
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.image-actions button:hover {
    background: #c82333;
}



@media (max-width: 480px) {

    .row-first,
    .row-last {
        max-width: 130px;
    }
}

.a_submit {
    display: inline-block;
    margin: 10px 0;
    padding: 10px 20px;
    background: #2c7be5;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.l_l {
    position: fixed;
    top: 10px;
    left: 10px;
    display: inline-block;
    padding: 10px 20px;
    background: red;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    z-index: 9999;
}


.hidden {
    display: none;
}

.show {
    display: block;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 20px 0;
}

.logos img {
    height: 60px;
    object-fit: contain;
}

#flightTypeWrapper {
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: bold;
}

#flightTypeWrapper>label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.radio-group {
    display: flex;
    justify-content: center;
    gap: 35px;
    align-items: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #888;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: 0.2s ease;
}

.radio-group input[type="radio"]:checked {
    border-color: #198754;
}

.radio-group input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: #198754;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}