/* Body */
body {
    padding-bottom: 70px;
    font-family: "Segoe UI", sans-serif;
    background-color: #f8f9fa;
}

/* Card Post */
.card-post img,
.card-post video {
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    width: 100%;
}

/* دکمه‌های سفارشی */
.btn-custom {
    background-color: #4e73df;
    color: white;
    border: none;
    transition: background-color 0.3s ease;
}
.btn-custom:hover {
    background-color: #375ea6;
}

/* تب‌ها */
.nav-link.active {
    color: #4e73df !important;
    font-weight: bold;
}

/* آواتار */
.avatar-sm {
    width: 30px;
    height: 30px;
}

.avatar-md {
    width: 60px;
    height: 60px;
}

.avatar-lg {
    width: 100px;
    height: 100px;
}

.rounded-circle {
    border-radius: 50%;
}

/* منوی زیر صفحه */
.menu-bottom {
    z-index: 1000;
    background: white;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
}
.menu-bottom .nav-link {
    font-size: 0.9rem;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 576px) {
    .max-w-75 {
        max-width: 75%;
    }
    .menu-bottom .nav-link small {
        display: none;
    }
    .menu-bottom .nav-link i {
        font-size: 1.2rem;
    }
}

/* تغییرات فرم */
.form-control:focus {
    box-shadow: none;
    border-color: #4e73df;
}

/* مدال‌ها */
.badge-success {
    background-color: #28a745;
}
.badge-danger {
    background-color: #dc3545;
}
.badge-warning {
    background-color: #ffc107;
    color: #212529;
}
.badge-primary {
    background-color: #4e73df;
}

/* جدول‌ها */
.table thead th {
    vertical-align: middle;
    text-align: center;
}

/* پست در حالت لیست */
.list-group-item.active {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* هشتگ‌ها */
.btn-outline-primary {
    color: #4e73df;
    border-color: #4e73df;
}
.btn-outline-primary:hover {
    background-color: #4e73df;
    color: white;
}

/* دکمه‌های تعاملی پست */
.btn-sm.text-secondary {
    color: #6c757d;
}
.btn-sm.text-secondary:hover {
    color: #343a40;
}

/* کارت‌ها */
.card-footer {
    background: white;
}

/* آمار کاربر */
.stats-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
}
.stats-box:hover {
    transform: translateY(-5px);
}

/* فرم‌ها */
.input-group-text {
    background-color: #fff;
    border-right: 0;
}
.form-control {
    border-left: 0;
}

/* ریسپانسیو تصاویر و ویدئوها */
img.img-fluid,
video.w-100 {
    max-width: 100%;
    height: auto;
}

/* اعلان‌ها */
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* پیام بلاک */
.chat-item:hover {
    background-color: #f1f3f5;
    cursor: pointer;
}

/* تنظیمات */
form input[type="text"],
form textarea,
form select,
form input[type="email"],
form input[type="password"] {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

/* پست‌ها */
.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 1rem;
}

/* نوار استوری */
.story-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.story-bar::-webkit-scrollbar {
    display: none;
}

.story-bar a {
    flex: 0 0 auto;
    min-width: 60px;
    min-height: 60px;
}

/* منوی + وسطی */
.position-relative .fas.fa-plus-circle {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background-color: white;
    border: 3px solid white;
    border-radius: 50%;
}

/* نمودار */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* محتواهای عمومی */
.text-muted {
    color: #6c757d !important;
}



























/* --- نوار استوری --- */
.story-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 0 10px;
}
.story-bar::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: inline-block;
    margin: 0 5px;
    text-align: center;
}

.story-item img.avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.story-progress {
    height: 4px;
    background-color: #dee2e6;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    z-index: 9;
}

.story-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #0d6efd;
    transition: width 0.1s linear;
}

/* --- ضربدر Modal (btn-close) --- */
.btn-close {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
    font-size: 1.5rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    z-index: 1050;
}

.btn-close:hover {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1));
    opacity: 1;
}

/* --- کارت‌ها --- */
.card {
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.card-footer {
    background-color: #fff;
}

/* --- منوی پایین صفحه --- */
.menu-bottom {
    z-index: 1050;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
.menu-bottom a {
    color: #000;
    text-decoration: none;
}
.menu-bottom i {
    font-size: 1.2rem;
}