/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Minimalist Black & White Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-accent: #ffffff;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-accent: #333333;
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    --hover-bg: #f5f5f5;
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-accent: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --text-accent: #cccccc;
    --border-color: #333333;
    --shadow-light: rgba(255, 255, 255, 0.04);
    --shadow-medium: rgba(255, 255, 255, 0.08);
    --hover-bg: #222222;
}

body {
    font-family: 'Inter', 'Scheherazade New', 'Noto Naskh Arabic', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
    overflow-x: hidden;
    /* Prevent mobile zoom on tap */
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Prevent mobile zoom on buttons and inputs */
button, input, select, textarea {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    font-size: 16px; /* Prevents iOS zoom on focus */
}

/* Ensure minimum font size on mobile to prevent zoom */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
    
    button {
        font-size: 16px !important;
    }
}


/* Navigation Styles */
.navigation {
    background: var(--bg-primary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(8px);
    background: rgba(248, 248, 248, 0.98);
    transition: box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .navigation {
    background: rgba(0, 0, 0, 0.98);
}

.navigation.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .navigation.scrolled {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.app-title {
    font-family: 'Scheherazade New', 'Noto Naskh Arabic', serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: var(--text-primary);
    margin: 0;
}

.nav-controls {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.theme-toggle,
.settings-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.15s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover,
.settings-btn:hover {
    background: var(--hover-bg);
}

.search-container {
    flex: 1;
    display: flex;
    max-width: 350px;
    position: relative;
    min-width: 0;
}

.search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    background: var(--bg-accent);
    color: var(--text-primary);
    transition: border-color 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

.sidebar-toggle {
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-accent);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.15s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: var(--hover-bg);
}

.sidebar-toggle:focus {
    outline: none;
    border-color: var(--text-primary);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

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

/* Surah Header Styles */
.surah-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

.surah-name {
    font-family: 'Scheherazade New', 'Noto Naskh Arabic', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.surah-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.surah-info span {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 400;
}

.bismillah {
    font-family: 'Scheherazade New', 'Noto Naskh Arabic', serif;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 1rem;
    font-style: italic;
}

/* Verses Container */
.verses-container {
    margin-bottom: 3rem;
}

.verse {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
}


.verse:hover {
    background: var(--hover-bg);
}


.verse-text-container {
    flex: 1;
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.verse-text {
    font-family: 'Scheherazade New', 'Noto Naskh Arabic', serif;
    font-size: 1.4rem;
    line-height: 2;
    color: var(--text-primary);
    text-align: right;
    direction: rtl;
}

.verse-translation {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: left;
    direction: ltr;
    font-style: italic;
    margin-top: 0.25rem;
}

.verse-transliteration {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-accent);
    text-align: left;
    direction: ltr;
    font-weight: 300;
    opacity: 0.8;
}

.verse-number {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    flex-shrink: 0;
}

/* Share Button Styles */
.verse-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    gap: 0.5rem;
}

.verse:hover .verse-actions {
    opacity: 1;
}

.share-btn {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.share-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.share-btn.copied {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.copy-notification {
    position: absolute;
    top: -2rem;
    right: 0;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.capture-btn {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.capture-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.capture-btn.processing {
    background: #007bff;
    color: white;
    border-color: #007bff;
    animation: pulse 1s infinite;
}

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

/* Стили для модального окна шеринга */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-modal.show {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-modal.show .share-modal-content {
    transform: scale(1);
}

.share-modal h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.share-preview {
    text-align: center;
    margin: 1.5rem 0 2rem 0;
}

.share-preview img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 0 0 1.5rem 0;
}

.share-social-btn {
    padding: 1rem 1.25rem;
    border: none;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.share-social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.share-social-btn:active {
    transform: translateY(-1px);
}

.share-telegram { 
    background: linear-gradient(135deg, #0088cc 0%, #0077b3 100%);
}

.share-whatsapp { 
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
}

.share-instagram { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-download { 
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    color: var(--bg-primary);
}

.modal-close {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

/* Search Results Panel */
.search-results-panel {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-accent);
    box-shadow: 10px 0 30px var(--shadow-medium);
    transition: left 0.3s ease;
    z-index: 1500;
    border-right: 1px solid var(--border-color);
}

.search-results-panel.open {
    left: 0;
}

.search-results-content {
    padding: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.search-results-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.close-search-results {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.close-search-results:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.search-results-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.search-result-item {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.15s ease;
    background: var(--bg-accent);
}

.search-result-item:hover {
    background: var(--hover-bg);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.search-result-text {
    font-family: 'Scheherazade New', 'Noto Naskh Arabic', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
    text-align: right;
    direction: rtl;
    margin-bottom: 0.5rem;
}

.search-result-translation {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: left;
    direction: ltr;
    font-style: italic;
}

.search-highlight {
    background: rgba(255, 235, 59, 0.3);
    padding: 0 2px;
    border-radius: 2px;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: transparent;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.control-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: var(--hover-bg);
    border-color: var(--text-secondary);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
    border-color: var(--border-color);
}

.page-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: var(--bg-accent);
    box-shadow: 10px 0 30px var(--shadow-medium);
    transition: left 0.3s ease;
    z-index: 1000;
    border-right: 1px solid var(--border-color);
}

.sidebar.open {
    left: 0;
}

.sidebar-content {
    padding: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.sidebar-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.close-sidebar:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.sidebar-search {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.sidebar-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--bg-accent);
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.sidebar-search-input:focus {
    outline: none;
    border-color: var(--text-primary);
}

.surah-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.surah-item {
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-accent);
}

.surah-item:hover {
    background: var(--hover-bg);
}

.surah-item.active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.surah-item.active .surah-name-arabic,
.surah-item.active .surah-name-russian,
.surah-item.active .surah-meta {
    color: var(--bg-primary);
}

.surah-name-arabic {
    font-family: 'Scheherazade New', 'Noto Naskh Arabic', serif;
    font-size: 1.2rem;
    text-align: right;
    direction: rtl;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.surah-name-russian {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.surah-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-accent);
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
}

.surah-item.hidden {
    display: none;
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-accent);
    box-shadow: -10px 0 30px var(--shadow-medium);
    transition: right 0.3s ease;
    z-index: 1000;
    border-left: 1px solid var(--border-color);
}

.settings-panel.open {
    right: 0;
}

.settings-content {
    padding: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.settings-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.setting-group {
    margin-bottom: 2rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Amiri', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.setting-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    background: var(--text-primary);
    cursor: pointer;
}

.setting-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Amiri', serif;
    font-size: 1rem;
    cursor: pointer;
}

.setting-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.setting-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    background: var(--bg-accent);
    cursor: pointer;
    appearance: none;
    position: relative;
}

.setting-group input[type="checkbox"]:checked {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.setting-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: bold;
}

.close-settings {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.close-settings:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navigation {
        padding: 0.75rem 0;
    }
    
    .nav-content {
        padding: 0 1rem;
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .app-title {
        font-size: 1.1rem;
        flex-shrink: 0;
        margin-right: 0.5rem;
    }
    
    .search-container {
        flex: 1;
        min-width: 0;
        max-width: none;
        margin: 0 0.5rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    
    .sidebar-toggle {
        font-size: 1rem;
        padding: 0.5rem;
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .nav-controls {
        margin-left: 0;
        flex-shrink: 0;
        gap: 0.25rem;
    }
    
    .theme-toggle,
    .settings-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
        padding: 0.25rem;
    }
    
    .content-container {
        padding: 0 1rem;
    }
    
    .surah-header {
        padding: 1.5rem;
    }
    
    .surah-name {
        font-size: 2rem;
    }
    
    .surah-info {
        gap: 1rem;
    }
    
    .verse {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .verse-text-container {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .verse-actions {
        top: 0.25rem;
        right: 0.25rem;
    }
    
    .share-btn, .capture-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .verse-text {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .verse-translation {
        text-align: center;
        font-size: 0.9rem;
    }
    
    .verse-transliteration {
        text-align: center;
        font-size: 0.8rem;
    }
    
    .controls {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .control-btn {
        width: 100%;
    }
    
    .settings-panel {
        width: 100%;
        right: -100%;
    }
    
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .search-results-panel {
        width: 100%;
        left: -100%;
    }
    
    .share-modal-content {
        width: 95%;
        max-width: none;
        margin: 0;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) scale(0.95);
        max-height: 90vh;
        padding: 1.5rem;
    }
    
    .share-modal.show .share-modal-content {
        transform: translateX(-50%) scale(1);
    }
    
    .share-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin: 1rem 0 2rem 0;
    }
    
    .share-social-btn {
        padding: 1.25rem;
        font-size: 1rem;
        border-radius: 16px;
        min-height: 60px;
    }
    
    .app-container {
        padding-bottom: 75px;
    }
}

@media (max-width: 480px) {
    .navigation {
        padding: 0.5rem 0;
    }
    
    .nav-content {
        padding: 0 0.75rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
        min-width: 0;
    }
    
    .app-title {
        font-size: 1rem;
        margin-right: 0.25rem;
    }
    
    .search-container {
        min-width: 0;
        margin: 0 0.25rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 0.4rem 0.5rem;
        min-width: 0;
        flex-shrink: 1;
    }
    
    .sidebar-toggle {
        font-size: 0.9rem;
        padding: 0.4rem;
        width: 32px;
        height: 32px;
    }
    
    .theme-toggle,
    .settings-btn {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
        padding: 0.2rem;
    }
    
    .verse-text {
        font-size: 1.2rem;
        line-height: 2;
    }
    
    .verse-translation {
        font-size: 0.85rem;
    }
    
    .verse-transliteration {
        font-size: 0.75rem;
    }
    
    .bismillah {
        font-size: 1.4rem;
    }
    
    .surah-info span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .share-modal-content {
        width: 98%;
        padding: 1.5rem 1rem;
        border-radius: 24px 24px 0 0;
        max-height: 85vh;
        transform: translateX(-50%) scale(0.9);
    }
    
    .share-modal.show .share-modal-content {
        transform: translateX(-50%) scale(1);
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0 1.5rem 0;
    }
    
    .share-social-btn {
        padding: 1.5rem;
        font-size: 1.1rem;
        border-radius: 18px;
        min-height: 65px;
    }
    
    .share-preview img {
        max-width: 90%;
        border-radius: 16px;
    }
    
    .app-container {
        padding-bottom: 80px;
    }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    z-index: 100;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 8px var(--shadow-light);
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    min-height: 60px;
}

.nav-tab:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.nav-tab.active {
    color: var(--text-primary);
    background: var(--hover-bg);
}

.nav-icon {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    display: block;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

/* Adjust main content to account for bottom nav */
.app-container {
    padding-bottom: 70px;
}

/* Very small screens */
@media (max-width: 360px) {
    .nav-content {
        padding: 0 0.5rem;
        gap: 0.25rem;
    }
    
    .app-title {
        font-size: 0.9rem;
        margin-right: 0;
    }
    
    .search-container {
        margin: 0;
        min-width: 0;
    }
    
    .search-input {
        padding: 0.35rem 0.4rem;
        font-size: 0.95rem;
    }
    
    .sidebar-toggle {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
        padding: 0.3rem;
    }
    
    .theme-toggle,
    .settings-btn {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
        padding: 0.15rem;
    }
    
    .nav-controls {
        gap: 0.15rem;
    }
    
    .nav-tab {
        min-height: 55px;
        padding: 0.4rem 0.5rem;
    }
    
    .nav-icon {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .nav-label {
        font-size: 0.7rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .navigation,
    .controls,
    .settings-panel {
        display: none;
    }
    
    .verse {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}