/* ================= General ================= */
body {
    background-color: #f8f9fa;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

table {
    font-size: 1em;
}

/* ================= Header ================= */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

/* ================= Navbar ================= */
.navbar {
    border-radius: 8px;
    background-color: #d43f3a;
}

.navbar-nav .nav-item {
    margin: 0 10px;
    font-weight: bold;
    font-size: 16px;
}

.navbar-nav a {
    text-decoration: none;
    color: white;
    padding: 8px;
}

.navbar-nav .nav-item a:hover {
    color: #ffd700;
}

/* ================= Buttons ================= */
.btn-danger,
.btn-danger:hover,
.btn-danger:focus {
    background-color: #d43f3a;
    border-color: #d43f3a;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
    background-color: #0275d8;
    border-color: #01549b;
}

.previous_btn_mobile,
.btn_next_mobile,
.cuttingButton {
    margin: 5px;
    min-width: 120px;
}

/* ================= Banner ================= */
.brand-logo img,
.brand-logo-mobile img {
    max-height: 80px;
}

.logo-mobile {
    max-width: 120px;
}

/* ================= Calendar Picker ================= */
.calendar-picker {
    margin-left: 20px;
}

.calendar-picker input,
#date {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px;
}

/* ================= Page Thumbnails ================= */
.small_pages {
    /* background-color: #ffffff; */
    padding: 0px;
    border-radius: 10px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    overflow-y: auto;
    /* max-height: 1190px; */
    text-align: center;
}

.small_page_wrapper {
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.small_page img {
    width: 100%;
    max-width: 180px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 10px;
}

.small_page img:hover {
    border-color: #d9534f;
}

.thumbActive {
    border-color: #0275d8 !important;
    transform: scale(1.05);
}

/* ================= Main Big Page Image ================= */
.photo_gallery img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

/* ================= Draggable Elements ================= */
#draggable {
    width: 150px;
    height: 150px;
    padding: 0.5em;
    cursor: move;
}

.ui-draggable,
.ui-droppable {
    background-position: top;
}

/* ================= Save Clip Floating Button ================= */
#saveClickdiv {
    z-index: 999;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    gap: 10px;
    position: relative;
}

/* ================= Modal / Dialog Box ================= */
#dialog {
    text-align: center;
}

#dialog img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

#dialog input[type="text"] {
    width: 100%;
    font-size: 16px;
}

/* ================= Share Clip Module ================= */
.logo-img {
    max-height: 80px;
    margin-bottom: 10px;
}

.clip-img {
    height: 260px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Share Clip Icons */
.share-clip-icons {
    font-size: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-share {
    width: 40px;
    height: 40px;
    background: gray;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-share.facebook { background: #3b5998; }
.btn-share.twitter { background: #55acee; }
.btn-share.whatsapp { background: #25D366; }
.btn-share.linkedin { background: #0077b5; }
.btn-share.email { background: #e83e8c; }

/* Clip Actions */
.clip-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action {
    font-size: 16px;
    padding: 7px 10px;
    background: gray;
    color: white;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.btn-action.open-link {
    background: gray;
}

.btn-action.download-link {
    background: #546CA3;
}

/* Hover Effects */
.btn-share:hover,
.btn-action:hover {
    opacity: 0.8;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* ================= Social Icons (Mobile) ================= */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;        
}

.social-link {
    width: 32px;
    height: 32px;
    background: #ddd;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link.facebook { background-color: #4267B2; }
.social-link.twitter { background-color: #1DA1F2; }
.social-link.instagram { background-color: #E1306C; }
.social-link.linkedin { background-color: #0077B5; }
.social-link.youtube { background-color: #FF0000; }
.social-link.whatsapp { background-color: #25D366; }
.social-link.email { background-color: #6c757d; }

.social-link:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Hide social icons on large screens */
@media (min-width: 955px) {
    .social-icons {
        display: none;
    }
}

/* ================= Overlay During Clipping ================= */
.showoverlayhide.showoverlay {
    position: relative;
}

.showoverlayhide.showoverlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
}

.showoverlay {
    background-color: #000;
    opacity: 0.5;
}

/* ================= Footer ================= */
.footer,
footer {
    background-color: var(--shadow);
    color: var(--text-white);
    padding: 15px;
}

/* ================= Responsive Adjustments ================= */
@media (max-width: 768px) {
    .small_pages {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .small_page img {
        max-width: 80px;
    }

    #saveClickdiv {
        flex-direction: column;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }
}

/* ========== Specific Mobile Adjustments (small screens) ========== */
@media only screen and (max-width: 512px) {
    #cuttingButton {
        width: 100%;
    }

    .previous_div_mobile {
        width: 2%;
    }

    .previous_btn_mobile,
    .btn_next_mobile {
        width: 100% !important;
    }

    .btn_page_mobile {
        padding: 5px 11px !important;
    }

    .btn_clip_desktop {
        display: none !important;
    }

    .btn_clip_mobile {
        display: block !important;
    }
}

#image{
    cursor: grabbing;
}

.small_page{
    margin-left:14px;
}
/* .custom-page-padding{
    padding-left: 30px;
    padding-right: 40px;
} */

@media (max-width: 576px) { /* Extra small devices (phones) */
    .custom-page-padding {
        padding-left: 30px;
        padding-right: 30px;
    }
}


/* Cutting Page Styles */
.d-btn {
    position: relative;
    top: 0;
    opacity: 1;
    transition: top ease 0.2s;
    /* transition:opacity ease 0.2s; */
    margin-top: 10px;
}

.d-btn:hover {
    opacity: 0.8;
    top: -5px;
}

.btn {
    background-color: DodgerBlue;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    text-align: center !important;
}

.cutting-img-logo img{
    width: 150px;
    height: 150px;
}

@media (max-width: 576px) { /* Extra small devices (phones) */
    .cutting-img-logo img{
        width: 75px;
        height: 75px;
    }
}