/* استایل عمومی */
body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* استایل کلی فرم‌ها */
#warranty-form,
#warranty-user-form,
#warranty-verify-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* استایل برای عنوان‌ها */
h1, h2, h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* استایل برای ورودی‌ها */
input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: #0073aa;
    outline: none;
}

/* استایل برای دکمه‌ها */
button[type="submit"] {
    width: 100%;
    padding: 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #005177;
}

/* استایل برای نتیجه */
#warranty-result,
#warranty-verify-result,
#warranty-user-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
}

/* رنگ‌های متن نتیجه */
#warranty-result p,
#warranty-verify-result p,
#warranty-user-result p {
    color: #333;
}

#warranty-result p.green,
#warranty-verify-result p.green,
#warranty-user-result p.green {
    color: #28a745;
}

#warranty-result p.red,
#warranty-verify-result p.red,
#warranty-user-result p.red {
    color: #dc3545;
}

/* انیمیشن برای نمایش نتیجه */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#warranty-result,
#warranty-verify-result,
#warranty-user-result {
    animation: fadeIn 0.5s ease-in-out;
}

/* استایل برای خطای اعتبارسنجی */
.warranty-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
}

/* استایل برای جدول‌ها (اگر در بخش وب استفاده شوند) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

table th {
    background: #0073aa;
    color: #fff;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    #warranty-form,
    #warranty-user-form,
    #warranty-verify-form {
        padding: 15px;
    }

    input[type="text"],
    input[type="number"],
    textarea {
        font-size: 14px;
    }

    button[type="submit"] {
        font-size: 14px;
    }

    table th,
    table td {
        font-size: 14px;
    }
}