/* ==========================================================================
   PASHTO KEYBOARD TOOL - PREMIUM CUSTOM DESIGN STYLESHEET
   ========================================================================== */

/* --- Custom Properties & Theme System --- */
:root {
    /* Theme Variables: Dark Mode (Default) */
    --font-primary: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-pashto: 'Noto Naskh Arabic', serif;
    
    /* Colors */
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%); /* Emerald Green */
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);  /* Amber/Gold */
    --dark-emerald-glow: rgba(16, 185, 129, 0.3);
    
    --bg-app: #091e16; /* Deep dark forest green base */
    --bg-card: rgba(17, 34, 27, 0.65);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-key: rgba(255, 255, 255, 0.12);
    --bg-key: rgba(24, 45, 37, 0.8);
    --bg-key-hover: rgba(16, 185, 129, 0.15);
    --bg-key-active: rgba(16, 185, 129, 0.4);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-inverse: #091e16;
    --text-highlight: #34d399;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px var(--dark-emerald-glow);
    
    /* Layout & Utilities */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
.light-theme {
    --bg-app: #f0fdf4; /* Soft minty white */
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-card: rgba(16, 185, 129, 0.15);
    --border-key: rgba(16, 185, 129, 0.2);
    --bg-key: rgba(255, 255, 255, 0.9);
    --bg-key-hover: rgba(16, 185, 129, 0.1);
    --bg-key-active: rgba(16, 185, 129, 0.25);
    
    --text-main: #064e3b; /* Deep emerald text */
    --text-muted: #4b5563;
    --text-inverse: #f3f4f6;
    --text-highlight: #059669;
    
    --dark-emerald-glow: rgba(16, 185, 129, 0.15);
    --shadow-lg: 0 10px 25px rgba(6, 78, 59, 0.08);
}

/* --- Document Setup & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-app);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* RTL Typography Adjustment */
[dir="rtl"] {
    text-align: right;
}

/* --- Premium Background Effects --- */
.glass-bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glass-bg-pattern::before,
.glass-bg-pattern::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    transition: opacity var(--transition-normal);
}

.glass-bg-pattern::before {
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.glass-bg-pattern::after {
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
}

.light-theme .glass-bg-pattern::before {
    opacity: 0.25;
}

.light-theme .glass-bg-pattern::after {
    opacity: 0.15;
}

/* --- Layout Structure --- */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100vh;
}

/* Glassmorphism Card Utility */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: background var(--transition-normal), border var(--transition-normal), box-shadow var(--transition-normal);
}

/* --- Header Styling --- */
.app-header {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-card);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 5px rgba(16, 185, 129, 0.4));
}

.brand-text h1 {
    font-size: 1.8rem;
    font-family: var(--font-pashto);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.sub-brand {
    font-size: 0.85rem;
    font-family: var(--font-primary);
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: block;
    margin-top: -2px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.action-circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-card);
    background: var(--bg-key);
    color: var(--text-main);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    outline: none;
}

.action-circle-btn:hover {
    transform: translateY(-2px);
    background: var(--bg-key-hover);
    border-color: var(--text-highlight);
    box-shadow: var(--shadow-glow);
}

.action-circle-btn:active {
    transform: scale(0.95);
}

/* --- Workspace Section (Full-Width integrated Layout) --- */
.workspace-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    width: 100%;
}

/* HORIZONTAL TOOLBAR STRIP */
.toolbar-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-card);
    margin-bottom: 8px;
    direction: rtl; /* Keeps toolbar components aligned right-to-left beautifully */
    width: 100%;
}

.toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
    flex: 1 1 auto;
}

.toolbar-group.font-size-group {
    min-width: 180px;
    flex: 2 1 auto;
}

.toolbar-group.text-alignment-group {
    min-width: 140px;
    flex: 1 1 auto;
}

.toolbar-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-group select {
    width: 100%;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-key);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.toolbar-group select:focus {
    border-color: var(--text-highlight);
    box-shadow: var(--shadow-glow);
}

.select-with-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.select-with-hint select {
    flex: 1;
}

/* Custom styled badge for space-saving layout select sub-hint */
.toolbar-group .control-sub-hint {
    font-size: 0.7rem;
    color: var(--text-highlight);
    background: rgba(16, 185, 129, 0.1);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    height: 36px; /* Match select input height */
    font-family: var(--font-primary);
}

.toolbar-group .control-sub-hint strong {
    font-weight: 700;
    color: var(--text-main);
    background: transparent;
    padding: 0;
    border: none;
    font-size: 0.7rem;
}

/* Slider Typography Styles */
.font-size-group label span {
    color: var(--text-highlight);
    font-weight: 700;
}

.toolbar-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-card);
    outline: none;
    margin: 15px 0 8px 0; /* Align with input elements vertically */
}

.toolbar-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-gradient);
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    transition: transform var(--transition-fast);
}

.toolbar-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Align buttons */
.toolbar-group .align-buttons {
    display: flex;
    gap: 6px;
    width: 100%;
}

.toolbar-group .align-btn {
    flex: 1;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-card);
    background: var(--bg-key);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
}

.toolbar-group .align-btn:hover {
    background: var(--bg-key-hover);
    color: var(--text-main);
}

.toolbar-group .align-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Mobile responsive media rules for strip toolbar */
@media (max-width: 768px) {
    .toolbar-strip {
        gap: 12px;
    }
    .toolbar-group {
        min-width: 120px;
    }
    .toolbar-group.font-size-group {
        min-width: 100%; /* Force size slider full width on tablet/mobile */
        order: 5; /* Place at the bottom of toolbar list */
    }
}

@media (max-width: 550px) {
    .toolbar-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .toolbar-group {
        width: 100%;
        min-width: 100%;
    }
    .toolbar-group .control-sub-hint {
        height: auto;
        padding: 6px 10px;
    }
}

/* Editor Panel */
.editor-panel {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.textarea-wrapper {
    position: relative;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-card);
    overflow: hidden;
    transition: border-color var(--transition-normal);
    background: rgba(0, 0, 0, 0.15);
}

.textarea-wrapper:focus-within {
    border-color: var(--text-highlight);
    box-shadow: var(--shadow-glow);
}

#pashtoTextArea {
    width: 100%;
    height: 250px;
    padding: 20px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-pashto);
    font-size: 26px;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    direction: rtl;
    transition: font-size var(--transition-fast), font-family var(--transition-normal);
}

.light-theme .textarea-wrapper {
    background: rgba(255, 255, 255, 0.4);
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

.text-stats {
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    align-items: center;
}

.text-stats strong {
    color: var(--text-main);
}

.text-stats .separator {
    color: var(--border-card);
}

.editor-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* General Button Styles */
.btn {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    outline: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-key);
    border: 1px solid var(--border-card);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.btn-accent {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-accent:hover {
    opacity: 0.9;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

/* --- Virtual Keyboard Section --- */
.keyboard-section {
    padding: 20px;
    direction: ltr; /* Virtual keyboard keys structure is set to left-to-right (grid layout is same as QWERTY) */
}

.keyboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.keyboard-status {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.keyboard-toggle-indicators {
    display: flex;
    gap: 10px;
}

.kb-indicator {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--bg-key);
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.kb-indicator.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

/* Keyboard Grid */
.keyboard-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.keyboard-row {
    display: flex;
    gap: 6px;
    width: 100%;
}

/* Keycaps Mechanical Styling */
.keycap {
    height: 52px;
    flex: 1;
    border-radius: var(--radius-sm);
    background: var(--bg-key);
    border: 1px solid var(--border-key);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px 8px;
    cursor: pointer;
    user-select: none;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
}

.keycap:hover {
    background: var(--bg-key-hover);
    border-color: var(--text-highlight);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.keycap:active, .keycap.active-press {
    background: var(--bg-key-active);
    border-color: var(--text-highlight);
    transform: scale(0.96) translateY(1px);
    box-shadow: var(--shadow-glow);
}

/* Keycaps Labels */
.keycap .pashto-lbl {
    font-family: var(--font-pashto);
    font-size: 1.3rem;
    align-self: center;
    font-weight: 600;
    pointer-events: none;
    line-height: 1;
}

.keycap .english-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    align-self: flex-start;
    pointer-events: none;
    text-transform: uppercase;
}

/* Special Broad Keys Caps */
.keycap.broad-2 { flex: 2; }
.keycap.broad-2-5 { flex: 2.5; }
.keycap.broad-3 { flex: 3; }
.keycap.space-key { flex: 8; }

.keycap.control-key {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.keycap.control-key .pashto-lbl {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.keycap.control-key:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--text-highlight);
}

.light-theme .keycap.control-key {
    background: rgba(6, 78, 59, 0.05);
}

/* Specific styling for active lock/indicators */
.keycap.active-lock {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

.keycap.active-lock .english-lbl {
    color: rgba(255, 255, 255, 0.8);
}

.keycap.active-lock .pashto-lbl {
    color: white;
}

/* Make virtual keyboard keys look perfect on small screens */
@media (max-width: 768px) {
    .keyboard-section {
        padding: 10px;
    }
    
    .keycap {
        height: 44px;
        padding: 3px 4px;
    }
    
    .keycap .pashto-lbl {
        font-size: 1rem;
    }
    
    .keycap .english-lbl {
        font-size: 0.55rem;
    }
    
    .keyboard-row {
        gap: 4px;
    }
}

/* --- Phrase Pad Section --- */
.phrase-pad-section {
    padding: 24px;
    direction: rtl;
}

.phrase-pad-section h2 {
    font-size: 1.25rem;
    font-family: var(--font-pashto);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.phrase-pad-section h2 i {
    color: #f59e0b;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.phrase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.phrase-btn {
    background: var(--bg-key);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-main);
    font-family: var(--font-pashto);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    outline: none;
}

.phrase-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

.phrase-btn:active {
    transform: scale(0.97);
}

.phrase-btn .translation {
    font-family: var(--font-primary);
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: uppercase;
}

.phrase-btn:hover .translation {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Footer Styling --- */
.app-footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-card);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Help Modal Styling --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-card);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    left: 15px; /* RTL modal close button is on left */
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    outline: none;
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: #ef4444;
}

.modal-content h2 {
    font-family: var(--font-pashto);
    font-size: 1.45rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--text-highlight);
    padding-bottom: 10px;
}

.modal-content h2 i {
    color: var(--text-highlight);
}

.help-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.help-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-block h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-highlight);
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-block p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
}

.help-block ul {
    list-style: none;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.help-block ul li {
    font-size: 0.9rem;
    position: relative;
}

.help-block ul li::before {
    content: '•';
    color: var(--text-highlight);
    font-weight: 800;
    position: absolute;
    right: -12px;
}

/* Special Chars Table */
.special-chars-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.char-pair {
    background: var(--bg-key);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.char-pair span {
    font-family: var(--font-pashto);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-highlight);
}

.modal-ok-btn {
    align-self: center;
    margin-top: 10px;
}

/* Animations */
.animate-zoom {
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .animate-zoom {
    transform: scale(1);
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-gradient);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    font-size: 1.15rem;
}

/* Custom Scrollbar for premium look */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
    background: var(--border-card);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-highlight);
}

/* Sub-hint under keyboard selector */
.control-sub-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
    line-height: 1.4;
}

.control-sub-hint i {
    color: var(--text-highlight);
}

.control-sub-hint strong {
    color: var(--text-highlight);
    background: rgba(16, 185, 129, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid var(--border-card);
    font-family: var(--font-primary);
    font-size: 0.72rem;
}

/* Prevent selecting or dragging text/images on UI panels for protection */
body, 
.app-header, 
.control-panel, 
.keyboard-section, 
.phrase-pad-section, 
.app-footer,
.modal-content {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Keep textarea fully selectable so users can copy their written work */
#pashtoTextArea {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}


