/* Bangla News Archive Widget Styling - Pixel Perfect Match */
@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

.bangla-archive-container {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    font-family: 'Anek Bangla', 'Hind Siliguri', 'SolaimanLipi', -apple-system, sans-serif;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    box-sizing: border-box;
    padding: 1px;
}

.bangla-archive-container * {
    box-sizing: border-box;
}

/* Header Bar */
.bangla-archive-header {
    background-color: #38414e; /* Exact Charcoal Slate Gray */
    padding: 12px 16px;
    text-align: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.bangla-archive-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Body Content */
.bangla-archive-body {
    padding: 16px;
    background-color: #ffffff;
}

/* Navigation (< Month Year >) */
.bangla-archive-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 8px;
}

.bangla-archive-nav button {
    background: none;
    border: none;
    font-size: 22px;
    font-weight: 800;
    color: #1f2937;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.bangla-archive-nav button:hover {
    color: #1d4ed8;
    background-color: #f3f4f6;
}

.ba-current-month-year {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

/* Select Dropdowns */
.bangla-archive-selects {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.ba-select-wrapper {
    flex: 1;
    position: relative;
}

.bangla-archive-selects select {
    width: 100%;
    padding: 8px 28px 8px 12px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    background-color: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    text-align: center;
    text-align-last: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s ease;
}

.bangla-archive-selects select:focus,
.bangla-archive-selects select:hover {
    border-color: #4b5563;
}

/* Custom Dropdown Arrow */
.ba-select-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-40%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #374151;
    pointer-events: none;
}

/* Calendar Container Box */
.bangla-archive-calendar-wrapper {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 8px;
    margin-bottom: 18px;
    background-color: #ffffff;
}

.bangla-archive-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.bangla-archive-calendar thead tr {
    border-bottom: 1px solid #f0f0f0;
}

.bangla-archive-calendar th {
    padding: 8px 0 10px 0;
    font-size: 17px;
    font-weight: 700;
    color: #374151;
    text-align: center;
}

.bangla-archive-calendar td {
    text-align: center;
    padding: 4px 0;
    height: 40px;
    vertical-align: middle;
}

.ba-day-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.ba-day-cell:hover:not(.ba-selected-day):not(.ba-other-month) {
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* Other month days (very light faint gray text) */
.ba-day-cell.ba-other-month {
    color: #d1d5db;
    font-weight: 500;
    cursor: default;
}

/* Active / Selected Date Box */
.ba-day-cell.ba-selected-day {
    background-color: #1d4ed8; /* Vibrant Royal Blue */
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.4);
}

/* Red Search Button with Fine Grid Pattern Overlay */
.bangla-archive-footer {
    width: 100%;
}

.ba-search-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    /* Red Gradient + White Fine Grid Overlay */
    background: 
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18) 1px, transparent 1px, transparent 15px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18) 1px, transparent 1px, transparent 15px),
        linear-gradient(180deg, #e11d48 0%, #be123c 100%);
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
    transition: transform 0.15s ease, filter 0.2s ease;
}

.ba-search-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.ba-search-btn:active {
    transform: translateY(0);
}

.ba-search-btn svg {
    width: 26px;
    height: 26px;
    stroke: #ffffff;
}
