/**
 * Mafia Legend - Admin Styles v10.0.0
 * استایل‌های پنل ادمین و بخش مدیریت وردپرس
 * نسخه کامل با امکانات جدید - منوی سریع، هشدارها و پنل‌های مدیریتی
 */

/* ============================================
   فونت فارسی
   ============================================ */
@font-face {
    font-family: 'iran';
    src: url('../fonts/iran.woff2') format('woff2'),
         url('../fonts/iran.woff') format('woff'),
         url('../fonts/iran.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iran';
    src: url('../fonts/iran.woff2') format('woff2'),
         url('../fonts/iran.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   متغیرهای رنگی
   ============================================ */
:root {
    --admin-primary: #2271b1;
    --admin-primary-hover: #135e96;
    --admin-success: #00a32a;
    --admin-danger: #d63638;
    --admin-warning: #dba617;
    --admin-info: #72aee6;
    --admin-bg: #f0f0f1;
    --admin-card-bg: #ffffff;
    --admin-border: #c3c4c7;
    --admin-text: #1d2327;
    --admin-text-muted: #646970;
    --admin-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --admin-shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
    --gold: #f1c40f;
    --mafia-red: #e74c3c;
    --citizen-green: #2ecc71;
    --independent-purple: #9b59b6;
    --dark-bg: #0a0c1a;
    --dark-card: rgba(20, 25, 45, 0.95);
    --primary: #00d2ff;
    --primary-dark: #0072ff;
}

/* ============================================
   استایل‌های عمومی ادمین
   ============================================ */
.mafia-admin-wrap {
    font-family: 'iran', Tahoma, sans-serif;
    direction: rtl;
    padding: 20px;
    background: var(--admin-bg);
    min-height: 100vh;
}

.mafia-admin-wrap * {
    font-family: 'iran', Tahoma, sans-serif;
}

/* ============================================
   منوی سریع (Quick Actions)
   ============================================ */
.quick-actions-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 3px solid var(--gold);
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
    z-index: 10000;
    transition: all 0.3s;
}

.quick-actions-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.8);
}

.quick-actions-menu {
    position: fixed;
    bottom: 100px;
    left: 30px;
    background: var(--dark-card);
    backdrop-filter: blur(15px);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 15px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    min-width: 200px;
}

.quick-actions-menu.open {
    display: flex;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    font-family: 'iran', sans-serif;
    text-align: right;
}

.quick-action-btn:hover {
    background: var(--primary);
    border-color: var(--gold);
    transform: translateX(-5px);
}

.quick-action-btn span {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

/* ============================================
   هشدار ورود هم‌زمان
   ============================================ */
.duplicate-login-warning {
    position: fixed;
    top: 100px;
    left: 30px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10001;
    box-shadow: 0 0 30px rgba(231, 76, 60, 0.5);
    max-width: 400px;
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.duplicate-login-warning .warning-icon {
    font-size: 30px;
}

.duplicate-login-warning .warning-content {
    flex: 1;
}

.duplicate-login-warning strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.duplicate-login-warning p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.duplicate-login-warning .warning-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.duplicate-login-warning .warning-close:hover {
    opacity: 1;
}

/* ============================================
   نوتیفیکیشن چت
   ============================================ */
.chat-notification-popup {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--gold);
    color: #000;
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10001;
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.5);
    max-width: 350px;
    cursor: pointer;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.chat-notification-popup .notification-content {
    flex: 1;
}

.chat-notification-popup strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.chat-notification-popup p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.chat-notification-popup .notification-close {
    background: none;
    border: none;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.chat-notification-popup .notification-close:hover {
    opacity: 1;
}

/* ============================================
   کارت‌های آمار
   ============================================ */
.mafia-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.mafia-stat-card {
    background: var(--admin-card-bg);
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: var(--admin-shadow);
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--admin-border);
}

.mafia-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--admin-shadow-lg);
}

.mafia-stat-card h3 {
    margin: 0 0 15px 0;
    color: var(--admin-text-muted);
    font-size: 16px;
    font-weight: normal;
}

.mafia-stat-card .stat-value {
    font-size: 48px;
    font-weight: bold;
    color: var(--admin-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.mafia-stat-card .stat-change {
    font-size: 14px;
    color: var(--admin-success);
}

.mafia-stat-card .stat-change.negative {
    color: var(--admin-danger);
}

.mafia-stat-card.mafia .stat-value {
    color: var(--mafia-red);
}

.mafia-stat-card.citizen .stat-value {
    color: var(--citizen-green);
}

.mafia-stat-card.independent .stat-value {
    color: var(--independent-purple);
}

/* ============================================
   جدول‌های سفارشی
   ============================================ */
.mafia-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--admin-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--admin-shadow);
    margin: 20px 0;
}

.mafia-table thead {
    background: var(--admin-primary);
}

.mafia-table th {
    padding: 15px;
    text-align: right;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.mafia-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--admin-border);
    color: var(--admin-text);
}

.mafia-table tr:last-child td {
    border-bottom: none;
}

.mafia-table tr:hover {
    background: rgba(34, 113, 177, 0.05);
}

.mafia-table .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.mafia-table .badge-success {
    background: rgba(46, 204, 113, 0.15);
    color: var(--citizen-green);
    border: 1px solid var(--citizen-green);
}

.mafia-table .badge-danger {
    background: rgba(231, 76, 60, 0.15);
    color: var(--mafia-red);
    border: 1px solid var(--mafia-red);
}

.mafia-table .badge-warning {
    background: rgba(241, 196, 15, 0.15);
    color: #b8860b;
    border: 1px solid var(--gold);
}

.mafia-table .badge-info {
    background: rgba(52, 152, 219, 0.15);
    color: #2980b9;
    border: 1px solid #3498db;
}

/* ============================================
   دکمه‌های سفارشی
   ============================================ */
.mafia-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    font-family: 'iran', sans-serif;
    margin: 2px;
}

.mafia-btn-primary {
    background: var(--admin-primary);
    color: white;
    border: 1px solid var(--admin-primary);
}

.mafia-btn-primary:hover {
    background: var(--admin-primary-hover);
    border-color: var(--admin-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 113, 177, 0.3);
}

.mafia-btn-success {
    background: var(--admin-success);
    color: white;
    border: 1px solid var(--admin-success);
}

.mafia-btn-success:hover {
    background: #008a20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 163, 42, 0.3);
}

.mafia-btn-danger {
    background: var(--admin-danger);
    color: white;
    border: 1px solid var(--admin-danger);
}

.mafia-btn-danger:hover {
    background: #b32d2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 54, 56, 0.3);
}

.mafia-btn-warning {
    background: var(--admin-warning);
    color: white;
    border: 1px solid var(--admin-warning);
}

.mafia-btn-warning:hover {
    background: #b38a14;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(219, 166, 23, 0.3);
}

.mafia-btn-outline {
    background: transparent;
    color: var(--admin-primary);
    border: 1px solid var(--admin-primary);
}

.mafia-btn-outline:hover {
    background: var(--admin-primary);
    color: white;
    transform: translateY(-2px);
}

.mafia-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.mafia-btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.mafia-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   فرم‌های سفارشی
   ============================================ */
.mafia-form-group {
    margin-bottom: 20px;
}

.mafia-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--admin-text);
    font-size: 14px;
}

.mafia-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'iran', sans-serif;
    transition: all 0.3s;
    background: white;
}

.mafia-form-control:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.mafia-form-control:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.mafia-form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'iran', sans-serif;
    background: white;
    cursor: pointer;
}

.mafia-form-select:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.mafia-form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.mafia-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--admin-primary);
}

.mafia-form-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.mafia-form-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--admin-primary);
}

/* ============================================
   کارت‌های اطلاعات
   ============================================ */
.mafia-card {
    background: var(--admin-card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
    margin-bottom: 20px;
}

.mafia-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--admin-border);
}

.mafia-card-header h3 {
    margin: 0;
    color: var(--admin-text);
    font-size: 18px;
    font-weight: bold;
}

.mafia-card-body {
    padding: 5px 0;
}

.mafia-card-footer {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================
   تب‌ها
   ============================================ */
.mafia-tabs {
    display: flex;
    border-bottom: 2px solid var(--admin-border);
    margin-bottom: 20px;
}

.mafia-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--admin-text-muted);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: 'iran', sans-serif;
}

.mafia-tab:hover {
    color: var(--admin-primary);
    background: rgba(34, 113, 177, 0.05);
}

.mafia-tab.active {
    color: var(--admin-primary);
    border-bottom-color: var(--admin-primary);
}

.mafia-tab-content {
    display: none;
}

.mafia-tab-content.active {
    display: block;
}

/* ============================================
   مودال‌ها
   ============================================ */
.mafia-modal-overlay,
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.mafia-modal,
.modal-content {
    background: var(--dark-card);
    border: 2px solid var(--gold);
    border-radius: 25px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(241, 196, 15, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    color: white;
    direction: rtl;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-title {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 0 15px rgba(241, 196, 15, 0.3);
}

.modal-close-btn {
    width: 100%;
    padding: 14px;
    background: var(--mafia-red);
    color: white;
    border: none;
    border-radius: 15px;
    font-family: 'iran', sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.modal-close-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.player-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.player-item:hover {
    background: rgba(241, 196, 15, 0.15);
    border-color: var(--gold);
}

.player-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

/* ============================================
   پنل چت ادمین
   ============================================ */
.mafia-admin-chat-container {
    display: flex;
    gap: 20px;
    min-height: 600px;
    background: var(--admin-card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--admin-shadow);
}

.mafia-chat-sidebar {
    width: 30%;
    background: #f8f9fa;
    border-left: 1px solid var(--admin-border);
}

.mafia-chat-sidebar-header {
    padding: 20px 15px;
    border-bottom: 1px solid var(--admin-border);
}

.mafia-chat-sidebar-header h3 {
    margin: 0;
    color: var(--admin-text);
    font-size: 16px;
}

.mafia-chat-players-list {
    max-height: 500px;
    overflow-y: auto;
}

.mafia-chat-player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--admin-border);
    cursor: pointer;
    transition: all 0.2s;
}

.mafia-chat-player-item:hover {
    background: rgba(34, 113, 177, 0.05);
}

.mafia-chat-player-item.active {
    background: rgba(34, 113, 177, 0.1);
    border-right: 4px solid var(--admin-primary);
}

.mafia-chat-player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mafia-chat-player-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--admin-border);
}

.mafia-chat-player-details {
    display: flex;
    flex-direction: column;
}

.mafia-chat-player-name {
    font-weight: bold;
    color: var(--admin-text);
    margin-bottom: 3px;
}

.mafia-chat-player-seat {
    font-size: 12px;
    color: var(--admin-text-muted);
}

.mafia-chat-player-role {
    font-size: 11px;
    color: var(--admin-primary);
    margin-top: 2px;
}

.mafia-chat-unread-badge,
.unread-badge {
    background: var(--admin-danger);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.mafia-chat-main {
    width: 70%;
    display: flex;
    flex-direction: column;
}

.mafia-chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.mafia-chat-header h3 {
    margin: 0;
    color: var(--admin-text);
    font-size: 18px;
}

.mafia-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #fafafa;
    min-height: 400px;
    max-height: 500px;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.chat-message.admin {
    align-items: flex-end;
}

.chat-message.player {
    align-items: flex-start;
}

.chat-message .bubble,
.chat-message .message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
}

.chat-message.admin .bubble,
.chat-message.admin .message-bubble {
    background: var(--admin-primary);
    color: white;
    border-bottom-left-radius: 5px;
}

.chat-message.player .bubble,
.chat-message.player .message-bubble {
    background: #e9ecef;
    color: var(--admin-text);
    border-bottom-right-radius: 5px;
}

.chat-message .time,
.chat-message .message-time {
    font-size: 10px;
    color: var(--admin-text-muted);
    margin-top: 4px;
    padding: 0 5px;
}

.mafia-chat-input-area,
.chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--admin-border);
    display: flex;
    gap: 10px;
    background: white;
}

.mafia-chat-input,
.chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--admin-border);
    border-radius: 25px;
    font-size: 14px;
    font-family: 'iran', sans-serif;
    resize: none;
}

.mafia-chat-input:focus,
.chat-input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.mafia-chat-send-btn,
.chat-send-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--admin-primary);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mafia-chat-send-btn:hover,
.chat-send-btn:hover {
    background: var(--admin-primary-hover);
    transform: scale(1.05);
}

/* ============================================
   صفحه تخلفات
   ============================================ */
.mafia-violations-container {
    background: var(--admin-card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--admin-shadow);
}

.mafia-violations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--admin-border);
}

.mafia-violations-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.mafia-violations-table,
.violations-table {
    width: 100%;
    border-collapse: collapse;
}

.mafia-violations-table th,
.violations-table th {
    background: var(--admin-primary);
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: bold;
    font-size: 14px;
}

.mafia-violations-table td,
.violations-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--admin-border);
    color: var(--admin-text);
}

.mafia-violations-table tr:hover,
.violations-table tr:hover {
    background: rgba(34, 113, 177, 0.03);
}

.violation-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.violation-status.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.violation-status.dismissed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

.violation-status.investigating {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #007bff;
}

/* ============================================
   پنل کنترل صدا
   ============================================ */
.mafia-audio-control,
.audio-master-control {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 20px;
    color: white;
    margin-top: 20px;
}

.mafia-audio-control h4 {
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mafia-audio-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, var(--citizen-green), var(--gold), var(--mafia-red));
    border-radius: 3px;
    outline: none;
    margin: 15px 0;
}

.mafia-audio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--gold);
    border: 2px solid white;
}

.mafia-audio-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mafia-audio-value span {
    color: var(--gold);
    font-weight: bold;
}

.mafia-audio-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mafia-audio-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'iran', sans-serif;
}

.mafia-audio-btn.mute {
    background: var(--mafia-red);
    color: white;
}

.mafia-audio-btn.unmute {
    background: var(--citizen-green);
    color: white;
}

.mafia-audio-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
}

.mafia-audio-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--gold);
}

/* ============================================
   پنل کنترل کشته‌شدگان
   ============================================ */
.mafia-killed-control,
.killed-control-panel {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--gold);
    margin-top: 20px;
}

.mafia-killed-control h4,
.killed-control-panel h4 {
    color: var(--gold);
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.mafia-killed-list,
.killed-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.mafia-killed-item,
.killed-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    color: white;
}

.mafia-killed-item button,
.killed-item button {
    background: none;
    border: none;
    color: var(--mafia-red);
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.mafia-killed-add-btn,
.btn-add-killed {
    width: 100%;
    padding: 12px;
    background: var(--mafia-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'iran', sans-serif;
}

.mafia-killed-add-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.mafia-killed-show-btn,
.btn-show-newspaper {
    width: 100%;
    padding: 12px;
    background: var(--admin-info);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    font-family: 'iran', sans-serif;
}

.mafia-killed-show-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* ============================================
   وضعیت WebSocket
   ============================================ */
.mafia-websocket-status,
.websocket-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 13px;
    margin-left: 10px;
}

.mafia-websocket-status.online,
.websocket-status.online {
    background: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

.mafia-websocket-status.offline,
.websocket-status.offline {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid var(--admin-danger);
}

.mafia-websocket-status .dot,
.websocket-status .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mafia-websocket-status.online .dot,
.websocket-status.online .dot {
    background: var(--citizen-green);
    animation: pulse-green 1.5s infinite;
}

.mafia-websocket-status.offline .dot,
.websocket-status.offline .dot {
    background: var(--mafia-red);
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ============================================
   نوار پیشرفت
   ============================================ */
.mafia-progress {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.mafia-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--admin-primary), var(--admin-info));
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.mafia-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.mafia-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--admin-text-muted);
    margin-bottom: 5px;
}

/* ============================================
   اعلان‌ها (Toast Notifications)
   ============================================ */
.mafia-toast-container {
    position: fixed;
    top: 50px;
    left: 30px;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mafia-toast {
    min-width: 300px;
    max-width: 450px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: toastSlideIn 0.3s ease-out;
    border-right: 4px solid;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.mafia-toast.success {
    border-right-color: var(--admin-success);
}

.mafia-toast.error {
    border-right-color: var(--admin-danger);
}

.mafia-toast.warning {
    border-right-color: var(--admin-warning);
}

.mafia-toast.info {
    border-right-color: var(--admin-info);
}

.mafia-toast-icon {
    font-size: 24px;
}

.mafia-toast.success .mafia-toast-icon {
    color: var(--admin-success);
}

.mafia-toast.error .mafia-toast-icon {
    color: var(--admin-danger);
}

.mafia-toast.warning .mafia-toast-icon {
    color: var(--admin-warning);
}

.mafia-toast.info .mafia-toast-icon {
    color: var(--admin-info);
}

.mafia-toast-content {
    flex: 1;
}

.mafia-toast-message {
    font-size: 13px;
    color: var(--admin-text-muted);
}

.mafia-toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--admin-text-muted);
    padding: 5px;
    transition: color 0.3s;
}

.mafia-toast-close:hover {
    color: var(--admin-text);
}

/* ============================================
   لودینگ
   ============================================ */
.mafia-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.mafia-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(34, 113, 177, 0.1);
    border-top-color: var(--admin-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.mafia-loading-text {
    margin-top: 15px;
    color: var(--admin-text-muted);
    font-size: 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   دکمه‌های کنترل بازی (ctrl-btn)
   ============================================ */
.ctrl-btn {
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: 'iran', sans-serif;
}

.ctrl-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
}

.btn-inquiry { background: #f1c40f; color: #000; }
.btn-mod-speech { background: #2ecc71; color: #fff; }
.btn-toggle-num { background: #9b59b6; color: #fff; }
.btn-admin-chat { background: #3498db; color: #fff; }
.btn-violations { background: #e74c3c; color: #fff; }
.btn-warning { background: #e67e22; color: #fff; }
.btn-judge { background: #8e44ad; color: #fff; }
.btn-cowboy { background: #d35400; color: #fff; }
.btn-terrorist { background: #c0392b; color: #fff; }
.btn-voting { background: #1abc9c; color: #fff; }

/* ============================================
   آیتم‌های اکشن در انتظار
   ============================================ */
.pending-action-item {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 10px;
    color: white;
}

.pending-action-item span {
    display: block;
    margin-bottom: 10px;
}

.pending-action-item .btn-game-v2 {
    padding: 6px 15px;
    font-size: 12px;
}

/* ============================================
   پنل رأی‌گیری
   ============================================ */
.voting-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.voting-player-item {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.voting-player-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: white;
}

.voting-nominee-check {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    cursor: pointer;
    accent-color: var(--gold);
}

/* ============================================
   رسپانسیو
   ============================================ */
@media (max-width: 768px) {
    .mafia-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mafia-admin-chat-container {
        flex-direction: column;
    }
    
    .mafia-chat-sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid var(--admin-border);
    }
    
    .mafia-chat-main {
        width: 100%;
    }
    
    .mafia-table {
        display: block;
        overflow-x: auto;
    }
    
    .mafia-modal,
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .mafia-toast-container {
        left: 10px;
        right: 10px;
    }
    
    .mafia-toast {
        min-width: auto;
        max-width: none;
    }
    
    .quick-actions-toggle {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .quick-actions-menu {
        bottom: 80px;
        left: 20px;
        min-width: 180px;
    }
}

/* ============================================
   کلاس‌های کمکی
   ============================================ */
.mafia-text-center { text-align: center; }
.mafia-text-right { text-align: right; }
.mafia-text-left { text-align: left; }
.mafia-text-success { color: var(--admin-success); }
.mafia-text-danger { color: var(--admin-danger); }
.mafia-text-warning { color: var(--admin-warning); }
.mafia-text-info { color: var(--admin-info); }
.mafia-text-muted { color: var(--admin-text-muted); }

.mafia-bg-success { background: rgba(0, 163, 42, 0.1); }
.mafia-bg-danger { background: rgba(214, 54, 56, 0.1); }
.mafia-bg-warning { background: rgba(219, 166, 23, 0.1); }
.mafia-bg-info { background: rgba(114, 174, 230, 0.1); }

.mafia-d-flex { display: flex; }
.mafia-align-center { align-items: center; }
.mafia-justify-between { justify-content: space-between; }
.mafia-gap-2 { gap: 10px; }

.mafia-w-100 { width: 100%; }
.mafia-cursor-pointer { cursor: pointer; }

/* ============================================
   Night Action Notification
   ============================================ */
.night-action-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10001;
    background: linear-gradient(135deg, #2c3e50, #1a1a2e);
    border: 2px solid #f1c40f;
    border-radius: 15px;
    padding: 15px 20px;
    color: #fff;
    min-width: 280px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s ease-out;
}

/* ============================================
   Chat Notification
   ============================================ */
.chat-notification {
    position: fixed;
    top: 140px;
    right: 20px;
    z-index: 10001;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: 2px solid #00d2ff;
    border-radius: 15px;
    padding: 12px 18px;
    color: #fff;
    min-width: 260px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s ease-out;
    cursor: pointer;
}
