* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

:root {
    --primary: #4a90e2;
    --secondary: #88c4bc;
    --accent: #ff6b6b;
    --dark: #1e3a5f;
    --light: #f8f9fa;
    --success: #12d687;
    --warning: #ffc107;
    --danger: #dc3545;
    --text: #333;
    --text-light: #6c757d;
}

body {
    font-family: 'Poppins', 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    transition: all 0.3s ease;
}

/* Background animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.1);
    animation: float 15s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, 20px) rotate(5deg);
    }
    50% {
        transform: translate(0, 40px) rotate(0deg);
    }
    75% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* Animation  */
.slide-in {
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Login and signup forms */
#logbody, #creatBody {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#forum {
    min-height: 45%;
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: left;
    flex-direction: column;
    padding: 30px;
    font-size: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#forum:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.logo-container {
    text-align: center;
    margin-bottom: 25px;
}

.logo-container i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
}

#ttl {
    text-align: center;
    font-size: 28px;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 5px;
}

.input-group {
    margin-bottom: 20px;
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i:first-child {
    position: absolute;
    left: 15px;
    color: var(--text-light);
    z-index: 1;
}
 
.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: var(--text-light);
    z-index: 1;
}

.toggle-password:hover {
    color: var(--primary);
}

#number, #passwd, #Pass, #passs {
    width: 100%;
    color: var(--text);
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    padding: 0 15px 0 45px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

#number:focus, #passwd:focus, #Pass:focus, #passs:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

#loggBtn, #newidbtn, #btn {
    cursor: pointer;
    height: 50px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#loggBtn:hover, #newidbtn:hover, #btn:hover {
    background: #3a7cd6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

#loggBtn:active, #newidbtn:active, #btn:active {
    transform: translateY(0);
}

.btn-loading {
    display: none;
    position: absolute;
}

.btn-loading.show {
    display: block;
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-text.hide {
    opacity: 0;
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-light);
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    padding: 0 15px;
    font-size: 14px;
}

#newidbtn1 {
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-size: 16px;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
    padding: 0 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

#newidbtn1:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Home page */
#home {
    font-family: 'Poppins', 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;   
    height: 100%;
    width: 100%;
    margin: 0px;
    padding: 0px;
    background: #f8f9fa;
}

#nav {
    width: 100%;
    height: auto;
    background: rgba(30, 58, 95, 0.96);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    justify-content: space-between;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

#log {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

#nav p, #nav i {
    color: #f8f9fa;
}

#menuToggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

#menuToggle:hover {
    background: rgba(255, 255, 255, 0.24);
}

#searchdiv {
    display: flex;
    flex: 1;
    max-width: 540px;
    min-width: 220px;
}

#searchBook {
    color: var(--text);
    text-align: left;
    font-size: 16px;
    height: 40px;
    border: none;
    border-radius: 20px 0 0 20px;
    background-color: white;
    padding: 0 20px;
    flex: 1;
    transition: all 0.3s ease;
    outline: none;
}

#searchBook:focus {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.35);
}

#searchBtn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 0 20px 20px 0;
    color: white;
    background-color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

#searchBtn:hover {
    background-color: #3a7cd6;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.menu-user-id,
.menu-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 999px;
}

#profile, #postBook {
    height: 40px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

#profile, #postBook, #loggeduser {
    background-color: rgba(255, 255, 255, 0.16);
    color: #f8f9fa;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

#profile:hover,
#postBook:hover {
    background-color: #e5eef1;
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.14);
}

#loggeduser {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    max-width: 150px;
}

@media (max-width: 980px) {
    #nav {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    #searchdiv {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .nav-actions {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    #nav {
        padding: 12px;
        gap: 10px;
    }

    #log {
        font-size: 1.25rem;
    }

    #menuToggle {
        display: flex;
        margin-left: auto;
    }

    .nav-actions {
        display: none;
        width: 100%;
        order: 4;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 6px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-actions.open {
        display: grid;
    }

    #postBook {
        grid-column: 1 / -1;
        width: 100%;
        padding: 0 12px;
        font-size: 0.95rem;
    }

    #profile {
        width: 100%;
        padding: 0 14px;
        font-size: 0.95rem;
    }

    .menu-user-id,
    .menu-auth-btn {
        grid-column: 1 / -1;
        width: 100%;
        padding: 6px;
    }

    #loggeduser {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    #searchBook {
        font-size: 15px;
    }
}

#container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: start;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(180deg, #f8f9fa, #eef1f5);
    width: 100%;
    min-height: calc(100vh - 64px);
    box-sizing: border-box;
}

.books {
    font-family: 'Poppins', 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    display: flex;
    flex-direction: row;
    position: relative;
    align-items: stretch;
    background-color: #ffffff;
    border: 1px solid #e3eaf3;
    min-height: 190px;
    height: auto;
    width: 100%;
    max-width: 340px;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(30, 58, 95, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin: 0;
    padding: 0;
    gap: 0;
    overflow: hidden;
    animation: fadeIn 0.25s ease;
}

.books:hover {
    cursor: pointer;
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(30, 58, 95, 0.14);
}

.bookImg {
    width: 160px;
    aspect-ratio: 3 / 4;
    height: auto;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #e9eef5;
    border-right: 1px solid #e3eaf3;
}

.bookImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.books:hover .bookImg img {
    transform: scale(1.03);
}

.bookInfo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-height: 190px;
    height: auto;
    padding: 14px;
    box-sizing: border-box;
    gap: 8px;
}

.bookname {
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.price {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.bookCondition {
    color: var(--text-light);
    font-size: 13px;
    margin: 0;
}

.bookConditionValue {
    color: var(--dark);
    font-weight: 600;
}

.Price {
    color: var(--success);
    font-weight: 700;
    margin-right: 4px;
}

.buyBtn {
    font-size: 14px;
    height: 36px;
    width: 150px;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(74, 144, 226, 0.28);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
    bottom: 0px;
}

.buyBtn:hover {
    background: #3a7cd6;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(74, 144, 226, 0.34);
}

.buyBtn:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    #container {
        gap: 12px;
        padding: 12px;
        grid-template-columns: 1fr;
    }

    .books {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        border-radius: 12px;
    }

    .bookImg {
        width: 100%;
        aspect-ratio: 3 / 4;
        height: auto;
        border-right: 1px solid #e3eaf3;
    }

    .bookInfo {
        width: 100%;
        min-height: auto;
        padding: 10px 12px;
        gap: 6px;
    }

    .bookname {
        font-size: 14px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .price {
        font-size: 13px;
    }

    .buyBtn {
        width: 100%;
        height: 34px;
        font-size: 13px;
        margin-top: auto;
    }

    .books:hover {
        transform: none;
    }
}

/* Book creation form */
.listbook {
    z-index: 1000;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    gap: 20px;
    width: 90%;
    max-width: 500px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.listbook h2 {
    color: var(--dark);
    margin-bottom: 10px;
    text-align: center;
}

#bookSellPrice, #bookSellName, #bookSellCondition, #bookSellPhoto {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#bookSellCondition label {
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
}

#enterPrice, #enterbookname, #bookCondition {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    background: white;
    color: var(--text);
}

#enterPrice:focus, #enterbookname:focus, #bookCondition:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

#photoPicker {
    min-height: 130px;
    border: 2px dashed #cfd6df;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

#photoPicker:hover {
    border-color: var(--primary);
    background: #f2f7ff;
}

#photoPickerText {
    color: var(--dark);
    font-weight: 600;
}

#photoPicker small {
    color: var(--text-light);
    font-size: 12px;
}

#photoPreviewList {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
}

.photo-thumb-wrap {
    position: relative;
}

.photo-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #dfe5ee;
}

.photo-default-badge {
    position: absolute;
    left: 4px;
    bottom: 4px;
    background: rgba(30, 58, 95, 0.88);
    color: white;
    font-size: 10px;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 6px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

#submitBook, #cancelBook {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#submitBook {
    background: var(--success);
    color: white;
}

#submitBook:hover {
    background: #0fb974;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(18, 214, 135, 0.4);
}

#cancelBook {
    background: #f1f1f1;
    color: var(--text);
}

#cancelBook:hover {
    background: #e2e2e2;
    transform: translateY(-2px);
}

/* Delete button */
.bookDelBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 30px;
    width: auto;
    padding: 0 10px;
    border-radius: 999px;
    border: none;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.bookDelBtn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.35);
}

/* Buy page */
#buyBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 35, 0.45);
    z-index: 999;
    display: none;
}

#buyPage {
    height: auto;
    max-height: 90vh;
    width: 90%;
    max-width: 500px;
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    display: none;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: modalFadeIn 0.3s ease;
    overflow-y: auto;
}

@media (min-width: 641px) {
    #buyPage {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    #buyPage::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }
}

#buyCloseBtn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #eef3f9;
    color: var(--dark);
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 3;
}

#buyCloseBtn:hover {
    background: #dbe6f2;
    transform: scale(1.04);
}

#buyCloseBtn:active {
    transform: scale(0.98);
}

#buyPageMediaRow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    width: 100%;
    position: relative;
}

.buy-nav-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(30, 58, 95, 0.85);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
    z-index: 2;
}

#buyPageImg {
    height: 200px;
    width: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 0 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

#buyPageThumbs {
    display: none;
    gap: 8px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px;
    margin: 0 0 12px;
    scroll-snap-type: x mandatory;
    width: calc(100% - 162px);
    min-height: 120px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#buyPageThumbs::-webkit-scrollbar {
    display: none;
}

.buy-slide-btn {
    border: none;
    background: white;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    flex: 0 0 auto;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 2px solid transparent;
}

.buy-slide-btn.active {
    border-color: var(--primary);
}

.buy-slide-img {
    width: 85px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

#buyImageCounter {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    margin: -6px 0 8px;
    display: none;
}

@media (max-width: 640px) {
    #buyPageMediaRow {
        justify-content: center;
        align-items: center;
        gap: 0;
    }

    #buyPageImg {
        width: 170px;
        height: 230px;
        margin: 0 auto 12px;
    }

    #buyPageThumbs {
        display: none !important;
    }

    .buy-nav-btn {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    #buyPrevBtn {
        left: 8px;
    }

    #buyNextBtn {
        right: 8px;
    }
}

#bookPageName, #bookPagePrice, #bookPageCondition, #ContactNumber {
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

#Para {
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    margin: 15px 0;
    text-align: center;
}

#DoneBtn {
    cursor: pointer;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

#DoneBtn:hover {
    background: #3a7cd6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

/* notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.info {
    background: var(--primary);
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.custom-dialog {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 80%;
    text-align: center;
}

.custom-dialog p {
    margin-bottom: 20px;
}

.custom-dialog button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 5px;
}

.custom-dialog button:first-child {
    background: #007bff;
    color: white;
}

.custom-dialog button:last-child {
    background: #dc3545;
    color: white;
}


.warning-box {
  position: fixed;
  top: 300px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffdddd;
  color: #900;
  padding: 18px 22px;
  border: 2px solid #900;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  z-index: 9999;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  text-align: center;
  max-width: 90%;
}

.warning-box p {
  margin: 0 0 12px 0;
}

.warning-ok-btn {
  background: rgb(76, 106, 218);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  font-weight: bold;
}

.warning-ok-btn:hover {
  background: #b30000;
}

.newCon{
    color: #12d687;
}
