﻿body {
    font-family: Arial, sans-serif;
    background: #f4f7fa;
    margin: 0;
    padding: 10px;
    color: #2c3e50;
}

h2 {
    color: #34495e;
    text-align: center;
    margin-bottom: 20px;
}

.about-link {
    color: #fff;
    background-color: #a7aba8;
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 4px;
    float: right;
    font-size: 14px;
    margin: 10px;
}
.about-link:hover {
    background-color: #0056b3;
}

.search-panel {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
    margin: auto;
    max-width: 1000px;
}

/* Responsive form layout */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

.search-panel select, 
.search-panel input[type="text"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

label[for="chkLanguages"] {
    font-weight: bold;
}

.chk-langs {
      display: flex;
        flex-wrap: wrap;
        gap: 6px;   /* reduced gap */
        margin-top: 10px;
        align-items: center;
            }

.pager {
    margin: 15px 0;
    text-align: center;
}

.heading {
    font-size: 25px;
    padding: 5px;
}

.big-dropdown {
    font-size: 25px;
    padding: 5px;
}

 .big-label {
    font-size: 20px;
    padding: 5px;
}

.pager button {
    background: #3498db;
    color: #fff;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    margin: 0 5px;
    cursor: pointer;
}
.pager button:hover {
    background: #2980b9;
}

.grid-style {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    h2 {
        font-size: 18px;
    }
    .about-link {
        font-size: 12px;
        padding: 3px 6px;
        float: none;
        display: block;
        text-align: center;
        margin: auto;
        margin-bottom: 10px;
    }
      
}

@media (max-width: 480px) {
    h2 {
        font-size: 16px;
    }
    .form-row {
        flex-direction: column;
    }
    .chk-langs {
        flex-direction: column;
    }
}


/* Grid container */
.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 12px;
    margin-top: 15px;
}

/* Each language block */
.lang-block {
    padding: 10px;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Arabic text (RTL) */
.lang-block.arabic {
    background: #f0f8ff;
    text-align: right;
    direction: rtl;
    font-family: "Scheherazade New", serif; /* optional Arabic font */
    font-size: 38px;
    color: #145a32;
}

/* Urdu text (RTL) */
.lang-block.urdu {
    background: #fff8e1;
    text-align: right;
    direction: rtl;
    font-family: "Noto Nastaliq Urdu", serif; /* optional Urdu font */
    font-size: 38px;
     color: #641e16;
}

/* English text */
.lang-block.english {
    background: #e8f5e9;
    text-align: left;
    font-size: 38px;
}

/* Roman Urdu text */
.lang-block.romanurdu {
    background: #fce4ec;
    text-align: left;
    font-size: 38px;
}

/* ✅ Responsive adjustments */
@media (max-width: 768px) {
    .lang-block {
font-size: 13px;
padding: 8px;
    }
}

@media (max-width: 480px) {
    .search-results {
grid-template-columns: 1fr; /* stack blocks */
    }
    .lang-block {
font-size: 12px;
    }
}

/* Search button style */
.btn-search {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Hover effect */
.btn-search:hover {
    background: linear-gradient(135deg, #2980b9, #1f6691);
    transform: translateY(-2px);
}

/* Disabled state */
.btn-search:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    box-shadow: none;
}

 

.top-links {
    display: flex;
    justify-content: center;   /* center group */
    gap: 10px;                 /* spacing between links */
    align-items: center;
    background: #f8f9fa;
    padding: 5px 10px;
    border-bottom: 2px solid #ddd;
}

.nav-link {
    color: #fff;
    background: #6c757d;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.nav-link:hover {
    background: #5a6268;
    text-decoration: none;
}

/* ===== Added during MVC migration ===== */

/* Active item in the top navigation (was a per-page a[href*=...] rule) */
.nav-link.active {
    color: #ffffff;
    font-weight: bold;
    background-color: #007b8f;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Results table (replaces the GridView <table>) */
.results-table { width: 100%; border-collapse: collapse; }
.results-table td { border: 1px solid #ccc; padding: 4px; }

/* Pager links are <a> elements now, styled like the old buttons */
a.btn-search { display: inline-block; text-decoration: none; margin: 0 5px; }
.btn-search.disabled { background: #95a5a6; cursor: not-allowed; box-shadow: none; pointer-events: none; }
.btn-search.disabled:hover { transform: none; }

/* ===== Word-list pages (English / Urdu / Arabic words) ===== */
.page-words .lang-block { font-size: 14px; }
.page-words .lang-block.arabic,
.page-words .lang-block.urdu { font-size: 28px; }
.page-words .lang-block.english,
.page-words .lang-block.romanurdu { font-size: 18px; }
.page-words .search-panel h2 { text-align: center; }
.page-words .chk-langs { justify-content: center; }

.search-bar { display: flex; justify-content: center; margin: 15px 0; width: 100%; }
.search-bar table { margin: 0 auto; border-collapse: collapse; }
.search-bar td { padding: 0 8px; text-align: center; }
.search-bar .ddl { font-size: 22px; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; }
.chk-label { font-weight: bold; margin-right: 8px; }

@media (max-width: 768px) {
    .page-words .lang-block { font-size: 13px; padding: 8px; }
}
@media (max-width: 480px) {
    .page-words .lang-block { font-size: 12px; }
}

/* ===== About page ===== */
.about-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.7;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.author-info h2 {
    margin-top: 0;
    color: #1976d2;
}
.author-info p {
    margin: 4px 0;
}
.author-info a {
    color: #1976d2;
    text-decoration: none;
}
.author-info a:hover {
    text-decoration: underline;
}
.gratitude {
    margin: 15px 0;
    padding: 15px;
    background: #e3f2fd;
    border-left: 5px solid #1976d2;
    border-radius: 6px;
}
.highlight {
    font-weight: bold;
    color: #2e7d32;
}
.project-info h3 {
    margin-top: 0;
    color: #388e3c;
    border-bottom: 2px solid #c8e6c9;
    display: inline-block;
    padding-bottom: 3px;
}
.lang {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin: 0 2px;
}
.lang.arabic { background: #f0f9ff; color: #0d47a1; }
.lang.english { background: #e8f5e9; color: #1b5e20; }
.lang.urdu { background: #fff8e1; color: #4e342e; }
.lang.romanurdu { background: #fce4ec; color: #880e4f; }
.contact-info {
    margin-top: 20px;
    padding: 15px;
    background: #fffde7;
    border-left: 5px solid #f9a825;
    border-radius: 6px;
}
.prayer {
    font-style: italic;
    font-weight: bold;
    color: #444;
}

.pager .btn-search {
    display: inline-block;
    text-decoration: none;
    margin: 8px 5px 0;
}

.pager > span:first-child {
    display: inline-block;
    margin-bottom: 4px;
}