﻿h1, h2, h3 {
    font-size: 18px !important;
}

html {
    font-size: 14px;
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* 🔵 دکمه سبز متالیک */
.sida-btn-green {
    background: linear-gradient(135deg, #00c853, #009624);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 1px rgba(255,255,255,0.3);
    transition: 0.2s;
}

    .sida-btn-green:hover {
        background: linear-gradient(135deg, #00e676, #00b248);
        transform: translateY(-2px);
    }

/* 🔴 دکمه قرمز متالیک */
.sida-btn-red {
    background: linear-gradient(135deg, #ff1744, #d50000);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 1px 1px rgba(255,255,255,0.3);
    transition: 0.2s;
}

    .sida-btn-red:hover {
        background: linear-gradient(135deg, #ff5252, #c51162);
        transform: translateY(-2px);
    }

/* 🔧 ساختار صفحه برای جلوگیری از افتادن فوتر روی محتوا */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    direction: rtl;
    text-align: right;
    background-color: #f8f9fa;
}

/* محتوای اصلی باید فضای کافی داشته باشد */
main, .flex-grow-1 {
    flex-grow: 1;
}

/* فوتر همیشه پایین صفحه بماند */
footer {
    margin-top: auto;
    width: 100%;
}

/* جدول‌ها */
table tbody tr:nth-child(even),
table tr:nth-child(even) td {
    background-color: #e6f2ff !important;
}

/* آیکون لوگو در موبایل */
@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px !important;
        width: 40px !important;
    }
}
