/* ============================================================
   Noakhali Zila Samity — notice Page Styles
   ============================================================ */

/* ---------- notice Section ---------- */
.notice-section {
    background: var(--bg-body);
    min-height: 80vh;
    padding-top: 50px;
    padding-bottom: 80px;
}

.notice-header {
    margin-bottom: 40px;
    text-align: center;
}

.breadcrumb-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.breadcrumb-custom a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-custom a:hover {
    color: var(--primary-green);
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-family: "Poppins", "Noto Sans Bengali", sans-serif;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- notice Controls ---------- */
.notice-controls {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-col);
}

.search-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-soft);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 10px 16px;
    gap: 10px;
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--primary-green);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(24, 169, 87, 0.1);
}

.search-box i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: "Inter", sans-serif;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

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

.btn-reset,
.btn-filter {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-family: "Inter", sans-serif;
}

.btn-reset {
    background: var(--bg-soft);
    color: var(--text-main);
    border: 1px solid var(--border-col);
}

.btn-reset:hover {
    background: var(--border-col);
    transform: translateY(-2px);
}

.btn-filter {
    background: var(--primary-green);
    color: var(--brand-white);
    box-shadow: 0 4px 14px rgba(24, 169, 87, 0.3);
}

.btn-filter:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(24, 169, 87, 0.4);
}

/* ---------- Table ---------- */
.table-responsive-wrapper {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-col);
    overflow: hidden;
    margin-bottom: 24px;
}

.notices-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Inter", sans-serif;
}

.notices-table thead {
    background: linear-gradient(135deg, var(--primary-blue), #1e5fad);
    color: var(--brand-white);
}

.notices-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.notices-table tbody tr {
    border-bottom: 1px solid var(--border-col);
    transition: all var(--transition-fast);
}

.notices-table tbody tr:hover {
    background: var(--bg-soft);
    transform: scale(1.005);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notices-table tbody tr:last-child {
    border-bottom: none;
}

.notices-table tbody td {
    padding: 14px 20px;
    color: var(--text-main);
    font-size: 0.92rem;
    vertical-align: middle;
}

.col-serial {
    width: 70px;
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
}

.col-title {
    font-weight: 600;
    color: var(--primary-blue);
    min-width: 250px;
}

.col-file {
    min-width: 280px;
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

.file-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.file-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.btn-view,
.btn-notice {
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
    font-family: "Inter", sans-serif;
}

.btn-view {
    background: var(--bg-soft);
    color: var(--primary-blue);
    border: 1px solid var(--border-col);
}

.btn-view:hover {
    background: var(--primary-blue);
    color: var(--brand-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 169, 87, 0.2);
}

.btn-notice {
    background: var(--primary-green);
    color: var(--brand-white);
    box-shadow: 0 2px 8px rgba(24, 169, 87, 0.25);
}

.btn-notice:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(24, 169, 87, 0.4);
}

.btn-view i,
.btn-notice i {
    font-size: 0.9rem;
}

/* ---------- Mobile Cards (Hidden on Desktop) ---------- */
.mobile-cards-container {
    display: none;
}

/* ---------- Mobile Pagination (Hidden on Desktop) ---------- */
.mobile-pagination {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-col);
    margin-top: 16px;
}

.mobile-pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mobile-pagination-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-page-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text-main);
    border: 1px solid var(--border-col);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.mobile-page-btn:hover:not(:disabled) {
    background: var(--primary-green);
    color: var(--brand-white);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.mobile-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mobile-page-info {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.85rem;
    padding: 0 8px;
    min-width: 45px;
    text-align: center;
}

/* ---------- Table Footer ---------- */
.table-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-col);
}

.showing-info {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rows-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.rows-per-page label {
    white-space: nowrap;
    font-weight: 500;
}

.rows-per-page select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-col);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: "Inter", sans-serif;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);
}

.rows-per-page select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(24, 169, 87, 0.1);
}

.pagination-btns {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text-main);
    border: 1px solid var(--border-col);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-green);
    color: var(--brand-white);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
    padding: 0 8px;
    min-width: 50px;
    text-align: center;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1024px) {
    .page-title {
        font-size: 2.2rem;
    }

    .search-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

    .control-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .notice-section {
        padding-top: 30px;
        padding-bottom: 50px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .notice-controls {
        padding: 16px;
    }

    /* Hide table on mobile, show cards instead */
    .table-responsive-wrapper {
        display: none;
    }

    .table-footer {
        display: none;
    }

    /* Mobile card view */
    .mobile-cards-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .notice-card {
        background: var(--bg-card);
        border-radius: 12px;
        padding: 16px;
        border: 1px solid var(--border-col);
        box-shadow: var(--shadow-soft);
    }

    .notice-card-header {
        margin-bottom: 12px;
    }

    .notice-card-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary-blue);
        margin-bottom: 6px;
    }

    .notice-card-meta {
        font-size: 0.78rem;
        color: var(--text-muted);
    }

    .notice-card-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .notice-card-actions .btn-view,
    .notice-card-actions .btn-notice {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    /* Mobile pagination */
    .mobile-pagination {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px;
        background: var(--bg-card);
        border-radius: 12px;
        box-shadow: var(--shadow-soft);
        border: 1px solid var(--border-col);
        margin-top: 16px;
    }

    .modal-container {
        max-width: 100%;
        max-height: 95vh;
        margin: 10px;
        border-radius: 12px;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 20px;
    }
}
