/* BUNDLE: users-page-styles | Generated: 2026-03-06 01:14:56 | Sources: 4 */

/* --- File: popular-users.css --- */
/* Стили для блока популярных пользователей */
.popular-users-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.popular-users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-users-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popular-users-title i {
    color: #f59e0b;
}

.popular-users-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.popular-users-sort-select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.popular-users-list {
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
		grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.popular-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.popular-user-item:hover {
    background-color: #f3f4f6;
}

.popular-user-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #6b7280;
}

.popular-user-info {
    flex: 1;
    min-width: 0;
}

.popular-user-link {
    display: block;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.popular-user-link:hover {
    color: #3b82f6;
}

.popular-user-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.rank-number {
    font-weight: 600;
    color: #9ca3af;
}

.no-popular-users {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    margin: 16px 0;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .popular-users-section {
        padding: 16px;
    }
    
    .popular-users-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .popular-users-title {
        font-size: 16px;
    }
    
    .popular-user-item {
        padding: 8px;
    }
    
    .popular-users-list {
        grid-template-columns: 1fr;
    }
}

/* --- File: users-search.css --- */
/* === СВЕТЛЫЕ СТИЛИ ДЛЯ ФОРМЫ ПОИСКА ПОЛЬЗОВАТЕЛЕЙ === */

/* Основной контейнер формы поиска */
.users-search-form {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Заголовок формы */
.search-form-title {
    color: #333333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.search-form-title i {
    color: #3498db;
    margin-right: 8px;
}

/* Контейнер основного поиска */
.main-search-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.main-search-container:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Иконка поиска */
.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #3498db;
    padding-left: 8px;
    flex-shrink: 0;
}

/* Поле ввода поиска */
.enhanced-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 16px;
    font-size: 16px;
    background: transparent;
    color: #333;
    min-width: 0;
}

.enhanced-search-input::placeholder {
    color: #6c757d;
    font-weight: 400;
}

/* Кнопка поиска */
.enhanced-search-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.enhanced-search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.enhanced-search-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.enhanced-search-button:active {
    transform: translateY(0);
}

/* Расширенные фильтры */
.advanced-filters {
    margin-top: 16px;
}

.filters-toggle {
    background: #f8f9fa;
    color: #3498db;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filters-toggle:hover {
    background: #3498db;
    border-color: #3498db;
}

.filters-toggle i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.filters-toggle.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.filters-content {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 12px;
    display: none;
    animation: slideDown 0.3s ease;
}

.filters-content.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.filter-label i {
    color: #3498db;
    margin-right: 6px;
}

.filter-select {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: #495057;
}

.filter-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #dee2e6;
}

.filter-button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-button.primary {
    background: #3498db;
    color: white;
}

.filter-button.primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.filter-button.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.filter-button.secondary:hover {
    background: #e9ecef;
    color: #495057;
}

/* Статистика результатов */
.search-stats {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #495057;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-stats i {
    color: #3498db;
    margin-right: 8px;
}

.search-stats strong {
    color: #3498db;
    font-weight: 600;
}

/* === АДАПТИВНЫЕ СТИЛИ === */

/* Планшеты */
@media (max-width: 768px) {
    .users-search-form {
        padding: 20px 16px;
        margin-bottom: 20px;
    }
    
    .search-form-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .main-search-container {
        padding: 6px;
        margin-bottom: 16px;
    }
    
    .enhanced-search-input {
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    .enhanced-search-button {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 80px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filters-content {
        padding: 16px;
    }
}

/* Мобильные устройства */
@media (max-width: 480px) {
    .users-search-form {
        padding: 16px 12px;
        border-radius: 8px;
        margin: 10px 0;
    }
    
    .search-form-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .main-search-container {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 8px;
        gap: 8px;
    }
    
    .search-icon {
        width: 32px;
        height: 32px;
        order: 1;
    }
    
    .enhanced-search-input {
        flex: 1;
        min-width: 0;
        padding: 12px 16px;
        font-size: 16px; /* Предотвращает zoom на iOS */
        order: 2;
    }
    
    .enhanced-search-button {
        padding: 12px 20px;
        border-radius: 20px;
        font-size: 14px;
        min-width: auto;
        order: 3;
    }
    
    .filters-toggle {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        margin-top: 8px;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-button {
        width: 100%;
        padding: 12px;
        text-align: center;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .users-search-form {
        padding: 12px 8px;
    }
    
    .enhanced-search-input {
        font-size: 14px;
        padding: 10px;
    }
    
    .enhanced-search-button {
        font-size: 14px;
        padding: 10px;
    }
}

/* Высокие разрешения */
@media (min-width: 1200px) {
    
    .main-search-container {
        padding: 10px;
    }
    
    .enhanced-search-input {
        font-size: 18px;
        padding: 16px 20px;
    }
    
    .enhanced-search-button {
        padding: 16px 32px;
        font-size: 16px;
        min-width: 120px;
    }
}

/* Темная схема */
@media (prefers-color-scheme: dark) {
    .filters-content,
    .main-search-container {
        background: #f8f9fa;
    }
    
    .enhanced-search-input {
        color: #313131;
    }
    
    .enhanced-search-input::placeholder {
        color: #a0aec0;
    }
    
    .filter-label {
        color: #313131;
    }
    
        .filter-select {
            background: #e9ecef;
            color: #2c3e50;
            border-color: #4a5568;
        }
    
    .search-stats {
        /* background: rgba(45, 55, 72, 0.9);
        color: #e2e8f0; */
    }
}

/* Анимации и переходы для интерактивности */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.enhanced-search-button:focus {
    animation: pulse 1s infinite;
}

/* Улучшенные фокус-состояния для доступности */
.enhanced-search-input:focus,
.filter-select:focus,
.enhanced-search-button:focus,
.filter-button:focus,
.filters-toggle:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Состояния загрузки */
.search-loading {
    opacity: 0.7;
    pointer-events: none;
}

.search-loading .enhanced-search-button {
    position: relative;
}

.search-loading .enhanced-search-button::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* === ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ИНТЕГРАЦИИ === */

/* Совместимость с существующими стилями таблицы */
.users-search-form + .search-stats + .table-container {
    margin-top: 20px;
}

/* Улучшенные стили для мобильных устройств */
@media (max-width: 480px) {
    /* Корректировка отступов от краев экрана */
    .container {
        /* padding-left: 10px;
        padding-right: 10px; */
    }
    
    /* Убираем лишние отступы у формы на мобильных */
    .users-search-form {
        /* margin-left: -10px;
        margin-right: -10px; */
        border-radius: 0;
    }
    
    /* Улучшенная типографика для маленьких экранов */
    .enhanced-search-input::placeholder {
        font-size: 14px;
    }
}

/* Hover-эффекты для устройств с поддержкой hover */
@media (hover: hover) {
    .main-search-container:hover {
        box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.2);
    }
    
    .filter-select:hover {
        border-color: #a0aec0;
    }
    
    .search-stats:hover {
        background: #4a5a6c;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        color: #ffffff;
    }
}

/* Специальные стили для print */
@media print {
    .users-search-form {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    
    .enhanced-search-button,
    .filter-button,
    .filters-toggle {
        display: none !important;
    }
    
    .filters-content {
        display: block !important;
        background: white !important;
    }
}

/* Reduced motion для пользователей с ограниченными возможностями */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .enhanced-search-button::before {
        display: none;
    }
}

/* Высокий контраст */
@media (prefers-contrast: high) {
    .users-search-form {
        background: #ffffff;
        border: 3px solid #000000;
    }
    
    .enhanced-search-button {
        background: #000000;
        color: #ffffff;
        border: 2px solid #000000;
    }
    
    .enhanced-search-input {
        border: 2px solid #000000;
    }
    
    .filter-select {
        border: 2px solid #000000;
    }
}

/* Ориентация landscape для мобильных устройств */
@media (max-width: 768px) and (orientation: landscape) {
    .users-search-form {
        padding: 16px 20px;
    }
    
    .search-form-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .main-search-container {
        margin-bottom: 12px;
    }
}

/* Стили для больших экранов (4K и выше) */
@media (min-width: 1920px) {
    .users-search-form {
        /* max-width: 1000px; */
        padding: 32px;
    }
    
    .search-form-title {
        font-size: 28px;
    }
    
    .enhanced-search-input {
        font-size: 20px;
        padding: 18px 24px;
    }
    
    .enhanced-search-button {
        padding: 18px 36px;
        font-size: 18px;
    }
}


/* --- File: users-cards.css --- */
/* Стили для карточек пользователей - Социальный стиль (Social/Facebook style) */

.users-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;

}

.user-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* overflow: hidden; -- Удалено, чтобы не обрезалось выпадающее меню */
    transition: all 0.2s ease;
    border: 1px solid #dddfe2;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.3s ease-out;
}

.user-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Основная часть карточки */
.user-card-main {
    padding: 16px;
    display: flex;
    gap: 16px;
    flex-grow: 1;
}

/* Аватар */
.user-avatar-section {
    flex-shrink: 0;
}

.user-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.user-avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.1);
    display: block;
}

/* Точка статуса */
.online-status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.online-status-dot.online {
    background-color: #31a24c; /* Facebook green */
}

.online-status-dot.offline {
    background-color: #bcc0c4;
}

/* Инфо часть */
.user-info-section {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-nickname {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.user-nickname a {
    color: #050505;
    text-decoration: none;
    transition: color 0.1s ease;
}

.user-nickname a:hover {
    text-decoration: underline;
}

.user-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-item {
    font-size: 0.95rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.3;
}

.meta-item.accent {
    font-weight: 500;
}

.meta-item i {
    font-size: 18px;
    color: #65676b;
    width: 20px;
    text-align: center;
}

/* Подвал карточки */
.user-card-footer {
    padding: 12px 16px 16px 16px;
}

.action-row-modern {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Кнопки в стиле Facebook */
.action-btn-fb {
    height: 34px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    outline: none;
    white-space: nowrap;
}

/* Кнопка подписки (Второстепенная - серая) */
.sub-btn {
    background-color: #e4e6eb;
    color: #050505;
    min-width: 120px;
}

.sub-btn:hover {
    background-color: #d8dadf;
}

.sub-btn.subscribed {
    background-color: #ef4444;
    color: #fff;
}

.sub-btn.subscribed:hover {
    background-color: #dc2626;
}

.sub-btn.disabled {
    cursor: default;
    opacity: 0.8;
}

/* Кнопка сообщения */
.msg-btn {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    min-width: 120px;
}

.msg-btn:hover {
    background-color: #2563eb;
    color: #fff;
}

.more-actions-menu {
    position: relative;
    flex-shrink: 0;
    z-index: 5; /* Базовый уровень */
}

/* Повышаем приоритет карточки/меню, когда оно открыто */
.more-actions-menu:has(.user-card-dropdown.show),
.more-actions-menu.active-menu {
    z-index: 150;
}

.user-card-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.1);
    border: 1px solid #dddfe2;
    min-width: 180px;
    z-index: 100;
    padding: 6px;
    display: none;
    flex-direction: column;
}

.user-card-dropdown.show {
    display: flex;
}

.user-card-dropdown.drop-up {
    top: auto;
    bottom: calc(100% + 5px);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15), 0 0 1px rgba(0,0,0,0.1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    color: #1c1e21;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color 0.1s ease;
}

.dropdown-item:hover {
    background-color: #f2f3f5;
}

.dropdown-item.delete:hover {
    background-color: #fce8e8;
    color: #ef4444;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: #65676b;
    font-size: 16px;
}

.dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 4px 8px;
}

.quick-tool-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background-color: #e4e6eb;
    color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    border: none;
}

.quick-tool-btn.active {
    background-color: #d8dadf;
}

/* Адаптивность */
@media (max-width: 480px) {
    .users-cards-container {
        grid-template-columns: 1fr;
    }
    
    .user-card-main {
        padding: 12px;
    }
    
    .user-avatar-container {
        width: 80px;
        height: 80px;
    }
    
    .user-nickname {
        font-size: 1.1rem;
    }
    
    .action-btn-fb span {
        display: none; /* Скрываем текст на очень узких экранах, оставляем иконки */
    }
    
    .action-btn-fb {
        padding: 0;
        width: 36px;
        flex: none;
    }
    
    .msg-btn, button.author-subscribe-btn {
        flex: 1;
    }
    
    .msg-btn span, .sub-btn span {
        display: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- File: modal-buttons.css --- */
/* Modal Dialog - DM Modal Button Styles */

/* Cancel Button Styling */
#dmCancelBtn {
  padding: 4px 10px;
  min-width: 70px;
  height: 32px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

#dmCancelBtn:hover {
  background-color: #e5e7eb;
  border-color: #9ca3af;
}

#dmCancelBtn:active {
  background-color: #d1d5db;
}

#dmCancelBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Submit/Send Button Styling */
#dmSubmitBtn {
  padding: 4px 10px;
  min-width: 70px;
  height: 32px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #3b82f6;
  border: 1px solid #2563eb;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

#dmSubmitBtn:hover:not(:disabled) {
  background: #2563eb;
  border-color: #1d4ed8;
}

#dmSubmitBtn:active:not(:disabled) {
  background: #1d4ed8;
}

#dmSubmitBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading state */
#dmSubmitBtn.loading {
  position: relative;
}

#dmSubmitBtn.loading .lbl {
  visibility: hidden;
}

#dmSubmitBtn.loading::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Focus/Accessibility */
#dmCancelBtn:focus,
#dmSubmitBtn:focus {
  outline: 1px solid #3b82f6;
  outline-offset: 1px;
}

#dmCancelBtn:focus:not(:focus-visible),
#dmSubmitBtn:focus:not(:focus-visible) {
  outline: none;
}

/* Profile Action Buttons Styling */
.open-dm-modal-btn,
.author-subscribe-btn {
  padding: 4px 10px;
  min-width: 70px;
  height: 32px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: #3b82f6;
  border: 1px solid #2563eb;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.open-dm-modal-btn:hover,
.author-subscribe-btn:hover {
  background: #2563eb;
  border-color: #1d4ed8;
	color: #ffffff;
}

.open-dm-modal-btn:active,
.author-subscribe-btn:active {
  background: #1d4ed8;
	color: #ffffff;
}

.open-dm-modal-btn:disabled,
.author-subscribe-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Subscribe Button - Alternative Style */
.author-subscribe-btn.subscribed {
  background: #8b5cf6;
  border-color: #7c3aed;
	color: #ffffff;
}

.author-subscribe-btn.subscribed:hover {
  background: #7c3aed;
  border-color: #6d28d9;
	color: #ffffff;
}

.author-subscribe-btn.subscribed:active {
  background: #6d28d9;
	color: #ffffff;
}

/* Focus/Accessibility */
.open-dm-modal-btn:focus,
.author-subscribe-btn:focus {
  outline: 1px solid #3b82f6;
  outline-offset: 1px;
}

.open-dm-modal-btn:focus:not(:focus-visible),
.author-subscribe-btn:focus:not(:focus-visible) {
  outline: none;
}

/* Validation styles */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.dm-error {
    display: none;
    color: #b91c1c;
    font-size: 12px;
    margin-top: 4px;
}

.dm-hint {
    font-size: 11px;
    color: #6b7280;
    text-align: right;
    margin-top: 4px;
}

/* Modal styles */
.dm-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 2100 !important;
}

.modal-inner {
    max-width: 520px;
    margin: 10vh auto;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

/* Close button styling */
.close-dm-modal {
    font-size: 20px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
    background: none;
    border: none;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.close-dm-modal:hover {
    color: #333;
    background-color: #f3f4f6;
}

.close-dm-modal i {
    font-size: 18px;
}

/* User status area styles */
.user-status-area {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.user-status-area.hidden {
    display: none !important;
}

