﻿body,html {
    font-family: 'Vazirmatn', serif;
}
.validation-summary-valid,
.field-validation-valid {
    display: none;
}

.input-validation-error {
    border-color: var(--bs-danger);
}

.input-validation-error:focus {
    border-color: var(--bs-danger);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.25);
}

.account-avatar {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c56bb, #6f8ee8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    line-height: 1;
    overflow: hidden;
}

.account-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-avatar-sm {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.8rem;
}

.account-avatar-md {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 0.95rem;
}

.account-avatar-lg {
    width: 96px;
    height: 96px;
    min-width: 96px;
    font-size: 1.8rem;
    box-shadow: 0 10px 24px rgba(44, 86, 187, 0.24);
}

.account-avatar-xs {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 0.8rem;
}

.account-avatar-add {
    background: #f1f3f5;
    color: #2c56bb;
}

.account-switcher-menu {
    min-width: 320px;
    padding: 0;
    overflow: hidden;
}

.account-switcher-item,
.account-switcher-row {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: inherit;
    padding: 0.75rem 1rem;
}

.account-switcher-row {
    border-radius: 14px;
}

.account-switcher-button:hover,
.account-switcher-item:hover {
    background: #f8f9fa;
}

.account-switcher-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.account-switcher-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.account-switcher-name {
    color: #212529;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-switcher-meta {
    color: #6c757d;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.active-account {
    background: rgba(25, 135, 84, 0.08);
}

.account-switcher-card {
    border: 1px solid #eef0f3;
    border-radius: 18px;
    background: #fff;
    padding: 1rem;
}

.account-switcher-list {
    display: grid;
    gap: 0.35rem;
}

.account-switcher-modal-dialog {
    max-width: 400px;
}

.account-switcher-modal-content {
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.account-switcher-modal-list {
    display: grid;
    gap: 0.25rem;
}

.account-switcher-modal-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: inherit;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
}

.account-switcher-modal-row .account-switcher-item-content {
    flex: 1;
    min-width: 0;
}

.account-switcher-check {
    margin-inline-start: auto;
    color: #198754;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.account-switcher-modal-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eef0f3;
}

.account-switcher-modal-add {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.account-switcher-modal-add:hover {
    background: #f8f9fa;
    color: inherit;
}

.account-switcher-modal-add-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
