/* ============================================
   Shelem Score Counter - Main Stylesheet
   کاملاً رسپانسیو - Mobile First Design
   با فونت وزیرمتن لوکال
   ============================================ */

/* === فونت وزیرمتن (لوکال) === */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* === CSS Variables === */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a2e;
    --card-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-color: #dee2e6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    direction: rtl;
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Header === */
header {
    text-align: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: var(--font-family);
    font-weight: 700;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-family: var(--font-family);
    font-weight: 400;
}

/* === Main Content === */
main {
    flex: 1;
}

/* === Section Styles === */
.game-mode-section,
.team-section,
.game-section,
.history-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
    font-family: var(--font-family);
    font-weight: 700;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-family: var(--font-family);
    font-weight: 700;
}

h4 {
    font-family: var(--font-family);
    font-weight: 500;
}

/* === Game Header === */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.header-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* === All Buttons & Inputs - Force Vazirmatn === */
button,
.btn,
.mode-btn,
.back-btn,
.history-toggle-btn,
.edit-btn,
.delete-btn,
.cancel-edit-btn,
.close-history-btn,
input,
select,
textarea,
.score-select,
.team-input-group input,
.score-inputs input {
    font-family: var(--font-family) !important;
}

/* === Buttons === */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    width: auto;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn.primary {
    background: var(--secondary-color);
    color: white;
}

.btn.success {
    background: var(--success-color);
    color: white;
}

.btn.warning {
    background: var(--warning-color);
    color: white;
}

.btn.danger {
    background: var(--danger-color);
    color: white;
}

.btn.secondary {
    background: var(--text-secondary);
    color: white;
}

/* === Back Button === */
.back-btn {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.back-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.back-btn:active {
    transform: translateY(0);
}

/* === History Toggle Button === */
.history-toggle-btn {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    font-weight: 600;
}

.history-toggle-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* === Mode Buttons === */
.mode-btn {
    padding: 20px 40px;
    margin: 10px;
    font-size: 1.2rem;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.mode-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mode-btn.selected {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.mode-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* === Team Inputs === */
.team-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.team-input-group {
    flex: 1;
    min-width: 250px;
}

.team-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-family);
}

.team-input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.team-input-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* === Game Info === */
.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.game-mode-display,
.round-info {
    font-size: 1.1rem;
}

.game-mode-display strong,
.round-info strong {
    font-weight: 700;
}

/* === Labels === */
label,
.select-label,
.input-group label {
    font-family: var(--font-family);
    font-weight: 500;
}

/* === Score Table === */
.score-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.score-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.score-table th,
.score-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-family: var(--font-family);
}

.score-table thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.score-table thead th small {
    display: block;
    font-weight: 400;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 2px;
}

.score-table tbody tr {
    transition: var(--transition);
}

.score-table tbody tr:hover {
    background: var(--light-bg);
}

.score-table tbody td {
    font-weight: 500;
}

.score-table tbody td:first-child {
    font-weight: bold;
    background: var(--light-bg);
}

.total-row td {
    font-size: 1.2rem;
    font-weight: bold;
    background: var(--primary-color);
    color: white;
}

.total-row td strong {
    font-weight: 700;
}

/* === Round Badge === */
.round-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* === Score Cell === */
.score-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.score-cell .declared {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.score-cell .taken {
    font-size: 1.1rem;
    font-weight: 700;
}

/* === Ruler/Player Cells === */
.ruler-cell {
    background: rgba(241, 196, 15, 0.15);
}

.player-cell {
    background: rgba(52, 152, 219, 0.05);
}

/* === Action Buttons in Table === */
.action-cell {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.edit-btn,
.delete-btn {
    padding: 6px 12px;
    margin: 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    font-weight: 600;
}

.edit-btn {
    background: var(--secondary-color);
    color: white;
}

.delete-btn {
    background: var(--danger-color);
    color: white;
}

.edit-btn:hover,
.delete-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* === Add Round Section === */
.add-round-section {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.round-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 250px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.score-inputs {
    display: flex;
    gap: 10px;
}

/* === Select Dropdown === */
select.score-select {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 20px;
    padding-left: 40px;
    font-weight: 500;
}

select.score-select:focus {
    outline: none;
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

select.score-select option {
    font-family: var(--font-family);
    font-weight: 500;
}

/* === Select Wrapper === */
.select-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.select-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    background: var(--light-bg);
    padding: 4px 8px;
    border-radius: 4px;
}

/* === Edit Mode Indicator === */
.edit-mode-indicator {
    background: #fff3cd;
    border: 2px solid #f39c12;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.edit-mode-indicator span {
    color: #856404;
    font-weight: 600;
}

.cancel-edit-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.cancel-edit-btn:hover {
    opacity: 0.8;
}

/* === Score Guide === */
.score-guide {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.score-guide h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.score-guide ul {
    list-style: none;
    padding: 0;
}

.score-guide li {
    padding: 3px 0;
    color: var(--text-secondary);
    font-weight: 400;
}

.score-guide li::before {
    content: '•';
    color: var(--secondary-color);
    margin-left: 8px;
}

/* === Action Buttons === */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === History Section (بازی‌های ذخیره شده) === */
#historyList {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    padding: 15px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    border-right: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.history-item:hover {
    box-shadow: var(--shadow-sm);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.history-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.winner-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.winner-badge.winner {
    background: rgba(39, 174, 96, 0.2);
    color: var(--success-color);
}

.winner-badge.draw {
    background: rgba(243, 156, 18, 0.2);
    color: var(--warning-color);
}

.history-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.history-details span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.empty-state p {
    font-weight: 400;
}

/* === Modal (عمومی) === */
.modal {
    position: fixed;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    min-width: 300px;
    max-width: 90%;
}

.modal h3 {
    margin-bottom: 15px;
    color: var(--danger-color);
}

.modal p {
    margin-bottom: 20px;
    color: var(--text-primary);
    white-space: pre-line;
    font-weight: 400;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* === Modal تاریخچه === */
.history-modal {
    max-width: 700px;
    width: 90%;
    padding: 0;
    background: white;
}

.history-modal-content {
    padding: 25px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.history-modal-body {
    overflow-y: auto;
    max-height: 55vh;
    padding-left: 5px;
}

.history-modal-body::-webkit-scrollbar {
    width: 6px;
}

.history-modal-body::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 3px;
}

.history-modal-body::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 3px;
}

/* === History Log Header Bar === */
.history-log-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.history-log-header-bar h3 {
    margin-bottom: 0;
    color: var(--primary-color);
}

.close-history-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: 50%;
    transition: var(--transition);
}

.close-history-btn:hover {
    background: var(--light-bg);
    color: var(--danger-color);
}

/* === History Log Items (داخل مودال) === */
.history-log-item {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.history-log-item:last-child {
    border-bottom: none;
}

.history-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 5px;
}

.history-log-action {
    font-weight: 600;
    color: var(--primary-color);
}

.history-log-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.history-log-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
    font-weight: 400;
}

/* === Overlay (پس‌زمینه بلر) === */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
}

/* === Notification === */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show { opacity: 1; }
.notification-success { background: var(--success-color); }
.notification-error { background: var(--danger-color); }
.notification-warning { background: var(--warning-color); }
.notification-info { background: var(--secondary-color); }

.notification-message {
    font-weight: 500;
}

/* === Footer === */
footer {
    text-align: center;
    padding: 20px;
    color: white;
    margin-top: auto;
}

footer p {
    font-family: var(--font-family);
    font-weight: 400;
}

/* === Small text === */
small {
    font-family: var(--font-family);
    font-weight: 400;
}

/* === Strong text === */
strong {
    font-weight: 700;
}

/* === Utility Classes === */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* === Focus Styles === */
:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* === Scrollbar (عمومی) === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* === Disabled State === */
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* === Responsive Design === */

/* Tablet (768px and below) */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .team-inputs,
    .round-inputs {
        flex-direction: column;
    }
    
    .team-input-group,
    .input-group {
        min-width: 100%;
    }
    
    .score-table th,
    .score-table td {
        padding: 8px 5px;
        font-size: 0.85rem;
    }
    
    .mode-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .game-mode-section,
    .team-section,
    .game-section,
    .history-section {
        padding: 20px 15px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .game-header {
        flex-direction: column;
    }
    
    .header-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .header-buttons .back-btn,
    .header-buttons .history-toggle-btn {
        width: 100%;
        justify-content: center;
    }
    
    .game-info {
        flex-direction: column;
        text-align: center;
    }
    
    .history-modal {
        max-width: 95%;
        width: 95%;
    }
    
    .history-modal-content {
        max-height: 80vh;
        padding: 20px 15px;
    }
    
    .history-modal-body {
        max-height: 60vh;
    }
}

/* Mobile (480px and below) */
@media screen and (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    header p {
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .mode-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .game-info {
        flex-direction: column;
        text-align: center;
    }
    
    .score-table {
        font-size: 0.75rem;
    }
    
    .score-table th,
    .score-table td {
        padding: 6px 3px;
    }
    
    .score-inputs {
        flex-direction: column;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .edit-btn,
    .delete-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .score-guide {
        font-size: 0.75rem;
    }
    
    .history-modal {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
    }
    
    .history-modal-content {
        max-height: 90vh;
        border-radius: 0;
    }
    
    .history-modal-body {
        max-height: 70vh;
    }
}

/* Large Desktop (1200px and above) */
@media screen and (min-width: 1200px) {
    .container {
        padding: 40px;
    }
    
    .score-table th,
    .score-table td {
        padding: 15px;
    }
}

/* === Print Styles === */
@media print {
    body {
        background: white;
    }
    
    .add-round-section,
    .action-buttons,
    .edit-btn,
    .delete-btn,
    .back-btn,
    .game-header,
    .history-toggle-btn,
    .edit-mode-indicator,
    .history-modal,
    .overlay {
        display: none;
    }
    
    .container {
        padding: 0;
    }
    
    .game-section {
        box-shadow: none;
    }
}
/* === History Modal Footer === */
.history-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid var(--border-color);
}

.history-modal-footer .btn {
    min-width: 120px;
}
/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 2px solid var(--border-color);
}

.pagination-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--font-family);
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: var(--font-family);
}

/* === History Modal Footer === */
.history-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid var(--border-color);
}

.history-modal-footer .btn {
    min-width: 120px;
}