﻿* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', "Segoe UI", sans-serif;
    background: #f4f6f8;
    color: #000000;
    font-size: 18px;

   
}

.topbar {
    background: #16a34a;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.topbar-user {
    font-size: .85rem;
    opacity: .9;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    margin-bottom: 16px;
}

    .card h2 {
        margin: 0 0 12px;
        font-size: 1.1rem;
        color: #0d6efd;
        
    }

.field {
    margin-bottom: 14px;
}

    .field label {
        display: block;
        margin-bottom: 6px;
        font-weight: bold;
        font-size: .95rem;
        color:#000000;
    }

    .field input[type=text], .field input[type=password], .field input[type=number],
    .field select, .field textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        font-size: 1rem;
        font-family: inherit;
        background: #fff;
        direction: rtl;
        text-align: right;
    }

        .field input:focus, .field select:focus {
            outline: none;
            border-color: #0d6efd;
            box-shadow: 0 0 0 3px rgba(13,110,253,.15);
        }

    .field .hint {
        font-size: .8rem;
        color: #64748b;
        margin-top: 4px;
    }
    .field .hint1 {
        font-size: .7rem;
        color: #000000;
        margin-top: 14px;
        direction: ltr;
    }

    .field .error {
        color: #dc2626;
        font-size: .85rem;
        margin-top: 4px;
    }

.ltr-number {
    direction: ltr;
    text-align: left;
}

.btn {
    display: inline-block;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: #0d6efd;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
}

    .btn:active {
        background: #0a58ca;
    }

.btn-secondary {
    background: #64748b;
}

.btn-success {
    background: #16a34a;
}

.btn-danger {
    background: #dc2626;
}

.file-input-wrap {
    position: relative;
}

    .file-input-wrap input[type=file] {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        opacity: 0;
        cursor: pointer;
    }

.preview {
    margin-top: 10px;
    text-align: center;
}

    .preview img {
        max-width: 100%;
        max-height: 300px;
        border-radius: 8px;
        border: 1px solid #cbd5e1;
    }

.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .result-list li {
        background: #fff;
        padding: 14px;
        border-radius: 8px;
        margin-bottom: 8px;
        box-shadow: 0 1px 2px rgba(0,0,0,.05);
        cursor: pointer;
    }

        .result-list li:active {
            background: #eff6ff;
        }

    .result-list .num {
        color: #0d6efd;
        font-weight: bold;
        margin-left: 8px;
    }

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: .95rem;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.footer {
    text-align: center;
    padding: 16px;
    font-size: 1rem;
    font-weight: bold;
}

.link {
    color: #0d6efd;
    text-decoration: none;
}

    .link:active {
        text-decoration: underline;
    }

@media (max-width: 380px) {
    .topbar-user {
        display: none;
    }
}
