/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Vazirmatn", sans-serif;
    direction: rtl;
    text-align: right;
    background: #f5f6fa;
    margin: 0;
    min-height: 100vh;
}

/* ===== LAYOUT ===== */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 220px;
    background: #2c3e50;
    color: white;
    padding: 20px;
    flex-shrink: 0;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h3 {
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.sidebar .user {
    opacity: 0.8;
    margin-bottom: 20px;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 8px;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background 0.2s;
    font-size: 14px;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.1);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 30px 40px;
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== FLASH MESSAGES ===== */
.flash {
    padding: 12px 18px;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-weight: 500;
    max-width: 100%;
}

.success {
    background: #2ecc71;
}
.error {
    background: #e74c3c;
}

/* ===== WELCOME BOX ===== */
.welcome-box {
    background: white;
    padding: 25px 30px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.welcome-box h2 {
    margin-bottom: 8px;
    font-size: 22px;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stat-card h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-card p {
    color: #7f8c8d;
    font-size: 14px;
}

/* ===== LATEST CARD ===== */
.latest-card {
    background: white;
    padding: 25px 30px;
    border-radius: 16px;
    margin-top: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.latest-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.latest-card p {
    margin: 10px 0;
    line-height: 1.8;
}

.latest-card hr {
    margin: 15px 0;
    border: none;
    border-top: 1px solid #ecf0f1;
}

/* ===== BUTTONS ===== */
button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    margin: 5px 5px 15px 0;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
    font-family: inherit;
}

button:hover {
    opacity: 0.85;
}

/* ===== FORM ===== */
form {
    margin-bottom: 20px;
}

form label {
    display: block;
    font-weight: 500;
    margin: 10px 0 5px 0;
    font-size: 14px;
    color: #2c3e50;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
    background: white;
}

input:focus, select:focus, textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
    resize: vertical;
    min-height: 60px;
}

/* ===== CONTENT CARDS (History) ===== */
.content-card {
    background: white;
    padding: 20px 25px;
    margin: 15px 0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.content-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.content-card p {
    margin: 6px 0;
    line-height: 1.7;
    font-size: 14px;
}

.content-card hr {
    margin: 12px 0;
    border: none;
    border-top: 1px solid #ecf0f1;
}

.card-actions {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.edit-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.delete-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    font-size: 16px;
    color: #7f8c8d;
}

/* ===== RESPONSIVE (موبایل و تبلت) ===== */

/* تبلت و صفحه‌های متوسط */
@media (max-width: 1024px) {
    .main-content {
        padding: 25px 30px;
    }

    .sidebar {
        width: 200px;
        padding: 15px;
    }
}

/* موبایل (صفحه‌های کوچک) */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        height: auto;
        position: static;
        padding: 15px 20px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .sidebar h3 {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
        flex: 1;
        font-size: 16px;
    }

    .sidebar .user {
        margin-bottom: 0;
        font-size: 13px;
        padding: 6px 12px;
        flex: 0 0 auto;
    }

    .sidebar a {
        display: inline-block;
        margin: 0;
        padding: 8px 14px;
        font-size: 13px;
        flex: 0 0 auto;
    }

    .sidebar a:last-of-type {
        margin-right: auto;
    }

    .main-content {
        padding: 20px 16px;
    }

    .welcome-box {
        padding: 18px 20px;
    }

    .welcome-box h2 {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card h3 {
        font-size: 22px;
    }

    .latest-card {
        padding: 18px 20px;
    }

    .latest-card h3 {
        font-size: 17px;
    }

    .content-card {
        padding: 16px 18px;
    }

    .content-card h3 {
        font-size: 16px;
    }

    button {
        padding: 8px 14px;
        font-size: 13px;
        width: 100%;
        margin: 5px 0 10px 0;
    }

    input, select, textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    .card-actions {
        flex-direction: column;
        gap: 8px;
    }

    .card-actions a {
        display: block;
        text-align: center;
        padding: 8px;
        border-radius: 8px;
        background: #f8f9fa;
    }
}

/* موبایل‌های خیلی کوچک */
@media (max-width: 480px) {
    .sidebar {
        padding: 12px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .sidebar h3 {
        font-size: 15px;
        text-align: center;
    }

    .sidebar .user {
        text-align: center;
        font-size: 12px;
    }

    .sidebar a {
        text-align: center;
        padding: 8px 10px;
        font-size: 12px;
    }

    .main-content {
        padding: 14px 10px;
    }

    .welcome-box {
        padding: 14px 16px;
    }

    .welcome-box h2 {
        font-size: 16px;
    }

    .welcome-box p {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px 10px;
    }

    .stat-card h3 {
        font-size: 18px;
    }

    .stat-card p {
        font-size: 12px;
    }

    .latest-card {
        padding: 14px 16px;
    }

    .latest-card p {
        font-size: 13px;
    }

    .content-card {
        padding: 12px 14px;
        margin: 10px 0;
    }

    .content-card p {
        font-size: 13px;
    }

    .flash {
        padding: 10px 14px;
        font-size: 13px;
    }
}
/* ===== FLASH MESSAGES WITH FADE ANIMATION ===== */
.flash-message {
    padding: 12px 18px;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    text-align: center;
    color: white;
    font-weight: 500;
    max-width: 100%;
    opacity: 1;
    transition: opacity 0.8s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(0);
}

.flash-message.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none; /* جلوگیری از کلیک روی پیام محوشده */
}

.flash-message.success {
    background: #2ecc71;
}

.flash-message.error {
    background: #e74c3c;
}

.subscription-status {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-right: 4px solid #6c5ce7;
}

/* ===== AUTH PAGES (Login & Register) ===== */
.auth-body {
    background: linear-gradient(135deg, #f5f6fa 0%, #e8eaf6 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    margin: 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.auth-header h1 {
    font-size: 24px;
    margin: 15px 0 5px;
    color: #2c3e50;
}

.auth-header p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 25px;
}

.auth-logo {
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    color: #6c5ce7;
}

.auth-form {
    text-align: right;
}

.auth-form label {
    display: block;
    margin: 12px 0 5px;
    font-weight: 500;
    font-size: 14px;
    color: #2c3e50;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 14px;
    font-family: "Vazirmatn", sans-serif;
    transition: border 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: #6c5ce7;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-top: 25px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Vazirmatn", sans-serif;
}

.auth-btn:hover {
    background: #5a4bd1;
}

.auth-footer {
    margin-top: 25px;
    font-size: 14px;
    color: #7f8c8d;
}

.auth-footer a {
    color: #6c5ce7;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer p {
    margin: 5px 0;
}

.flash-message {
    margin-bottom: 15px;
}

/* ===== HISTORY PAGE ===== */
.history-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-new-content {
    background: #6c5ce7;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    display: inline-block;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-family: "Vazirmatn", sans-serif;
}

.search-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    font-family: "Vazirmatn", sans-serif;
}

.clear-search {
    background: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    font-weight: 500;
}

.result-count {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.history-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.history-card-header h3 {
    font-size: 18px;
    margin: 0 0 5px 0;
}

.content-meta {
    color: #7f8c8d;
    font-size: 14px;
}

.content-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: #ecf0f1;
    color: #2c3e50;
}

.badge-type {
    background: #e8daef;
    color: #6c3483;
}

.badge-tone {
    background: #d4efdf;
    color: #1e8449;
}

.badge-date {
    background: #d6eaf8;
    color: #154360;
}

.history-card-body {
    margin-bottom: 15px;
}

.field-group {
    margin-bottom: 12px;
    position: relative;
}

.field-label {
    font-weight: 600;
    display: inline-block;
    width: 100%;
    margin-bottom: 3px;
    color: #2c3e50;
}

.field-value {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    display: block;
}

.reel-scenario, .caption-text {
    white-space: pre-wrap;
    font-family: inherit;
}

.copy-btn {
    position: absolute;
    left: 8px;
    top: 30px;
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: "Vazirmatn", sans-serif;
}

.copy-btn:hover {
    background: #d35400;
}

.copy-all-btn {
    display: block;
    width: 100%;
    background: #2ecc71;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    font-family: "Vazirmatn", sans-serif;
    font-size: 15px;
}

.history-card-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.action-link {
    text-decoration: none;
    font-weight: 500;
}

.action-link.edit {
    color: #3498db;
}

.action-link.delete {
    color: #e74c3c;
}

.empty-state {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    color: #7f8c8d;
}

.empty-state .btn-new-content {
    margin-top: 15px;
}

/* ===== EDIT PAGE ===== */
.edit-form {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.edit-form label {
    font-weight: 600;
    margin-top: 15px;
    display: block;
}

.edit-form input, .edit-form select, .edit-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    font-family: "Vazirmatn", sans-serif;
    font-size: 14px;
}

.edit-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.save-btn {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-family: "Vazirmatn", sans-serif;
    font-size: 16px;
}

.cancel-btn {
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    display: inline-block;
}

/* ===== CUSTOM TOAST NOTIFICATION ===== */
.custom-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.custom-toast.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.custom-toast.success {
    background: #2ecc71;
}

.custom-toast.error {
    background: #e74c3c;
}

/* ===== ADMIN PANEL ===== */
.admin-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.admin-section {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th {
    background: #2c3e50;
    color: white;
    padding: 12px;
    text-align: right;
    font-size: 14px;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

.admin-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    margin-right: 8px;
}

.plan-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.plan-free {
    background: #d5dbdb;
    color: #2c3e50;
}

.plan-silver {
    background: #d4efdf;
    color: #1e8449;
}

.plan-gold {
    background: #fdebd0;
    color: #b9770e;
}

.plan-form {
    display: flex;
    gap: 8px;
}

.plan-select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-family: "Vazirmatn", sans-serif;
}

.plan-save-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: "Vazirmatn", sans-serif;
    font-size: 13px;
}

.plan-save-btn:hover {
    background: #2980b9;
}

.flash-message.warning {
    background: #f39c12;
}

.plan-diamond {
    background: #e8daef;
    color: #6c3483;
}

/* ===== ADMIN DASHBOARD ===== */
.admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}
.admin-header {
    margin-bottom: 30px;
}
.admin-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}
.admin-stats .stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.admin-stats .stat-card:hover {
    transform: translateY(-3px);
}
.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.plan-summary {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.plan-item {
    background: white;
    border-radius: 12px;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    flex: 1;
    min-width: 100px;
}
.plan-item span {
    font-size: 14px;
    color: #7f8c8d;
}
.plan-item strong {
    font-size: 1.8rem;
    margin-top: 5px;
}
.plan-item.free { border-bottom: 4px solid #bdc3c7; }
.plan-item.silver { border-bottom: 4px solid #7f8c8d; }
.plan-item.gold { border-bottom: 4px solid #f1c40f; }
.plan-item.diamond { border-bottom: 4px solid #8e44ad; }

/* جدول محتوا */
.admin-table td {
    font-size: 14px;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #6c5ce7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   MOBILE RESPONSIVE FIX FOR ADMIN / DASHBOARD / HISTORY / SUPPORT
============================================================ */

@media (max-width: 768px) {

    /* Layout اصلی روی موبایل */
    .layout {
        flex-direction: column;
        display: flex;
    }

    /* سایدبار */
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        min-height: auto;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 12px 15px;
    }

    .sidebar a {
        display: inline-block;
        margin: 0;
        padding: 8px 12px;
        font-size: 13px;
    }

    .sidebar h3 {
        font-size: 16px;
        margin: 0;
        padding: 0;
        border: none;
        flex: 1 1 auto;
    }

    /* محتوای اصلی */
    .main-content {
        padding: 15px 12px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* کارت‌های آماری و پلن‌ها */
    .admin-stats,
    .plan-summary,
    .stats-grid,
    .pricing-grid,
    .trust-grid,
    .compare-grid,
    .diff-grid,
    .output-grid,
    .solution-steps {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px;
        width: 100%;
    }

    /* کارت‌های داخل این بخش‌ها */
    .stat-card,
    .plan-item,
    .price-card,
    .trust-card,
    .compare-card,
    .diff-item,
    .output-card,
    .step-card {
        width: 100% !important;
        min-width: unset !important;
        margin: 0 auto;
    }

    /* جداول با اسکرول افقی */
    .admin-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* فرم‌های تغییر پلن */
    .plan-form {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .plan-select,
    .plan-save-btn {
        width: 100%;
        box-sizing: border-box;
    }

    /* فرم‌های اصلی */
    form,
    .support-form,
    .auth-form {
        padding: 15px !important;
    }

    /* دکمه‌ها و ورودی‌ها */
    button,
    input,
    select,
    textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 14px;
    }

    .btn-new-content,
    .search-btn,
    .clear-search,
    .copy-btn,
    .copy-all-btn,
    .save-btn,
    .cancel-btn,
    .support-btn,
    .price-btn {
        width: 100%;
        margin: 6px 0;
        text-align: center;
        display: block;
    }

    /* بخش تیکت و پشتیبانی */
    .support-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .support-form,
    .support-faq,
    .support-tickets {
        width: 100%;
        padding: 15px;
    }

    .ticket-item {
        padding: 12px;
        margin-bottom: 12px;
    }

    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* دکمه‌های کپی در تاریخچه */
    .field-group {
        position: relative;
        padding-left: 0;
    }

    .copy-btn {
        position: static;
        margin-top: 6px;
        width: auto;
        display: inline-block;
    }

    /* عنوان‌ها */
    h1, h2, h3 {
        font-size: 1.3rem;
        line-height: 1.4;
    }

    .admin-header h1 {
        font-size: 22px;
    }
}

/* موبایل‌های خیلی کوچک */
@media (max-width: 480px) {

    .sidebar a {
        font-size: 12px;
        padding: 6px 10px;
    }

    .main-content {
        padding: 10px 8px;
    }

    .stat-card h3 {
        font-size: 18px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}