/* PDF Modal Styles - Simple Scrollable Version */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.pdf-container {
    position: relative;
    width: 90%;
    max-width: 1032px;
    height: 90%;
    margin: 2.5% auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    /* border-bottom: 1px solid #e5e7eb; */
    background: #fff;
}

.pdf-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.pdf-header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: end;
}

/* .pdf-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #8B4513;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.pdf-download-btn:hover {
    background: #6d3410;
} */

/* .pdf-close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-close-btn:hover {
    background: #e5e7eb;
} */

.pdf-canvas-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* background: #f3f4f6; */
    padding: 20px;
}

.pdf-pages-container {
    max-width: 100%;
}

.pdf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.pdf-spinner {
    border: 4px solid #e5e7eb;
    border-top: 4px solid #8B4513;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pdf-loading p {
    color: #6b7280;
    font-size: 16px;
}

.pdf-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px 24px;
    border-radius: 6px;
    font-weight: 500;
    margin: 20px;
    text-align: center;
}

/* Custom Scrollbar */
.pdf-canvas-container::-webkit-scrollbar {
    width: 10px;
}

.pdf-canvas-container::-webkit-scrollbar-track {
    background: #e5e7eb;
}

.pdf-canvas-container::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 5px;
}

.pdf-canvas-container::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .pdf-container {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
    }

    .pdf-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .pdf-header-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .pdf-title {
        font-size: 16px;
    }

    .pdf-download-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
}

.btn-main{
    border-radius: 3px;
    background-color: #5B330E;
    padding: 10px 45px;
    color: white;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 5%;
    font-weight: 400;
    font-family: "Roboto", sans-serif;
    color: #FDF6EC;
    display: inline-block;
    text-decoration: none;
}

.btn-2nd{
    border-radius: 3px;
    background-color: #fff;
    border: 1px #5B330E solid;
    padding: 8px 45px;
    color: #5B330E;
    font-size: 14px !important;
    line-height: 100%;
    letter-spacing: 5%;
    font-weight: 400;
    font-family: "Roboto", sans-serif !important;
    display: inline-block;
    text-decoration: none;
}
@media (max-width: 575.98px) { 
   .pdf-canvas-container {
    padding: 20px 5px;
   }
   .pdf-header {
    padding: 15px 10px;
   }
   .btn-2nd {
      padding: 8px 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
   }
   .pdf-close-btn {
      padding: 10px 25px ;
   }
}