@font-face {
    font-family: 'Tanha';
    src: url('../fonts/Tanha.woff') format('woff'),
         url('../fonts/Tanha.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* فونت اصلی صفحه */
body,
p,
a,
h1,
h2,
h3,
h4,
h5,
input,
button,
span,
li,
label {
    font-family: 'Tanha', Tahoma, sans-serif !important;
}


/* رنگ‌ها */
:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --bg-light: #f8f9fa;
    --text-color: #333;
    --border-color: #e9ecef;
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}


/* ساختار کلی */
html,
body {
    min-height: 100%;
}

body {
    background-color: #f4f6f9;
    color: var(--text-color);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* نگهدارنده کل صفحه */
.contain-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* iframe بالا و پایین */
.top-iframe {
    height: 175px;
    width: 100%;
    border: none;
    display: block;
}

.bottom-iframe {
    height: 175px;
    width: 100%;
    border: none;
    display: block;
    margin-top: auto;
}


/* بخش اصلی */
main {
    flex: 1;
}


/* کارت‌ها */
.tool-card {
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}


/* هدر ابزار */
.tool-header {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        #0a58ca
    );

    color: #ffffff;

    border-radius: 16px 16px 0 0 !important;

    padding: 1.25rem 1.5rem;
}


/* متن معرفی */
.tool-intro {
    color: #495057;
    line-height: 1.9;
    margin-bottom: 1.75rem;
}


/* کنترل‌های فرم */
.form-control {
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-weight: 500;
    border: 1px solid #ced4da;
}


/* حالت فوکوس برای کیبورد و دسترس‌پذیری */
.form-control:focus,
.btn:focus-visible,
a:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 0.25rem
        rgba(13, 110, 253, 0.25);
}


/* گروه ورودی */
.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
}


/* متن راهنما */
.form-text {
    color: #6c757d;
    margin-top: 0.5rem;
}


/* بخش CAPTCHA */
.captcha-box {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}


/* تصویر CAPTCHA */
.captcha-image {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.4rem;
    line-height: 0;
}

.captcha-image img {
    max-width: 100%;
    height: auto;
}


/* ورودی CAPTCHA */
.captcha-input {
    max-width: 300px;
}


/* دکمه اصلی */
.btn-primary {
    font-weight: 600;
    border-radius: 8px;
    transition:
        background-color 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
}


/* بازخورد هنگام کلیک */
.btn-primary:active {
    transform: scale(0.98);
}


/* نتیجه */
.result-section {
    background-color: #e7f1ff;
    border: 1px solid #b6d4fe;
    border-radius: 12px;
    padding: 1.25rem;
}


/* متن IP */
.result-box {
    background-color: #ffffff !important;
    color: #084298 !important;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}


/* گروه نتیجه */
.result-group .form-control {
    min-width: 0;
}


/* پیام کپی */
.copy-message {
    min-height: 1.5rem;
    color: #146c43;
    font-size: 0.9rem;
    font-weight: 500;
}


/* لینک‌های سریع */
.quick-links {
    background-color: #ffffff;
}

.quick-links a {
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.quick-links a:hover {
    color: var(--primary-color);
    background-color: #f1f5ff;
}


/* بخش راهنما */
.ip-guide {
    line-height: 2;
}

.ip-guide h2 {
    color: #212529;
    font-weight: 700;
}

.ip-guide h3 {
    color: #0d6efd;
    font-weight: 600;
}

.ip-guide p {
    color: #495057;
}

.ip-guide ul {
    padding-right: 1.25rem;
    margin-bottom: 0;
}

.ip-guide li {
    margin-bottom: 0.5rem;
}


/* هشدارها */
.alert {
    border-radius: 10px;
}


/* واکنش‌گرا برای موبایل */
@media (max-width: 576px) {

    .top-iframe {
        height: 140px;
    }

    .bottom-iframe {
        height: 140px;
    }

    .tool-header {
        padding: 1rem;
    }

    .tool-header h1 {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .tool-card {
        border-radius: 12px;
    }

    .tool-header {
        border-radius: 12px 12px 0 0 !important;
    }

    .captcha-box {
        padding: 1rem;
    }

    .captcha-input {
        max-width: 100%;
    }

    .result-section {
        padding: 1rem;
    }

    .quick-links {
        text-align: center;
    }

}
.ip-info{
    border-top:1px solid #b6d4fe;
    padding-top:1.25rem;
}
.info-item{
    background:#fff;
    border:1px solid #dbe7f7;
    border-radius:10px;
    padding:.85rem 1rem;
    height:100%;
}
.info-item span{
    display:block;
    color:#6c757d;
    font-size:.85rem;
    margin-bottom:.35rem;
}
.info-item strong{
    display:block;
    color:#212529;
    font-weight:600;
    overflow-wrap:anywhere;
}