/* ========================================
   WWM Brasileiro - Translate Page Styles
   ======================================== */

/* ========== PAGE LAYOUT ========== */
main {
    padding-top: 80px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ========== PAGE HEADER ========== */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
}

#loading p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* Loading progress steps */
.loading-progress {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.loading-step.active {
    background: rgba(201, 162, 39, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.loading-step.active i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== STATS BAR ========== */
.stats-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 150px;
}

.stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ========== PROGRESS BAR ========== */
.progress-bar-container {
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.progress-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-bar-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.progress-bar-percent {
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.progress-bar {
    height: 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-light));
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========== CUSTOM CONFIRM/ALERT MODAL ========== */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.custom-modal-box {
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 16px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from { transform: scale(0.9) translateY(-20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.custom-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.custom-modal-header i {
    font-size: 1.5rem;
}

.custom-modal-header.confirm i { color: var(--gold-primary); }
.custom-modal-header.warning i { color: #f59e0b; }
.custom-modal-header.error i { color: #ef4444; }
.custom-modal-header.success i { color: var(--success); }
.custom-modal-header.info i { color: #3b82f6; }
.custom-modal-header.danger i { color: #ef4444; }

.custom-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.custom-modal-body {
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.custom-modal-body p {
    margin: 0 0 1rem 0;
}

.custom-modal-body p:last-child {
    margin-bottom: 0;
}

.custom-modal-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    transition: border-color 0.2s;
}

.custom-modal-input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.custom-modal-input::placeholder {
    color: var(--text-muted);
}

.custom-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.2);
}

.custom-modal-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.custom-modal-btn-cancel {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
}

.custom-modal-btn-cancel:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.custom-modal-btn-confirm {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    color: var(--bg-dark);
}

.custom-modal-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.custom-modal-btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    border: none;
    color: white;
}

.custom-modal-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.custom-modal-btn-success {
    background: linear-gradient(135deg, var(--success), #166534);
    border: none;
    color: white;
}

.custom-modal-btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* ========== KEYBOARD HINTS ========== */
.keyboard-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.keyboard-hint kbd {
    background: var(--bg-dark);
    border: 1px solid var(--text-muted);
    border-radius: 3px;
    padding: 0.1rem 0.4rem;
    font-family: monospace;
    font-size: 0.65rem;
}

/* ========== FILE TABS ========== */
.file-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.file-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid rgba(201, 162, 39, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.file-tab:hover {
    border-color: var(--gold-primary);
    color: var(--text-primary);
}

.file-tab.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-color: var(--gold-primary);
    color: var(--bg-dark);
}

.file-tab i {
    font-size: 1.1rem;
}

.tab-count {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.file-tab.active .tab-count {
    background: rgba(0, 0, 0, 0.3);
}

/* ========== CONTROLS ========== */
.controls {
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.controls-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--bg-dark);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--gold-primary);
}

.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--gold-primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--bg-dark);
}

/* ========== TABLE ========== */
.table-container {
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead {
    position: sticky;
    top: 0;
    background: var(--bg-medium);
    z-index: 10;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gold-primary);
    border-bottom: 2px solid rgba(201, 162, 39, 0.3);
    white-space: nowrap;
}

td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

tr:hover {
    background: rgba(201, 162, 39, 0.05);
}

.col-id {
    width: 180px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.col-id code {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    word-break: break-all;
}

.col-original {
    min-width: 300px;
    max-width: 400px;
}

.col-translation {
    min-width: 300px;
    max-width: 400px;
}

.col-actions {
    width: 100px;
    text-align: center;
}

.text-cell {
    word-break: break-word;
    line-height: 1.5;
}

.text-original {
    color: var(--text-secondary);
}

.text-translated {
    color: var(--success);
}

.text-empty {
    color: var(--text-muted);
    font-style: italic;
}

/* ========== ID WRAPPER WITH COPY ========== */
.id-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-copy-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

tr:hover .btn-copy-id {
    opacity: 1;
}

.btn-copy-id:hover {
    background: rgba(201, 162, 39, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-copy-id.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: #4ade80;
    color: #4ade80;
    opacity: 1;
}

/* ========== ACTION BUTTONS ========== */
.btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    border-radius: 6px;
    color: var(--bg-dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-pending {
    background: rgba(139, 38, 53, 0.3);
    color: #ff6b6b;
}

.status-done {
    background: rgba(46, 125, 50, 0.3);
    color: #69db7c;
}

/* ========== CART INDICATOR STYLES ========== */
/* Row when item is in cart */
tr.in-cart {
    background: rgba(74, 222, 128, 0.06) !important;
    border-left: 3px solid #4ade80;
}

tr.in-cart:hover {
    background: rgba(74, 222, 128, 0.12) !important;
}

/* Badge inline next to ID */
.cart-badge-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-size: 0.6rem;
    border-radius: 4px;
    margin-right: 0.4rem;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Button when item is in cart */
.btn-in-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-in-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.btn-in-cart i {
    font-size: 0.75rem;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    flex-wrap: wrap;
}

.pagination button {
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--bg-dark);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 1rem;
}

/* ========== LOADING ========== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--text-secondary);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-light);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* ========== HOW TO HELP ========== */
.how-to-help {
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.how-to-help h3 {
    color: var(--gold-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.how-to-help ol {
    margin-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.how-to-help li {
    margin-bottom: 0.3rem;
}

/* ========== GITHUB AUTH BUTTON ========== */
.github-login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #238636;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

.github-login-btn:hover {
    background: #2ea043;
    color: white;
}

.github-login-btn.logged-in {
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
}

.github-login-btn .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.github-login-btn .logout-icon {
    margin-left: 0.5rem;
    opacity: 0.7;
}

.github-login-btn .logout-icon:hover {
    opacity: 1;
    color: #ff6b6b;
}

/* ========== NEW ISSUES NOTIFICATION ========== */
.new-issues-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.new-issues-notification.show {
    transform: translateX(0);
}

.new-issues-notification i {
    font-size: 1.1rem;
    animation: bellRing 0.5s ease-in-out;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-15deg); }
    60% { transform: rotate(10deg); }
    80% { transform: rotate(-10deg); }
}

/* ========== ADMIN PANEL ========== */
.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-title-section h2 {
    margin-bottom: 0.25rem;
}

.admin-refresh-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-dark);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.admin-countdown {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

.admin-countdown i {
    font-size: 0.75rem;
    animation: spin 2s linear infinite;
    animation-play-state: paused;
}

.admin-countdown.active i {
    animation-play-state: running;
    color: var(--gold-primary);
}

.admin-refresh-btn {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
    border: none;
    color: var(--bg-dark);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.admin-refresh-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
}

.admin-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.admin-refresh-btn.checking i {
    animation: spin 0.8s linear infinite;
}

.admin-issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.admin-issue-card {
    background: var(--bg-dark);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-issue-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.admin-issue-number {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--bg-dark);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.admin-issue-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.admin-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-meta-author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-meta-author img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
}

.admin-meta-author span {
    font-size: 0.8rem;
    color: var(--gold-light);
    font-weight: 500;
}

.admin-meta-date, .admin-meta-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-meta-count {
    background: rgba(46, 125, 50, 0.2);
    color: #69db7c;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.admin-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-card-actions button {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.admin-btn-view {
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
}

.admin-btn-view:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
}

.admin-btn-approve {
    background: rgba(46, 125, 50, 0.15);
    border: 1px solid var(--success);
    color: #69db7c;
}

.admin-btn-approve:hover {
    background: var(--success);
    color: white;
}

.admin-btn-reject {
    background: rgba(139, 38, 53, 0.15);
    border: 1px solid var(--red-primary);
    color: #ff6b6b;
}

.admin-btn-reject:hover {
    background: var(--red-primary);
    color: white;
}

/* ========== ADMIN REVIEW MODAL ========== */
.admin-review-modal {
    max-width: 900px !important;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.admin-review-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.admin-modal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.admin-info-item {
    text-align: center;
}

.admin-info-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.admin-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-info-value a {
    color: var(--gold-primary);
    text-decoration: none;
}

.admin-info-value a:hover {
    text-decoration: underline;
}

.admin-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    padding-right: 0.5rem;
    flex: 1;
    min-height: 0;
}

.admin-suggestion-item {
    background: var(--bg-dark);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-suggestion-item.rejected {
    opacity: 0.5;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.admin-suggestion-item.rejected .admin-suggestion-header {
    background: rgba(239, 68, 68, 0.15);
}

.admin-suggestion-item.rejected .admin-edit-suggestion {
    pointer-events: none;
    opacity: 0.5;
}

.admin-reject-line-btn {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.admin-reject-line-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.admin-reject-line-btn.active {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.admin-suggestion-id {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--gold-primary);
    background: var(--bg-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.admin-suggestion-index {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
}

.admin-suggestion-file {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.admin-suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(201, 162, 39, 0.1);
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-suggestion-body {
    padding: 0.75rem;
}

.admin-text-row {
    margin-bottom: 0.5rem;
}

.admin-text-row:last-child {
    margin-bottom: 0;
}

.admin-text-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.admin-text-label i {
    font-size: 0.65rem;
}

.admin-text-content {
    background: var(--bg-medium);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: break-word;
    white-space: pre-wrap;
    max-height: 80px;
    overflow-y: auto;
}

.admin-text-content.original {
    color: var(--text-secondary);
    border-left: 3px solid #6366f1;
}

.admin-text-content.current {
    color: #fbbf24;
    border-left: 3px solid #fbbf24;
}

.admin-text-content.suggestion {
    color: #34d399;
    border-left: 3px solid #34d399;
}

.admin-text-content.empty {
    color: var(--text-muted);
    font-style: italic;
}

.admin-edit-suggestion {
    width: 100%;
    min-height: 45px;
    max-height: 100px;
    padding: 0.4rem 0.6rem;
    background: var(--bg-medium);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-left: 3px solid #34d399;
    border-radius: 6px;
    color: #34d399;
    font-size: 0.8rem;
    font-family: inherit;
    resize: vertical;
}

.admin-edit-suggestion:focus {
    outline: none;
    border-color: #34d399;
}

.admin-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.admin-modal-actions .btn-reject {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-modal-actions .btn-reject:hover {
    background: #ef4444;
    color: white;
}

.admin-modal-actions .btn-approve {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.admin-modal-actions .btn-approve:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.admin-modal-actions .btn-cancel {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.admin-modal-actions .btn-cancel:hover {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.admin-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.admin-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold-primary);
    opacity: 0.5;
}

.admin-empty-state p {
    font-size: 1rem;
}

/* Scrollbar para lista de sugestões */
.admin-suggestions-list::-webkit-scrollbar {
    width: 6px;
}

.admin-suggestions-list::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 3px;
}

.admin-suggestions-list::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}

.admin-suggestions-list::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Admin Panel Container */
#admin-panel {
    margin-top: 1.5rem;
}

.admin-panel-container {
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 39, 0.15);
}

/* ========== SUGGESTION MODAL ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.suggestion-box {
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

/* Modal dinâmico (token, sucesso, loading, etc) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
}

.modal .modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0.5rem;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group label i {
    margin-right: 0.4rem;
    color: var(--gold-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.form-control:disabled {
    background: var(--bg-medium);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-control.readonly-text {
    background: var(--bg-medium);
    color: var(--text-secondary);
    min-height: 80px;
    line-height: 1.5;
}

.form-control.suggestion-input {
    min-height: 100px;
    border-color: var(--gold-primary);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 0.75rem 1.5rem;
    background: var(--bg-dark);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-submit {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    border-radius: 8px;
    color: var(--bg-dark);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.id-display {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--gold-primary);
    background: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

.cart-empty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* ========== SUGGESTION CART ========== */
.suggestion-cart {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1500;
}

.cart-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    color: var(--bg-dark);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.cart-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(201, 162, 39, 0.5);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--red-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge.hidden {
    display: none;
}

.cart-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 400px;
    max-height: 500px;
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
}

.cart-panel.active {
    display: flex;
}

.cart-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h4 {
    color: var(--gold-primary);
    font-size: 1rem;
    margin: 0;
}

.cart-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s;
}

.cart-clear:hover {
    color: var(--red-primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    max-height: 300px;
}

.cart-item {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.cart-item-id {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--gold-primary);
    margin-bottom: 0.25rem;
}

.cart-item-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem;
}

.cart-item-remove:hover {
    color: var(--red-primary);
}

.cart-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cart-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.cart-submit {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    border-radius: 8px;
    color: var(--bg-dark);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.cart-submit:hover {
    transform: translateY(-2px);
}

.cart-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========== FOOTER (TRANSLATE) ========== */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(201, 162, 39, 0.1);
    margin-top: 2rem;
}

footer a {
    color: var(--gold-primary);
    text-decoration: none;
}

/* ========== TRANSLATION MODAL - DESKTOP & MOBILE LAYOUTS ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    z-index: 5000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

/* ===== DESKTOP LAYOUT - Wide & Expansive ===== */
.suggestion-box {
    background: linear-gradient(180deg, #18181f 0%, #111116 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 70rem;
    max-height: 90vh;
    overflow: hidden;
    clip-path: content-box;
    box-shadow: 
        0 32px 64px -16px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 80px rgba(201, 162, 39, 0.08);
    animation: modalEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header - Desktop */
.suggestion-box .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.06) 0%, transparent 100%);
}

.suggestion-box .modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin: 0;
    text-shadow: 0 0 30px rgba(201, 162, 39, 0.3);
}

.suggestion-box .modal-header h3 i {
    color: var(--gold-light);
    font-size: 1.3rem;
}

.suggestion-box .modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-box .modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    transform: scale(1.05);
}

/* Modal Body - Desktop: Two Column Layout */
.suggestion-box .modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-height: calc(85vh - 160px);
    overflow: auto;
}

/* Left Panel - Source Text */
.suggestion-box .modal-body .left-panel {
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

/* Right Panel - Translation Input */
.suggestion-box .modal-body .right-panel {
    padding: 2rem;
    overflow-y: auto;
    background: rgba(201, 162, 39, 0.02);
}

/* Panel Titles */
.suggestion-box .panel-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.suggestion-box .panel-title i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.suggestion-box .panel-title.source i {
    color: var(--text-secondary);
}

.suggestion-box .panel-title.translation i {
    color: var(--gold-primary);
}

/* Form Groups - Desktop */
.suggestion-box .form-group {
    margin-bottom: 1.5rem;
}

.suggestion-box .form-group:last-child {
    margin-bottom: 0;
}

.suggestion-box .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.6rem;
}

.suggestion-box .form-group label i {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ID Display - Desktop */
.suggestion-box .id-display {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-primary);
    letter-spacing: 0.5px;
}

/* Textareas - Desktop */
.suggestion-box .form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    resize: none;
    transition: all 0.2s ease;
}

.suggestion-box .form-control:focus {
    outline: none;
    border-color: rgba(201, 162, 39, 0.5);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.suggestion-box .form-control::placeholder {
    color: var(--text-muted);
}

/* Read-only textareas - Desktop */
.suggestion-box .readonly-text {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: default;
    min-height: 100px;
}

.suggestion-box .readonly-text:focus {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

/* Suggestion Input - Desktop (larger) */
.suggestion-box .suggestion-input {
    min-height: 180px;
    border-color: rgba(201, 162, 39, 0.25);
    background: rgba(201, 162, 39, 0.05);
    font-size: 1rem;
}

.suggestion-box .suggestion-input:focus {
    background: rgba(201, 162, 39, 0.1);
    border-color: var(--gold-primary);
}

/* Form Hint - Desktop */
.suggestion-box .form-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid rgba(201, 162, 39, 0.4);
}

/* Glossary Hints in left panel */
.suggestion-box .glossary-hints {
    margin-top: 1.5rem;
    background: rgba(201, 162, 39, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
}

/* Bulk Edit in left panel */
.suggestion-box .bulk-edit-section {
    margin-top: 1.5rem;
}

/* Modal Footer - Desktop */
.suggestion-box .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.suggestion-box .keyboard-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.suggestion-box .keyboard-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.suggestion-box .modal-footer .btn-group {
    display: flex;
    gap: 0.75rem;
}

.suggestion-box .btn-cancel {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-box .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

.suggestion-box .btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 10px;
    color: #0a0a0f;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.25);
}

.suggestion-box .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.suggestion-box .btn-submit:active {
    transform: translateY(0);
}

/* ========== CHARACTER COUNTER ========== */
.char-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

/* ========== VARIABLE SYSTEM STYLES ========== */
/* Variable name in glossary hints */
.term-hint-variable {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding: 0.3rem 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 4px;
}

.variable-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.btn-copy-var {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    color: #a78bfa;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-var:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #a78bfa;
}

/* Link to view term in glossary page */
.btn-view-glossary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 4px;
    color: var(--gold-primary);
    font-size: 0.6rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view-glossary:hover {
    background: rgba(201, 162, 39, 0.2);
    border-color: var(--gold-primary);
    transform: scale(1.1);
}

/* Variable Preview Box */
.variable-preview {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.preview-header i {
    font-size: 0.75rem;
}

.preview-warning {
    margin-left: auto;
    color: #fbbf24;
    font-size: 0.65rem;
}

.preview-content {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.char-counter .counter-current {
    font-weight: 600;
    color: var(--text-primary);
}

.char-counter .counter-separator {
    color: var(--text-muted);
}

.char-counter .counter-original {
    color: var(--text-secondary);
}

.char-counter .counter-diff {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.char-counter.neutral .counter-diff {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.char-counter.longer .counter-diff {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.char-counter.shorter .counter-diff {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.char-counter.warning .counter-diff {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* ========== VARIABLE VALIDATION ERRORS ========== */
.preview-header.preview-error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
    padding: 0.5rem;
    border-radius: 6px 6px 0 0;
    margin: -0.75rem -0.75rem 0.5rem -0.75rem;
}

.preview-errors {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.preview-error-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #fca5a5;
    line-height: 1.4;
}

.preview-error-item i {
    color: #f87171;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.preview-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-help code {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-primary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
}

/* ===== MOBILE LAYOUT - Stacked & Compact ===== */
@media (max-width: 900px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .suggestion-box {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
        animation: mobileSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    @keyframes mobileSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .suggestion-box .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .suggestion-box .modal-header h3 {
        font-size: 1rem;
    }
    
    /* Single column on mobile */
    .suggestion-box .modal-body {
        display: block;
        max-height: calc(95vh - 140px);
        overflow-y: auto;
        padding: 1.25rem;
    }
    
    .suggestion-box .modal-body .left-panel,
    .suggestion-box .modal-body .right-panel {
        padding: 0;
        border: none;
        background: transparent;
    }
    
    .suggestion-box .modal-body .left-panel {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    .suggestion-box .panel-title {
        font-size: 0.65rem;
        margin-bottom: 1rem;
    }
    
    .suggestion-box .form-group {
        margin-bottom: 1rem;
    }
    
    .suggestion-box .form-control {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .suggestion-box .readonly-text {
        min-height: 60px;
    }
    
    .suggestion-box .suggestion-input {
        min-height: 120px;
    }
    
    .suggestion-box .modal-footer {
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .suggestion-box .keyboard-hint {
        display: none;
    }
    
    .suggestion-box .modal-footer .btn-group {
        width: 100%;
        display: flex;
        gap: 0.75rem;
    }
    
    .suggestion-box .btn-cancel,
    .suggestion-box .btn-submit {
        flex: 1;
        justify-content: center;
        padding: 0.875rem 1rem;
    }
}

/* ========== UTILITY ========== */
.hidden {
    display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .controls-row {
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .filter-group {
        width: 100%;
        justify-content: center;
    }
    
    .stats-bar {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
    }
    
    .col-id {
        display: none;
    }
    
    td, th {
        padding: 0.75rem 0.5rem;
    }
    
    .cart-panel {
        width: calc(100vw - 2rem);
        right: -1rem;
    }
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast-notification {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 2000;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-notification.success {
    background: var(--success);
    color: white;
}

.toast-notification.error {
    background: var(--red-primary);
    color: white;
}

.toast-notification.warning {
    background: #f59e0b;
    color: white;
}

.toast-notification.info {
    background: #3b82f6;
    color: white;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========== GLOSSARY HINTS (Modal) ========== */
.glossary-hints {
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 10px;
    padding: 1rem;
}

.glossary-hints label {
    color: var(--gold-primary) !important;
    margin-bottom: 0.75rem !important;
}

.glossary-terms-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.glossary-term-hint {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--term-color, var(--gold-primary));
    border-radius: 6px;
    padding: 0.75rem;
}

.term-hint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.term-hint-original {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.term-hint-chinese {
    font-size: 1rem;
    color: var(--gold-primary);
}

.term-hint-translation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.term-hint-translation i.no-translate {
    color: #ef4444;
}

.term-hint-translation i.translate {
    color: var(--success);
}

.term-hint-context {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

/* ========== BULK EDIT SECTION (Modal) ========== */
.bulk-edit-section {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 10px;
    padding: 1rem;
}

.bulk-edit-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #60a5fa;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.bulk-edit-header i {
    font-size: 1.1rem;
}

.bulk-edit-header strong {
    color: #93c5fd;
    font-weight: 700;
}

.bulk-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.bulk-checkbox:hover {
    background: rgba(59, 130, 246, 0.15);
}

.bulk-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

.duplicate-ids-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.duplicate-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    color: var(--text-muted);
}

.duplicate-id.translated {
    border-left: 2px solid var(--success);
}

.duplicate-id.pending {
    border-left: 2px solid #f59e0b;
}

.duplicate-id.current {
    background: rgba(201, 162, 39, 0.2);
    color: var(--gold-primary);
    font-weight: 600;
}

.duplicate-more {
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 0.2rem 0.5rem;
    font-style: italic;
}

/* ========== EXISTING ISSUES WARNING (Non-blocking) ========== */
.existing-issues-warning {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 10px;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.existing-issues-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4ade80;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.existing-issues-header i {
    font-size: 1.1rem;
}

.existing-issues-header strong {
    color: #86efac;
    font-weight: 700;
}

.existing-issues-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.existing-issues-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.existing-issue-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    color: #86efac;
    text-decoration: none;
    transition: all 0.2s ease;
}

.existing-issue-tag:hover {
    background: rgba(34, 197, 94, 0.25);
    transform: translateY(-1px);
}

.existing-issue-tag i {
    font-size: 0.65rem;
}

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

/* ========== ADMIN MODAL GLOSSARY HINTS ========== */
.admin-glossary-hints {
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 10px;
    padding: 0.75rem;
    margin: 0.75rem 0;
}

.admin-glossary-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 0.5rem;
}

.admin-glossary-header i {
    font-size: 0.9rem;
}

.admin-glossary-terms {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-glossary-term {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--term-color, #c9a227);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.admin-glossary-term-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.admin-glossary-original {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.admin-glossary-chinese {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.admin-glossary-translation {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.admin-glossary-translation i.translate {
    color: var(--success);
}

.admin-glossary-translation i.no-translate {
    color: #ef4444;
}

.admin-glossary-variable {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-var-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    background: rgba(201, 162, 39, 0.15);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--gold-primary);
}

.admin-copy-var-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-copy-var-btn:hover {
    background: rgba(201, 162, 39, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.admin-glossary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.6rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-glossary-link:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: #a78bfa;
    color: #a78bfa;
}

.admin-glossary-context {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.25rem;
    opacity: 0.8;
}
