
      :root {
    --primary-color: #01796f;
    --primary-hover: #01796f;
    --secondary-color: #6c757d;
    --light-gray: #f9fafc;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --white: #ffffff;
    --black: #212529;
}

.whiteout-element .resize-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #01796f;
    border: 1px solid white;
    z-index: 10;
}

.whiteout-element .resize-nw {
    top: -4px;
    left: -4px;
    cursor: nwse-resize;
}

.whiteout-element .resize-ne {
    top: -4px;
    right: -4px;
    cursor: nesw-resize;
}

.whiteout-element .resize-sw {
    bottom: -4px;
    left: -4px;
    cursor: nesw-resize;
}

.whiteout-element .resize-se {
    bottom: -4px;
    right: -4px;
    cursor: nwse-resize;
}
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: none;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #01796f;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Header Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
      padding: 0.25rem 0; /* Reduced padding */
}
.navbar-brand i {
    font-size: 1.1em;
}

.navbar-brand:hover {
    color: var(--primary-hover);
}

.navbar {
    min-height: 60px; /* Reduced from default */
    padding: 0.5rem 1rem; /* Tighter padding */
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--dark-gray);
}

.nav-link:hover {
    color: var(--primary-color);
}
/* Add this to your existing CSS */
.toolbar-select {
    min-width: 70px !important; /* Reduced from larger values */
    max-width: 70px !important;
    height: 28px !important;
    font-size: 12px !important;
    padding: 0 6px !important;
    margin: 0 2px !important;
}

/* Specific styling for compression level dropdown */
#compressionLevel {
    min-width: 100px !important;
    max-width: 140px !important;
}
.dropdown-menu {
    border: 1px solid var(--medium-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    max-width: 200px;
     max-height: 300px;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.dropdown-item {
    white-space: normal;
    padding: 0.25rem 0.75rem;
    font-size: 12px;
}

.dropdown-item:hover {
    background-color: rgba(44, 123, 229, 0.1);
    color: var(--primary-color);
}
/* For the page number position dropdown */
#pageNumberPosition {
    min-width: 90px !important;
}

/* For the page number format dropdown */
#pageNumberFormat {
    min-width: 80px !important;
}

/* For the drawing size dropdown */
#drawingSize {
    min-width: 70px !important;
}
.dropdown-toggle::after {
    margin-left: 0.2em;
    vertical-align: 0.15em;
}
@media (max-width: 768px) {
    .toolbar-select {
        min-width: 70px !important;
        max-width: 70px !important;
    }
    
    #compressionLevel {
        min-width: 80px !important;
        max-width: 80px !important;
    }
}
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-item {
    margin: 0 0.2rem;
}

@media (max-width: 992px) {
    .navbar-nav .nav-item {
        margin: 0;
    }
    
    .dropdown-menu {
        box-shadow: none;
        border-radius: 0;
        border-left: 3px solid var(--primary-color);
    }
}

body {
    background-color: var(--light-gray);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     padding-top: 0px;
    color: var(--dark-gray);
}

.container {
    margin-top: 0px;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--medium-gray);
}

h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--black);
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 25px;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    font-weight: 500;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border: none;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #5a6268;
}

.btn-danger {
    font-weight: 500;
}

.canvasContainer {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.pdf-page-container {
    position: relative;
    display: inline-block;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    transition: transform 0.3s;
}

.pdf-page-container canvas {
    display: block;
    border: 1px solid var(--medium-gray);
    max-width: 100%;
    height: auto;
}

.pdf-clickable-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 5;
}

.non-editable-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Improved Thumbnail Styles */
.thumbnail-container {
    display: flex;
    overflow-x: auto;
    padding: 15px;
    margin-bottom: 20px;
    background-color: var(--white);
    border-radius: 8px;
    min-height: 150px;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f3f5;
    position: relative; 
    border: 1px solid var(--medium-gray);
}


.thumbnail-container::-webkit-scrollbar {
    height: 8px;
}


.thumbnail-container::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 10px;
}

.thumbnail-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.thumbnail-item {
    position: relative;
    cursor: move;
    flex-shrink: 0;
    width: 100px;
    height: 140px;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-right: 25px;
    border: 1px solid var(--medium-gray);
}

.thumbnail-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.3);
}

.thumbnail-item .thumbnail-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: white;
}

.thumbnail-item .page-number {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    z-index: 10;
    font-weight: 600;
}

/* Replace the existing .thumbnail-actions styles with: */
.thumbnail-item .thumbnail-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.6);
}

.thumbnail-item:hover .thumbnail-actions {
    transform: translateY(0);
}


.thumbnail-item .thumbnail-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    flex: 0 0 auto; /* Prevent any flex growth/shrink */
    overflow: hidden; /* Prevent overflow from content */
    padding: 0; /* No extra padding */
}


.thumbnail-item .thumbnail-btn:hover {
    transform: scale(1.1);
}

.thumbnail-item .rotate-btn {
    background-color: var(--primary-color);
}

.thumbnail-item .delete-btn {
    background-color: #dc3545;
}

.thumbnail-item .download-btn {
    background-color: #28a745;
}

.drag-indicator {
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 14px;
}

/* Add arrows between thumbnails */
.thumbnail-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 5;
}

/* Sortable ghost item */
.sortable-ghost {
    opacity: 0.5;
    background: #e1effe;
}

/* Toolbar Styles */
/* Editor Toolbar Styles */
/* Editor Toolbar Styles */
.editor-toolbar {
    background-color: var(--white);
    border-radius: 8px;
    padding: 6px 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}


.toolbar-section {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-right: 1px solid var(--medium-gray);
    flex-wrap: wrap;
}

.toolbar-section:last-child {
    border-right: none;
}

.toolbar-btn {
      min-width: 28px !important; /* Reduced from 32px */
    height: 28px !important; /* Reduced from 32px */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    cursor: pointer;
    color: var(--dark-gray);
    transition: all 0.2s;
    padding: 0 8px;
    font-size: 13px;
    gap: 6px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.toolbar-btn:hover {
    background-color: #f1f5fa;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.toolbar-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.toolbar-btn i {
    font-size: 12px !important;
    color: inherit;
}

.toolbar-btn-text {
    display: inline;
    font-weight: 500;
}

.toolbar-input {
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--medium-gray);
    padding: 0 8px;
    font-size: 13px;
    background-color: var(--white);
    color: var(--dark-gray);
     width: 40px !important; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.toolbar-select {
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--medium-gray);
    padding: 0 8px;
    font-size: 13px;
    min-width: 50px;
    background-color: var(--white);
    color: var(--dark-gray);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.toolbar-color {
    width: 32px;
    height: 32px;
    padding: 2px;
    border-radius: 6px;
    border: 1px solid var(--medium-gray);
    cursor: pointer;
    background-color: var(--white);
}

.toolbar-divider {
    width: 1px;
    background-color: var(--medium-gray);
    height: 20px !important; /* Shorter dividers */
    margin: 0 3px !important;
}

/* Active state for dropdown */
.dropdown-toggle.active {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.dropdown-toggle.active i {
    color: var(--white) !important;
}

/* Download buttons section */
.toolbar-download-section {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--medium-gray);
    margin-top: 8px;
    flex-wrap: wrap;
}

.toolbar-download-section .btn {
    padding: 6px 8px;
    font-size: 13px;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .toolbar-btn {
        padding: 0 6px;
        font-size: 12px;
    }
    
    .toolbar-select {
        min-width: 50px;
    }
}

@media (max-width: 992px) {
    .editor-toolbar {
        gap: 5px;
        padding: 6px 8px;
    }
    
    .toolbar-section {
        padding: 3px 5px;
        border-right: none;
        border-bottom: 1px solid var(--medium-gray);
        width: 100%;
    }
    
    .toolbar-select {
        min-width: 50px;
        font-size: 12px;
    }
    
   @media (max-width: 768px) {
  .toolbar-btn-text:not(.image-to-pdf-text) {
    display: none;
  }
}
    .toolbar-btn {
        min-width: 32px;
        padding: 0 4px;
    }
}

@media (max-width: 768px) {
    .editor-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
    }
    
    .toolbar-section {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--medium-gray);
        padding: 6px 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .toolbar-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .toolbar-divider {
        display: none;
    }
    
    .toolbar-btn-text {
        display: inline;
    }
    
    .toolbar-btn {
        min-width: auto;
        padding: 0 8px;
        
    }
    
    .toolbar-download-section {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .toolbar-select {
        min-width: 50px;
        font-size: 12px;
    }
    
    .toolbar-input {
        width: 45px;
        font-size: 12px;
    }
    
    .toolbar-btn {
        height: 30px;
        font-size: 12px;
    }
    
    .toolbar-btn i {
        font-size: 13px;
    }
}

/* Active state for dropdown */
.dropdown-toggle.active {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

.dropdown-toggle.active i {
    color: var(--white) !important;
}

.text-element {
    position: absolute;
    cursor: move;
    padding: 5px;
    min-width: 50px;
    min-height: 20px;
    border: 1px dashed transparent;
    z-index: 25; /* Higher than whiteout elements */
    background-color: transparent; /* Make sure background is transparent */
     line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
}

.text-element:hover {
    border-color: var(--medium-gray);
}

.text-element.selected {
    border-color: var(--primary-color);
    background-color: rgba(44, 123, 229, 0.08);
}

.text-element .delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 30;
    border: none;
    pointer-events: auto; /* Needed for click */
}


.text-element.selected .delete-btn {
    display: flex;
}

.whiteout-element {
    position: absolute;
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    z-index: 10; /* Keep this lower than text elements */
    cursor: move;
    /* Remove pointer-events: none */
}

.whiteout-element.selected {
    border-color: var(--primary-color);
    pointer-events: auto; /* This may not even be needed anymore */
}

.whiteout-element .delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 30;
    border: none;
    pointer-events: auto; /* Ensure the button receives pointer events */
}

.whiteout-element.selected .delete-btn {
    display: flex;
    pointer-events: auto; /* Ensure the button receives pointer events when visible */
}

.image-element {
    position: absolute;
    z-index: 20;
    cursor: move;
    border: 1px solid transparent;
}

.image-element.selected {
    border-color: var(--primary-color);
}

.image-element img {
    max-width: 100%;
    max-height: 100%;
    pointer-events: none;
}

.image-element .delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 30;
    border: none;
}

.image-element .resize-handle {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: nwse-resize;
    display: none;
    z-index: 30;
}

.image-element.selected .delete-btn,
.image-element.selected .resize-handle {
    display: flex;
}

.drawing-element {
    position: absolute;
    pointer-events: none;
    z-index: 16;
}

.drawing-element.selected {
    border: 1px dashed var(--primary-color);
}

.drawing-element .delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 30;
    border: none;
}

.drawing-element.selected .delete-btn {
    display: flex;
}

/* Shape Elements */
.shape-element {
    position: absolute;
    z-index: 18;
    cursor: move;
    border: 1px solid transparent;
    transform-origin: top left;
}

.shape-element.selected {
    border-color: var(--primary-color);
}

.shape-element .delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 30;
    border: none;
}

.shape-element .resize-handle {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: nwse-resize;
    display: none;
    z-index: 30;
}

.shape-element.selected .delete-btn,
.shape-element.selected .resize-handle {
    display: flex;
}

/* Arrow shape */
.arrow-shape {
    width: 100%;
    height: 100%;
    position: relative;
}

.arrow-shape::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;  /* Extend to full width */
    height: 2px;
    background-color: currentColor;
    transform: translateY(-50%);
}

.arrow-shape::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-left-color: currentColor;
    border-right: 0;
    transform: translateY(-50%) translateX(30%); /* Adjust this to remove gap */
    margin-right: -10px; /* Pull arrowhead closer to line */
}

/* Circle shape */
.circle-shape {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid currentColor;
    background-color: transparent;
}

/* Rectangle shape */
.rectangle-shape {
    width: 100%;
    height: 100%;
    border: 2px solid currentColor;
    background-color: transparent;
}

/* Line shape */
.line-shape {
    width: 100%;
    height: 2px;
    background-color: currentColor;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#dropZone {
     border: 2px dashed #01796f !important; /* Black border */
    padding: 20px;
    text-align: center;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 8px;
    background-color: var(--white);
    transition: all 0.2s;
}

#dropZone:hover {
    border-color: var(--primary-color);
    background-color: rgba(44, 123, 229, 0.05);
}

.drop-zone-text {
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 5px;
}

.drop-zone-subtext {
    color: #adb5bd;
    font-size: 13px;
}

.download-btn {
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 8px;
}

.pdf-list {
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    padding: 10px;
    background-color: var(--white);
}

.pdf-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    font-size: 14px;
}

.pdf-list-item:last-child {
    margin-bottom: 0;
}

.pdf-list-item .remove-btn {
    color: #dc3545;
    cursor: pointer;
    background: none;
    border: none;
    margin-left: 10px;
}

.pdf-list-item .file-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pdf-list-item .file-name {
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.pdf-list-item .file-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #666;
}

.file-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.file-meta-item i {
    font-size: 11px;
}

/* Page selection modal */
.page-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.page-selection-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--medium-gray);
}

.page-selection-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.page-selection-thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.2s;
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
}

.page-selection-thumbnail:hover {
    border-color: var(--primary-color);
}

.page-selection-thumbnail.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.3);
}

.page-selection-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.page-selection-number {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 5px;
    color: var(--dark-gray);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .editor-toolbar {
        gap: 6px;
        padding: 8px 10px;
    }
    
    .toolbar-section {
        padding: 3px 5px;
    }
    
    .toolbar-select {
        min-width: 50px;
    }
    
    .thumbnail-item {
        width: 80px;
        height: 110px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .editor-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }
    
    .toolbar-section {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--medium-gray);
        padding: 8px 0;
        justify-content: flex-start;
    }
    
    .toolbar-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .toolbar-divider {
        display: none;
    }
    
    #dropZone {
        padding: 20px;
    }

    .thumbnail-item {
        width: 70px;
        height: 100px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 24px;
    }
    
    .toolbar-select {
        min-width: 50px;
        font-size: 13px;
    }
    
    .toolbar-input {
        width: 60px;
        font-size: 13px;
    }

    .thumbnail-item {
        width: 60px;
        height: 85px;
    }
}

/* body */
/* Features Section */
.features-section {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.features-section .row {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}

.feature-card {
  padding: 15px;
  margin-bottom: 30px;
  text-align: center;
}

.feature-card h3 {
  color: var(--primary-color);
  margin: 20px 0 15px;
  font-size: 1.25rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background-color: rgba(1, 121, 111, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  font-size: 32px;
  color: var(--primary-color);
}

/* About Section */
.about-section {
  padding: 60px 0;
  background-color: var(--white);
  border-top: 1px solid var(--medium-gray);
  border-bottom: 1px solid var(--medium-gray);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-size: 1.75rem;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.faq-section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-size: 1.75rem;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  background-color: var(--white);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.faq-question:hover {
  background-color: rgba(1, 121, 111, 0.05);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--black);
}

.faq-question i {
  transition: transform 0.3s;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer.active {
  padding: 0 20px 20px;
  max-height: 500px;
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  background-color: #f9f9f9;
  text-align: center;
  border-top: 1px solid var(--medium-gray);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 5px;
  margin-bottom: 25px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  color: white;
}

.back-to-top i {
  margin-right: 8px;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  color: var(--dark-gray);
  margin: 0 15px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.copyright {
  color: var(--dark-gray);
  margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .feature-card {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .features-section, 
  .about-section, 
  .faq-section {
    padding: 40px 0;
  }
  
  .feature-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .faq-question {
    padding: 15px;
  }
  
  .faq-question h3 {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .footer-links a {
    display: block;
    margin: 10px 0;
  }
}

/* Add this to your CSS section */
.drawing-element.highlighter {
    mix-blend-mode: multiply;
    opacity: 0.5;
    pointer-events: none;
}
/* Add this to your CSS section */
.highlighter {
    mix-blend-mode: multiply;
    opacity: 0.1;
}
  /* Add this to your existing CSS */
  .pwa-install-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
  }

  .pwa-install-button {
    background-color: #01796f;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
  }

  .pwa-install-button:hover {
    background-color: #01695e;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }

  .pwa-install-button:active {
    transform: translateY(0);
  }

  @media (max-width: 768px) {
    .pwa-install-button {
      padding: 10px 16px;
      font-size: 14px;
    }
  }

/* Compression Results Styling */
.compression-result-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.2);
  z-index: 1000;
  max-width: 90%;
  width: 400px;
  text-align: center;
}

.compression-results h3 {
  margin-bottom: 20px;
  color: #01796f;
}

.size-comparison {
  display: flex;
  justify-content: space-around;
  margin: 15px 0;
}

.size-label {
  display: block;
  font-size: 0.9rem;
  color: #666;
}

.size-value {
  font-size: 1.2rem;
  font-weight: bold;
}

.original-size .size-value {
  color: #333;
}

.compressed-size .size-value {
  color: #28a745;
}

.reduction {
  margin: 20px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
}

.reduction-label {
  font-weight: bold;
}

.reduction-value {
  font-size: 1.4rem;
  color: #dc3545;
  font-weight: bold;
}

.compression-error {
  color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 500px) {
  .size-comparison {
    flex-direction: column;
  }
  
  .size-comparison > div {
    margin: 5px 0;
  }
}

/*Form icons*/

/* Symbol Elements */
.symbol-element {
    position: absolute;
    z-index: 15;
    cursor: move;
    border: 1px dashed transparent;
    transform-origin: top left;
    font-size: 24px;
    line-height: 1;
    user-select: none;
     transform-origin: top left; /* Ensures scaling happens from top-left */
    white-space: nowrap; /* Prevents wrapping when resizing */
}

.symbol-element.selected {
    border-color: #4a89dc;
    background-color: rgba(74, 137, 220, 0.1);
}

.symbol-element .delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 30;
    border: none;
}

.symbol-element.selected .delete-btn {
    display: flex;
}

.symbol-element .resize-handle {
    position: absolute;
    bottom: -5px;
    right: -5px;
    border-radius: 50%;
    cursor: nwse-resize;
    display: none;
    z-index: 30;
    width: 12px;
    height: 12px;
    background: #4a89dc;
    border: 2px solid white;
}


.symbol-element.selected .resize-handle {
    display: flex;
}

/* Custom Modal Styles */
#unsavedChangesModal .modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#unsavedChangesModal .modal-header {
  border-bottom: 1px solid #f0f0f0;
  background-color: #fff9f9;
  border-radius: 12px 12px 0 0;
}

#unsavedChangesModal .modal-title {
  font-weight: 600;
  color: #dc3545;
}

#unsavedChangesModal .modal-body {
  padding: 25px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

#unsavedChangesModal .modal-footer {
  border-top: 1px solid #f0f0f0;
  padding: 15px 25px;
}

#unsavedChangesModal .btn-close {
  font-size: 12px;
}

#confirmActionBtn {
  min-width: 120px;
  font-weight: 500;
}

#cancelActionBtn {
  min-width: 100px;
}
.sortable-ghost {
    opacity: 0.5;
    background: #e1effe;
}

.sortable-drag {
    opacity: 0.8;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
/* Base toolbar styling */
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Toolbar sections (groups of buttons) */
.toolbar-section {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Buttons styling */
.toolbar-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Hide text labels on small screens */
.toolbar-btn-text {
    display: inline;
}

/* Dropdown menu for mobile */
.toolbar-dropdown {
    position: relative;
    display: none; /* Hidden by default */
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 8px;
    min-width: 160px;
}

.toolbar-dropdown:hover .dropdown-content {
    display: block;
}

@media (max-width: 768px) { /* Mobile */
    .editor-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-section {
        width: 100%;
        flex-wrap: wrap;
    }

    .toolbar-dropdown {
        display: block; /* Show "More" button */
    }


}
@media (max-width: 480px) { /* Small mobile */
    .toolbar-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 4px;
    }
}
@media (max-width: 768px) {
  .thumbnail-item {
    position: relative;
    padding-right: 40px; /* Make space for vertical buttons */
  }
  
  .thumbnail-item .thumbnail-actions {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    left: auto;
    width: 30px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.6);
  }
  
  .thumbnail-item .thumbnail-btn {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    font-size: 8px;
  }
  
  .drag-indicator {
    display: none; /* Hide drag indicator on mobile */
  }
}

/* Style the page number format dropdown */
#pageNumberFormat {
    min-width: 120px;
    margin-left: 8px;
}

@media (max-width: 768px) {
    #pageNumberFormat {
        min-width: 100px;
        margin-left: 0;
        margin-top: 5px;
    }
}
.highlighter {
    mix-blend-mode: multiply;
    opacity: 0.5;
    pointer-events: none;
}
/* Add this to your CSS */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}
/* Add this to your CSS */
.always-enabled {
    pointer-events: auto !important;
    opacity: 1 !important;
}
@media (max-width: 768px) {
    .editor-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        padding: 8px;
        align-items: center;
        justify-content: flex-start;
    }
    
    .toolbar-section {
        width: auto;
        border-right: 1px solid var(--medium-gray);
        border-bottom: none;
        padding: 0 8px 0 0;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    
    .toolbar-section:last-child {
        border-right: none;
        padding-right: 0;
    }
    
    .toolbar-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 6px;
    }
    
  @media (max-width: 768px) {
  .toolbar-btn-text:not(.image-to-pdf-text) {
    display: none;
  }
}
    .toolbar-select {
        min-width: 50px;
        font-size: 12px;
    }
    
    .toolbar-input {
        width: 50px;
    }
    
    /* Make dropdown menus scrollable */
    .dropdown-menu {
        max-height: 300px;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
@media (max-width: 768px) {
  .toolbar-btn-text:not(.image-to-pdf-text) {
    display: none;
  }
}
    
    .toolbar-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 4px;
        font-size: 12px;
    }
    
    .toolbar-select {
        min-width: 50px;
        font-size: 11px;
    }
    
    .toolbar-input {
        width: 40px;
        font-size: 11px;
    }
}
/* New responsive toolbar styles */
@media (min-width: 992px) and (max-width: 1200px) {
    .toolbar-section {
        flex-wrap: wrap;
        padding: 5px;
    }
    
    .toolbar-btn {
        margin-bottom: 4px;
    }
    
    .toolbar-select {
        min-width: 50px;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .toolbar-section {
        flex-wrap: wrap;
        padding: 4px;
        border-right: none;
    }
    
    .toolbar-btn {
        margin-bottom: 4px;
    }
    
    .toolbar-select {
        min-width: 50px;
    }
    
 @media (max-width: 768px) {
  .toolbar-btn-text:not(.image-to-pdf-text) {
    display: none;
  }
}
}

/* Improved toolbar wrapping */
.toolbar-section {
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px;
}

.toolbar-btn {
    flex-shrink: 0;
}

.toolbar-select, .toolbar-input {
    flex-shrink: 1;
   min-width: 50px; 
     height: 28px !important;
    font-size: 12px !important;
    padding: 0 6px !important;
}

/* Better spacing for toolbar sections */
.toolbar-section:not(:last-child) {
    margin-right: 8px;
}

/* Improved dropdown behavior */
.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

/* Better mobile toolbar */
@media (max-width: 768px) {
    .editor-toolbar {
        padding: 10px;
    }
    
    .toolbar-section {
        padding: 8px 0;
    }
    
    .toolbar-btn {
        min-width: 36px;
    }
    
    .toolbar-select {
        min-width: 50px !important; /* Slightly narrower */
    }
}
/* Compression controls styling */
.compression-controls {
  background-color: rgba(1, 121, 111, 0.1);
  border-radius: 8px;
  padding: 4px 8px;
}



#compressBtn {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}

#compressBtn:hover {
  background-color: #218838;
  border-color: #218838;
}

.toolbar-select {
  min-width: 120px;
  margin: 0 5px;
  border-radius: 6px;
  border: 1px solid #ced4da;
  padding: 0 8px;
  font-size: 13px;
  height: 32px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .compression-controls {
    flex-direction: column;
    gap: 5px;
  }
  
  .toolbar-select {
    margin: 0;
    width: 100%;
  }
}

/* Ensure the button is always enabled */
.always-enabled {
    pointer-events: auto !important;
    opacity: 1 !important;
    background-color: #01796f !important; /* Match your theme color */
    color: white !important;
}

.always-enabled:hover {
    background-color: #01695e !important; /* Darker shade on hover */
}
/* Override disabled toolbar styles for this button */
.editor-toolbar.disabled .active-btn {
    opacity: 1 !important;
    background-color: #01796f !important;
    color: white !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Hover effect */
.editor-toolbar.disabled .active-btn:hover {
    background-color: #01695e !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}
/* OVERRIDE ALL DISABLED STYLES FOR THIS BUTTON */
#toolbar.disabled #imageToPdfBtn.image-to-pdf-btn {
    opacity: 1 !important;
    background-color: #01796f !important;
    color: white !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    border: 1px solid #01796f !important;
    filter: none !important; /* Removes grayscale filter if applied */
}

/* Hover State */
#toolbar.disabled #imageToPdfBtn.image-to-pdf-btn:hover {
    background-color: #01695e !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}
/* Add this to your existing CSS */
.thumbnail-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 16px;
    opacity: 0.7;
    z-index: 5;
    pointer-events: none; /* Prevent arrows from interfering with drag/drop */
}

/* Responsive adjustments for arrows */
@media (max-width: 768px) {
    .thumbnail-arrow {
        font-size: 12px;
    }
}
  /* Add to your existing CSS */
  .btn-loading {
    position: relative;
    pointer-events: none;
  }
  
  .btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -0.5em 0 0 -0.5em;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .btn-loading .btn-text {
    visibility: hidden;
  }
.text-properties-panel {
    position: absolute;
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    pointer-events: auto;
    transition: opacity 0.2s ease;
    margin: 0;
     margin-bottom: 10px; /* Adds space below the panel */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Makes it float more distinctly */
    border: 1px solid #ddd; /* Stronger border */
    padding: 10px; /* More internal padding */
    background: white;
    border-radius: 8px;
}

.text-properties-panel .toolbar-section {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}
.text-properties-panel:not(.d-none) {
    display: flex;
    opacity: 1;
}
.text-properties-panel .toolbar-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
}


.text-properties-panel .toolbar-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.text-properties-panel .toolbar-input {
    width: 50px;
}

.text-properties-panel .toolbar-select {
    min-width: 100px;
}
/* Metadata Modal Styles */
.metadata-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.metadata-modal.show {
    opacity: 1;
    visibility: visible;
}

.metadata-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.metadata-modal.show .metadata-content {
    transform: translateY(0);
}

.metadata-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metadata-header h3 {
    margin: 0;
    color: #01796f;
    font-size: 1.3rem;
}

.metadata-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.metadata-body {
    padding: 20px;
}

.metadata-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.metadata-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.metadata-file-name {
    font-weight: 600;
    color: #01796f;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.metadata-file-name i {
    margin-right: 8px;
}

.metadata-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.metadata-detail {
    display: flex;
    flex-direction: column;
}

.metadata-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 3px;
}

.metadata-value {
    font-weight: 500;
    word-break: break-word;
}

@media (max-width: 600px) {
    .metadata-details {
        grid-template-columns: 1fr;
    }
}

  .touch-device-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    max-width: 300px;
    text-align: center;
    display: none;
  }
  
  .touch-device-popup h4 {
    margin-top: 0;
    color: #01796f;
  }
  
  .touch-device-popup p {
    margin-bottom: 20px;
  }
  
  .touch-device-popup button {
    background-color: #01796f;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
  }
  .draggable-item {
    cursor: move; /* or cursor: grab; */
    border: 1px dashed #ccc;
    background-color: #f9f9f9;
    padding: 8px;
    margin-bottom: 6px;
    user-select: none;
}

/* Add to your CSS */
.page-size-dropdown {
    display: none;
    min-width: 220px;
    padding: 0.5rem 0;
    background: white;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    z-index: 1000; /* Ensure it appears above other elements */
}

.pdf-page-container, .thumbnail-container {
    position: relative;
    z-index: 1;
}
.page-size-dropdown.show {
    display: block;
}

.page-size-dropdown .dropdown-header {
    padding: 5px 15px;
    font-weight: bold;
    color: #555;
    font-size: 0.85em;
}

.page-size-dropdown .dropdown-item {
    padding: 5px 15px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
    display: block;
}

.page-size-dropdown .dropdown-item:hover {
    background-color: #f5f5f5;
}

/* Blank page styles */
.blank-page {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2em;
}
/* Page addition styles */
.page-size-dropdown {
    display: none;
    min-width: 220px;
    padding: 0.5rem 0;
    background: white;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    z-index: 1000;
}

.page-size-dropdown .dropdown-header {
    padding: 0.25rem 1.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 600;
}

.page-size-dropdown .dropdown-item {
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.page-size-dropdown .dropdown-item:hover {
    color: #16181b;
    background-color: #f8f9fa;
}
 /* Add this CSS to your stylesheet or in a style tag in the head */
  .features-section h1.section-heading {
    font-size: 28px; /* Reduced from typical 36-40px */
    line-height: 1.3;
  }
  
  .features-section h2,
  .faq-section h2,
  .faq-item h3 {
    font-size: 20px; /* Reduced from typical 24-28px */
    line-height: 1.4;
  }
  
  .features-section p,
  .faq-section p,
  .faq-answer p {
    font-size: 15px; /* Reduced from typical 16-18px */
    line-height: 1.5;
  }
  
  .section-subtitle {
    font-size: 16px; /* Slightly larger than regular paragraphs */
  }
  
  .feature-cta {
    font-size: 16px; /* Slightly larger for emphasis */
  }
.thumbnail-item.selected {
    box-shadow: 0 0 0 3px #01796f;
}

.thumbnail-item {
    transition: box-shadow 0.2s ease;
    cursor: pointer;
}
.thumbnail-actions {
    pointer-events: none; /* Let clicks pass through to the parent */
}

.thumbnail-actions button {
    pointer-events: auto; /* But make buttons clickable */
}
.ocr-text-editor {
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    border-radius: 2px;
}

.ocr-word-element:hover {
    background-color: rgba(1, 121, 111, 0.1) !important;
    opacity: 0.3 !important;
}
.ocr-text-element {
    cursor: text;
    user-select: text;
}

.ocr-text-element:focus {
    outline: 2px solid #01796f;
    background-color: rgba(255, 255, 255, 0.9) !important;
}
.header {
            text-align: center;
            margin-bottom: 30px;
            width: 100%;
        }
        h1 {
            color: #01796f;
            font-weight: 700;
            font-size: 2.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1.2;
        }
.icons-dropdown {
    padding: 10px;
    width: 100%;
    max-width: 400px;
    max-height: 70vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.icons-dropdown.show {
    display: block !important;
}

.icon-element .resize-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    background: #01796f;
    cursor: nwse-resize;
    z-index: 11;
}

.icons-search-container {
    margin-bottom: 10px;
    position: relative;
}

.icons-search {
    width: 100%;
    padding: 8px 30px 8px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.icons-search:focus {
    outline: none;
    border-color: #01796f;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.icons-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.icon-category-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}

.icon-category-btn.active {
    background: #01796f;
    color: white;
    border-color: #01796f;
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.icon-item:hover {
    background-color: #f0f0f0;
}

.icon-item i {
    font-size: 24px;
    margin-bottom: 5px;
}

.icon-item span {
    font-size: 10px;
    text-align: center;
    word-break: break-word;
    width: 100%;
}

/* Color picker container */
.icon-color-picker {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.icon-color-picker label {
    margin-right: 10px;
    font-size: 12px;
    white-space: nowrap;
}

/* Icon element styling */
.icon-element {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    z-index: 10;
}

.icon-element i.material-icons {
    pointer-events: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-element .delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 30;
    border: none;
    padding: 0;
    margin: 0;
    pointer-events: auto;
}

.icon-element.selected .delete-btn {
    display: flex;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .icons-dropdown {
        width: 90vw;
        max-width: none;
    }
    
    .icons-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
    
    .icon-item i {
        font-size: 20px;
    }
    
    .icon-item span {
        font-size: 9px;
    }
}
  
        .step {
            display: flex;
            margin-bottom: 30px;
            align-items: flex-start;
        }
        .step-number {
            background-color: #01796f;
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 20px;
            flex-shrink: 0;
            font-weight: bold;
            font-size: 1.1rem;
        }
        .step-content h3 {
            margin-top: 0;
            margin-bottom: 15px;
            color: #01796f;
            font-size: 1.3rem;
        }
        .step-content p {
            font-size: 1.05rem;
            color: #555;
        }
          /* Tools Section Styles */
  .tools-section {
    background-color: #f9f9f9;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
  }
  
  .section-title {
    text-align: center;
    color: #01796f;
    margin-bottom: 30px;
    font-size: 1.5rem;
  }
  
  .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .tool-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
  }
  
  .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .tool-card a {
    display: block;
    padding: 25px 15px;
    color: #333;
    text-decoration: none;
  }
  
  .tool-card i {
    font-size: 2rem;
    color: #01796f;
    margin-bottom: 10px;
    display: block;
  }
  
  .tool-card span {
    font-weight: 500;
    font-size: 1rem;
  }
  
  @media (max-width: 768px) {
    .tools-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
  }
  
  @media (max-width: 480px) {
    .tools-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

.crypto-modal {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
}

/* Center the modal box */
.crypto-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

        
        .crypto-modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            color: #777;
            background: none;
            border: none;
        }
        
        .crypto-modal-close:hover {
            color: #333;
        }
        .crypto-modal {
    display: none; /* hidden by default */
}
.crypto-modal.active {
    display: flex; /* show as flex for centering */
    justify-content: center;
    align-items: center;
}
        .crypto-modal-title {
            text-align: center;
            margin-bottom: 20px;
            color: #01796f;
            font-size: 1.5rem;
        }
        
        .crypto-options {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 30px;
        }
        
        .crypto-option {
            text-align: center;
            flex: 1;
            min-width: 200px;
        }
        
        .crypto-name {
            font-weight: bold;
            margin-bottom: 10px;
            color: #333;
        }
        
        .crypto-address {
            font-size: 0.8rem;
            word-break: break-all;
            margin: 10px 0;
            padding: 8px;
            background-color: #f5f5f5;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .crypto-address:hover {
            background-color: #e9e9e9;
        }
        
        .copy-notification {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #01796f;
            color: white;
            padding: 10px 20px;
            border-radius: 4px;
            display: none;
            z-index: 10001;
        }
        
        @media (max-width: 600px) {
            .crypto-options {
                flex-direction: column;
                gap: 20px;
            }
            
            .crypto-option {
                min-width: 100%;
            }
            
            .crypto-modal-content {
                padding: 20px 15px;
            }
        }
        h2.hclass {
  font-size: 1.85rem;         /* Slightly smaller than typical h1 (which is ~2.5-3rem) */
  font-weight: 700;           /* Bold like h1 */
  line-height: 1.2;           /* Good readability */
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Clean modern font */
  text-align: center;         /* Keep center alignment as in your class */
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
/* Add to your existing CSS */
#dropZone.drag-over {
    border-color: #01796f !important;
    background-color: rgba(1, 121, 111, 0.1) !important;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

#dropZone {
    transition: all 0.3s ease;
}
