/* ===============================================================
   FRONTEND WRAPPER
   =============================================================== */
.ms-frontend-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    font-family: "Cairo", sans-serif;
}


/* ===============================================================
   SEARCH BAR — PILL STYLE
   =============================================================== */
.ms-search-wrapper {
    width: 100%;
    margin: 10px 0 20px;
}

.ms-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    border: 1px solid #ddd;
    padding: 10px 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.ms-search-icon {
    font-size: 18px;
    margin-right: 10px;
    opacity: 0.6;
}

.ms-search-input {
    border: none !important;
    flex: 1;
    font-size: 16px;
    outline: none !important;
    background: transparent;
}


/* ===============================================================
   TABS NAVIGATION
   =============================================================== */
.ms-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.ms-tab-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid #bbb;
    background: #f5f5f5;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.ms-tab-btn.active {
    background: #0b6a35;
    color: #fff;
    border-color: #0b6a35;
}

.ms-tab-btn:hover {
    background: #e5e5e5;
}


/* ===============================================================
   ALPHABET FILTERS
   =============================================================== */
.ms-alpha-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.ms-alpha-btn {
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}

.ms-alpha-btn:hover {
    background: #f1f1f1;
}

.ms-alpha-btn.active {
    background: #0b6a35;
    color: #fff;
    border-color: #0b6a35;
}


/* ===============================================================
   TAB PANELS
   =============================================================== */
.ms-tab-panel {
    display: none;
}

.ms-tab-panel.active {
    display: block;
}


/* ===============================================================
   GRID OF MONOGRAPHS
   =============================================================== */
.ms-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ms-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 14px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s ease;
}

.ms-item:hover {
    background: #f8fffb;
    border-color: #0b6a35;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.ms-item a {
    text-decoration: none;
    color: #0b6a35;
    font-size: 15px;
    font-weight: 600;
}


/* ===============================================================
   NO RESULTS MESSAGE
   =============================================================== */
.ms-no-results {
    margin-top: 15px;
    padding: 12px;
    background: #fff8e1;
    border: 1px solid #ffe7a3;
    border-radius: 6px;
    color: #8a6d3b;
    font-style: italic;
}


/* ===============================================================
   RESPONSIVE
   =============================================================== */
@media (max-width: 600px) {
    .ms-search-box {
        padding: 8px 14px;
    }

    .ms-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .ms-item {
        padding: 12px;
        font-size: 14px;
    }

    .ms-item a {
        font-size: 14px;
    }
}
