body {
    background: #f6f7fb; /* light gray */
}

.blue-divider {
    height: 4px;
    background-color: #182de0;
    box-shadow: 0px 0px 4px 2px rgba(204, 204, 204, 1);
    border: none; /* important, hr has default border */
}

.icon-btn.wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    margin-left: 8px;
    font-size: 14px;
}

    .icon-btn.wa:hover {
        filter: brightness(0.95);
    }

.w-40 {
    width: 140px;
    min-width: 140px;
}

/* Card container */
.about-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 40px;
    margin-top: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Section title */
.section-title {
    /*font-size: 26px;
    font-weight: 700;
    margin-left: 10px;
    position: relative;*/
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin: 6px 0 30px 2px;
    position: relative;
}
    /* .section-title + .blue-divider {
        margin-top: 2px;
    }*/
    .section-title::after {
        content: "";
        width: 40px;
        height: 4px;
        background: #e63946;
        position: absolute;
        left: 0;
        bottom: -12px;
        border-radius: 4px;
        /*background: #fff;
        border-radius: 18px;
        border: 1px solid #eee;
        padding: 22px;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
        position: relative;
        overflow: visible;*/
    }

.section-gap {
    margin: 18px 0 24px;
}

.section-actions {
    padding: 8px 2px;
}

.card-table thead th {
    font-weight: 600;
    color: #374151;
    border-bottom-width: 1px;
}

.card-table tbody td {
    vertical-align: middle;
}

.form-label {
    color: #374151;
}

.form-control, .form-select {
    border-radius: 10px;
    border-color: #e5e7eb;
}

    .form-control:focus, .form-select:focus {
        border-color: #93c5fd;
        box-shadow: 0 0 0 .2rem rgba(13,110,253,.1);
    }


/* Profile photo */
.photo-wrap {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    margin: auto;
    background: #f4f4f4;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Headings */
.hello {
    font-size: 32px;
    font-weight: 700;
}

.intro-text {
    color: #555;
    font-size: 16px;
    margin-bottom: 22px;
}

/* Two-column info layout */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 12px 24px;
    margin-bottom: 25px;
}

    .details-grid .label {
        font-weight: 600;
        color: #888;
    }

    .details-grid .value {
        font-weight: 600;
    }

/* Doctor details table */
.details-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
    margin-top: 15px;
}

    .details-table .label {
        font-weight: 600;
        color: #888;
        display: block;
    }

    .details-table .value {
        font-weight: 600;
    }

    .details-table .full-row {
        grid-column: span 2;
    }

/* Action buttons */
.action-buttons a {
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    margin-right: 12px;
    color: #fff;
    text-decoration: none;
}

.btn-download {
    background: linear-gradient(90deg, #ff4d4d, #ff6a3d);
}

.btn-hire {
    background: #4c6ef5;
}


input[readonly] {
    background-color: #e9ecef !important;
    border-color: #ced4da !important;
    color: #6c757d !important;
    pointer-events: none;
    cursor: not-allowed;
}

#doctorTableBody td {
    vertical-align: middle;
}

.loading-row {
    color: #6c757d;
}

.error-row {
    color: #dc3545;
    font-weight: 600;
}

#repTableBody td {
    vertical-align: middle;
}

.section-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eee;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    position: relative;
    overflow: visible;
}

.subcard {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 12px;
}

.subcard-title {
    font-weight: 700;
    margin: 0 0 8px;
}

.form-control-plaintext {
    padding-left: 0;
}

#gridTable tbody td {
    vertical-align: middle;
}

/* Small helper for muted placeholders */
.muted {
    color: #6c757d;
}


/*Login Page*/
/* Two-panel page tweaks */
.dual-login .card {
    border: 1px solid #e6eef5;
    border-radius: 6px;
}

    .dual-login .card .card-body {
        background: #fff;
    }

.dual-login .quick-links a {
    color: #0d6efd;
}

    .dual-login .quick-links a:hover {
        text-decoration: underline;
    }

/* Optional: subtle divider on large screens to mimic two columns */
@media (min-width: 992px) {
    .dual-login .col-lg-6:first-child {
        border-right: 1px solid #eaf0f6;
    }
}

/* Optional brand colors for headings */
.text-primary {
    color: #0d6efd !important;
}

.text-success {
    color: #198754 !important;
}

/*Login index page*/
/* Centers its children both vertically and horizontally
   inside the viewport minus the header+footer total height. */
.center-viewport {
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    min-height: calc(100vh - var(--chrome-height, 0px));
    /* Optional: give a subtle background like your screenshot */
    background-color: #f5f7fb; /* tweak if needed */
}

/* Optional: light divider between the two columns on large screens */
@media (min-width: 992px) {
    .choose-login .col-lg-5:first-child {
        border-right: 1px solid #eaf0f6;
    }
}

/* Card look tweaks (optional) */
.choose-login .card {
    border: 1px solid #e6eef5;
    border-radius: 8px;
}

/* Make the buttons nice and touch-friendly */
.choose-login .btn {
    border-radius: 8px;
}



/* LAYOUT */
.content-area {
    min-height: 400px;
}

/* SIDEBAR */
.sidebar {
    max-height: 1400px;
    background: #e9ecef;
    overflow-y: auto;
    padding: 10px;
    border-radius: 8px;
    height: calc(100vh - 220px);
}

.thumb {
    margin-bottom: 10px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease;
}

.thumb:hover {
    transform: translateY(-2px);
}

.thumb img {
    width: 100%;
    max-height: 130px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.thumb span {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width: 1200px) {
    .sidebar {
        display: none;
        height: auto;
    }
    .left-arrow { left: 8px; }
    .right-arrow { right: 8px; }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .viewer {
        padding: 10px;
    }
     .left-arrow {
        left: 4px;
    }
    .right-arrow {
        right: 4px;
    }
    .nav-arrow {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}

/* VIEWER */
.viewer {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.viewer-body {
    flex: 1;
    text-align: center;
    margin-top: 10px;
    position: relative;
}

.viewer-body img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.nav-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-60%);
    z-index: 100;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 8%;
    height: 100px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    /*border-radius: 50%;*/
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s ease;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

@media (max-width: 768px) {
    .nav-arrow {
        width: 8%;
        height: 80px;
        font-size: 18px;
    }

    .left-arrow {
        left: 8px;
    }

    .right-arrow {
        right: 8px;
    }
}

/* BUTTONS */
.btn {
    padding: 6px 10px;
    border: none;
    cursor: pointer;
    color: white;
    border-radius: 4px;
}

.red {
    background: #dc3545;
}

.dark {
    background: #343a40;
}

.blue {
    background: #007bff;
}

.fb {
    background: #3b5998;
}

.x {
    background: black;
}

.email {
    background: #6c757d;
}

.whatsapp {
    background: #25D366;
}

.logo {
    width: 250px;
    height: 85px;
    border-radius: 10px;
}



.header-bg {
    display: flex;
    flex-direction: row;
    align-items: center; /* vertical centering */
    justify-content: space-between; /* logo left, menu right */
    position: relative;
    background: linear-gradient(135deg, #f5f7fa, #e9edf2);
    overflow: hidden;
    width: 100%;
    z-index: 0; /* base layer */
}

    /* Shape 1 */
    .header-bg::before {
        content: "";
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.03);
        transform: skewX(-30deg);
        z-index: -1; /* push behind */
    }

    /* Shape 2 */
    .header-bg::after {
        content: "";
        position: absolute;
        top: 0;
        left: 60%;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.05);
        transform: skewX(-30deg);
        z-index: -1; /* push behind */
    }

/*.navbar .container {
    max-width: 100%;
    width: 100%;
}*/

.nav-links {
    width: 100%;
    display: flex;
    justify-content: space-between; /* spreads logo left, links right */
}

/* TOP BAR */
.top-bar {
    position: sticky;
    top: 0; /* flush to viewport top; remove found gap */
    z-index: 1050;
    background: #ffffff;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.top-bar .row {
    margin: 0;
}

.top-bar-dropdowns {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.top-bar-select {
    min-width: 60px;
    max-width: 120px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.actions .btn {
    min-width: 120px;
    white-space: nowrap;
}

.archive-wrapper {
    position: relative;
}

.top-bar .accordion {
    width: 100%;
}

@media (max-width: 992px) {
    .top-bar {
        top: 0; /* keep flush to top, no gap */
        padding: 8px 12px;
    }

    .top-bar-select {
        min-width: 100px;
        max-width: 160px;
    }

    .actions .btn {
        min-width: 100px;
        font-size: 0.88rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        position: sticky;
        top: 0;
    }

    .top-bar-dropdowns,
    .actions {
        justify-content: center;
    }

    .top-bar-select {
        width: 100%;
        max-width: 100%;
    }

    .actions .btn {
        flex: 1 1 45%;
        max-width: 48%;
    }

    .nav-arrow {
        display: block; /* keep arrows visible for all widths */
    }
}

.daily-heading {
    font-size: 22px;
    font-weight: bold;
    color: #007bff;
}

/*.nav-links {
    display: flex;
    align-items: center;
}*/

.nav-item a {
    /*margin: 0 10px;
    text-decoration: none;
    color: #333;*/
    margin-right: 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: #1a73e8; /* BLUE color */
    transition: all 0.3s ease;
}

    .nav-item a:hover {
        color: red !important;
    }

.actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

    .actions .btn {
        margin-left: 8px;
    }
/*.navbar-nav {
    margin: 0 auto;*/ /* centers horizontally */
/*}*/

@media (max-width: 768px) {
    .header-bg {
        flex-direction: column; /* stack children vertically */
        align-items: center; /* center them horizontally */
    }

    .navbar-brand {
        margin-bottom: 10px; /* spacing between logo and toggle/menu */
    }

    .navbar-collapse {
        width: 100%; /* make menu span full width */
        text-align: center; /* center the links */
    }
}

.action-buttons {
    display: flex;
    gap: 10px; /* spacing between buttons */
}

.pdf-btn {
    background-color: #6c757d; /* gray */
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px; /* space between icon and text */
    cursor: pointer;
}

    .pdf-btn:hover {
        background-color: #495057; /* gray darker on hover */
    }

.clip-btn {
    background-color: #e53935; /* red */
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px; /* space between icon and text */
    cursor: pointer;
}

    .clip-btn:hover {
        background-color: #c62828; /* darker red on hover */
    }

.archive-btn {
    background-color: #1a73e8; /* blue */
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .archive-btn:hover {
        background-color: #0d47a1; /* darker blue on hover */
    }

/* Scrolling News Ticker */
.scrolling-news-section {
    background: linear-gradient(90deg, #c3c3db 0%, #16213e 100%);
    color: #fff;
    overflow: hidden;
    /*padding: 0.5rem 0;*/
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.scrolling-news-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scrolling-news-label {
    /* display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #e94560;*/
    flex: 0 0 auto;
    margin-right: 1rem;
    font-weight: bold;
    color: #e94560;
    display: flex;
    align-items: center;
}

    .scrolling-news-label i {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }

.scrolling-news-track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.scrolling-news-content {
    /*display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
    animation: scroll-news 20s linear infinite;
    will-change: transform;
    backface-visibility: hidden;*/
    display: inline-block;
    padding-left: 100%; /* start off-screen */
    animation: scrollNews 20s linear infinite;
}

    .scrolling-news-content:hover {
        animation-play-state: paused;
    }

.scrolling-news-item {
    /*white-space: nowrap;
    flex-shrink: 0;*/
    display: inline-block;
    margin-right: 1rem;
}

.scrolling-news-separator {
    /* flex-shrink: 0;
    color: #e94560;
    font-size: 0.5rem;
    opacity: 0.7;*/

    margin-left: 0.5rem;
    color: #999;
}

.scrolling-news-item a {
    color: #fff;
    text-decoration: none;
}

    .scrolling-news-item a:hover {
        color: #e94560;
        text-decoration: underline;
    }


/*@keyframes scroll-news {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}*/
@keyframes scrollNews {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}
/* Category page - newspaper cards grid */
.category-page {
    padding: 24px 0;
}

.category-header {
    margin-bottom: 20px;
}

.category-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

    .category-back-link:hover {
        background: #bfdbfe;
        color: #1e3a8a;
        border-color: #60a5fa;
    }

.category-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.category-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
}

    .category-card:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

.category-card-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f4f4f4;
}

    .category-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.category-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.category-card-primary-date {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    padding: 12px 16px 4px;
}

.category-card-meta-1 {
    font-size: 13px;
    color: #555;
    padding: 0 16px 4px;
}

.category-card-meta-2 {
    font-size: 13px;
    color: #555;
    text-align: center;
    padding: 0 16px 16px;
}

.category-card-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #1a73e8;
}

.category-empty {
    text-align: center;
    color: #666;
    padding: 48px 16px;
}

/* Application Footer - Banner Style */
.app-footer {
    background: #0056b3;
    padding: 24px 20px 16px;
    margin-top: 40px;
    position: static;
    display: block;
    clear: both;
}

.app-footer-inner {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #e0f4ff 0%, #f0f9ff 50%, #ffffff 100%);
    border-radius: 12px;
    padding: 24px 28px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.app-footer-logo {
    flex-shrink: 0;
}

    .app-footer-logo img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid #0056b3;
    }

.app-footer-content {
    flex: 1;
    min-width: 0;
}

.app-footer-heading {
    font-size: 22px;
    font-weight: 700;
    color: #0056b3;
    margin: 0 0 16px;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
}

.app-footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    margin-bottom: 12px;
}

.app-footer-col {
    font-size: 14px;
    color: #333;
}

.app-footer-name {
    font-weight: 700;
    color: #c2410c;
    margin-bottom: 4px;
}

.app-footer-timing {
    color: #333;
    margin-bottom: 8px;
}

.app-footer-phone {
    font-weight: 500;
    color: #111;
}

.app-footer-address {
    text-align: center;
    font-size: 13px;
    color: #c2410c;
    font-weight: 600;
}

.app-footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
}

.app-footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.2s;
}

    .app-footer-social-icon:hover {
        transform: scale(1.1);
        color: #fff;
    }

    .app-footer-social-icon:nth-child(1) {
        background: #1877f2;
    }

    .app-footer-social-icon:nth-child(2) {
        background: #1da1f2;
    }

    .app-footer-social-icon:nth-child(3) {
        background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    }

    .app-footer-social-icon:nth-child(4) {
        background: #0a66c2;
    }

    .app-footer-social-icon:nth-child(5) {
        background: #0088cc;
    }

.app-footer-copyright {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 12px;
}

    .app-footer-copyright a {
        color: rgba(255, 255, 255, 0.95);
    }

.app-footer-ad {
    margin-top: 10px;
    text-align: center;
}

    .app-footer-ad img {
        max-width: 90%;
        max-height: 350px;
        border-radius: 8px;
    }

/* Responsive adjustments for Index page */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .top-bar-dropdowns {
        justify-content: center;
        margin-bottom: 10px;
    }

    .actions {
        justify-content: center;
    }

    .content-area {
        flex-direction: column;
    }

    .sidebar {
        order: 2;
        max-height: none;
        width: 100%;
        padding: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .thumb {
        width: 120px;
        margin: 5px;
    }

    .viewer {
        order: 1;
        width: 100%;
    }

    .viewer-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .share-buttons {
        justify-content: center;
        margin-top: 10px;
    }

    .nav-arrow {
        display: none; /* Hide arrows on mobile, use pagination */
    }
}

@media (max-width: 576px) {
    .top-bar-select {
        max-width: 100%;
        min-width: auto;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .share-buttons .btn {
        font-size: 12px;
        padding: 6px 8px;
    }
}

.contact-heading {
    display: inline-block; /* underline fits text width */
    border-bottom: 3px solid #0d6efd; /* choose your color */
    padding-bottom: 4px; /* spacing between text and underline */
    font-weight: bold; /* bold text */
    color: #0d6efd; /* text color */
}

.preview-wrapper {
    position: relative;
    margin: 5px;
    display: inline-flex;
    align-items: center;
}

/* Close button always visible with red background */
.close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .close-btn i {
        font-size: 14px;
    }

.img-thumbnail {
    width: 120px;
    height: auto;
    cursor: pointer; /* indicates clickable */
}

.viewer-body {
    position: relative;
    display: block;
    width: 100%;
}

.pagination {
    flex-wrap: nowrap !important;
    white-space: nowrap;
}

.details-table .value {
    display: inline-block;
    color: #555;
}

.sub-heading {
    color: #0d6efd; /* Bootstrap primary color */
}

.about-card {
    border: 1px solid #e0e0e0;
}
/*Clipping related CSS start here */
#clippedPreview {
    max-height: 500px; /* adjust as needed */
    width: auto;
    display: block;
    margin: 0 auto; /* center horizontally */
}
/* Let Bootstrap handle backdrop, only style the dialog */
.modal-dialog.auto-width.modal-dialog-centered {
    margin: auto; /* centers horizontally */
    max-width: none; /* remove Bootstrap’s fixed max-width */
    width: auto; /* shrink to fit content */
    display: flex; /* flex centering for content */
    align-items: center; /* vertical centering */
    justify-content: center; /* horizontal centering */
}

.modal-content {
    display: block; /* keep Bootstrap’s stacking */
    width:auto;
}

.modal.fade .modal-dialog {
    transition: transform .3s ease-out;
}
#clippedPreview.cropping-active {
    pointer-events: none; /* prevent scroll/drag on the image */
}
/*Clipping related CSS end here */

.archive-wrapper {
    display: inline-block;
}

#archiveCalendar {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    z-index: 1000;
    top: 100%; /* directly below Archive button */
    left: 0; /* align with button’s left edge */
    margin-top: 5px;
}

.pagination {
    display: flex; /* ensure flex layout */
    flex-wrap: nowrap; /* prevent wrapping */
    justify-content: center; /* center horizontally */
    gap: 4px; /* optional spacing between buttons */
    margin-bottom: 0;
}

.page-item {
    white-space: nowrap; /* prevent text breaking */
}