body {
    font-family: 'Rawline', sans-serif;
    /* background-image: url('/static/croppers/img/background.svg') !important; */
}

.mycontent-left {
    border-right: 1px dashed #333;
}

@media (max-width: 991px) {
    .mycontent-left {
        border-right: none;
    }
}

.feature-title {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 1rem;
}

.feature-video {
    padding: 15px;
    background-color: #F4FEFF;
    border-radius: 10px;
}

.header-row {
    font-size: 14px;
    font-weight: 600;
    color: #024263;
    margin-bottom: 8px;
}

.file-entry {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.file-entry .input-group-text {
    background-color: #024263;
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 16px;
}

.file-name a {
    color: #024263;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    word-break: break-all;
    overflow-wrap: break-word;

}

.file-name a:hover {
    text-decoration: underline;
}

.icon-link {
    color: #024263;
    font-size: 1.2rem;
}


.feature-card-upgraded {
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-card-upgraded:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.feature-icon-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background-color: #024263;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-circle i {
    font-size: 30px;
    color: white;
}

.feature-title-upgraded {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.feature-desc-upgraded {
    font-size: 15px;
    color: #555;
    min-height: 60px;
}

.feature-btn-upgraded {
    display: inline-block;
    background-color: #024263;
    color: #ffffff !important;
    padding: 10px 26px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.feature-btn-upgraded:hover {
    background-color: #012d4b;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.editor-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #024263;
    margin-right: 1.5rem;
}

.toolbar-controls {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 0.5rem;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border-right: 1px solid #e5e5e5;
    padding-right: 0.5rem;
    margin-right: 0.5rem;
}

.control-group:last-child {
    border-right: none;
}

.font-family-select,
.font-size-select {
    height: 2rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    background-color: #ffffff;
}

.font-family-select {
    width: 140px;
}

.font-size-select {
    width: 100px;
}

.format-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.format-btn:hover {
    background-color: #f9fafb;
}

.format-btn.active {
    background-color: #024263;
    color: white;
    border-color: #024263;
}

input[type="color"] {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.25rem;
    padding: 0 1rem;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.action-btn.primary {
    background-color: #024263;
    color: white;
    border-color: #024263;
}

.action-btn.primary:hover {
    background-color: #01344e;
}

.action-btn.danger {
    background-color: #9d101c;
    color: white;
    border-color: #9d101c;
}

.action-btn.danger:hover {
    background-color: #bb2d3b;
}

/* Main Editor Area */
.editor-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.editor-sidebar {
    width: 280px;
    background-color: #ffffff;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #024263;
    border-bottom: 2px solid #024263;
}

.sidebar-panel {
    display: none;
    flex-direction: column;
    overflow-y: auto;
    padding: 1rem;
    height: 100%;
}

.sidebar-panel.active {
    display: flex;
}

.panel-section {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.count {
    font-size: 0.75rem;
    font-weight: 400;
    color: #6b7280;
}

/* Element Grid */
.element-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.element-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.element-btn:hover {
    background-color: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.element-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #024263;
}

.element-label {
    font-size: 0.813rem;
    font-weight: 500;
}

/* Element List */
.element-list {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}

.element-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
}

.element-item:last-child {
    border-bottom: none;
}

.element-item:hover {
    background-color: #f9fafb;
}

.element-item.selected {
    background-color: #e0f2fe;
    border-left: 2px solid #024263;
}

.element-info {
    flex: 1;
}

.element-actions {
    display: flex;
    gap: 0.25rem;
}

.action-btn.edit,
.action-btn.rotate,
.action-btn.delete {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn.edit {
    background-color: #fbbf24;
    color: white;
    border-color: #fbbf24;
}

.action-btn.rotate {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.action-btn.delete {
    background-color: #9d101c;
    color: white;
    border-color: #9d101c;
}

.empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Settings Panel */
.settings-group {
    margin-bottom: 1rem;
}

.settings-group label {
    display: block;
    font-size: 0.813rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.unit-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.unit-option {
    padding: 0.5rem;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unit-option:hover {
    background-color: #f9fafb;
}

.unit-option.active {
    background-color: #024263;
    color: white;
    border-color: #024263;
}

.size-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    height: 2.25rem;
    padding: 0 0.75rem;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #024263;
    box-shadow: 0 0 0 2px rgba(2, 66, 99, 0.1);
}

.update-btn,
.add-text-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 2.5rem;
    background-color: #024263;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.update-btn:hover,
.add-text-btn:hover {
    background-color: #01344e;
}

.canvas-container {
    position: relative;
}

canvas {
    background-color: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.canvas-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ffffff;
    padding: 0.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.zoom-btn {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    background-color: #f9fafb;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* JavaScript Compatibility Helpers */
.barcode-tools,
.text-tools {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .toolbar-controls {
        gap: 0.25rem;
    }

    .control-group {
        margin-right: 0.25rem;
        padding-right: 0.25rem;
    }
}

@media (max-width: 992px) {
    .editor-toolbar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .editor-title {
        margin-right: 0;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .toolbar-controls {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .editor-main {
        flex-direction: column;
    }

    .editor-sidebar {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }
}

#canvasWrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#canvasWrapper:focus-visible {
    outline: none;
}

.div-canvas {
    transform-origin: 50% 50%;
}

.canvas-workspace {
    position: relative;
    overflow: visible !important;
    width: calc(100% - 280px);
    background-color: #f5f5f5;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.align-btn.active {
    background-color: #024263;
    color: white;
    border-color: #024263;
}

/* Selection and resize handles should appear above everything */
#selectionOverlay,
#elementControls {
    z-index: 10000;
}

.resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid #024263;
    background: white;
    border-radius: 50%;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    z-index: 10001;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#rotateIcon,
#deleteIcon {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
    z-index: 10002;
    pointer-events: auto;
}

#rotateIcon {
    background: #024263;
    cursor: pointer;
}

#deleteIcon {
    background: #9d101c;
    cursor: pointer;
}

/* Make sure canvas container has proper sizing */
.canvas-container {
    display: inline-block;
    position: relative;
}

.element-editor {
    position: absolute;
    width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    padding: 15px;
    font-size: 14px;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.editor-header .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    color: #666;
}

.editor-controls {
    display: none;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.control-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.half {
    width: 50%;
}

.form-control {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.format-buttons {
    display: flex;
    gap: 5px;
}

.format-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.format-btn.active {
    background: #024263;
    color: white;
    border-color: #024263;
}

.update-btn {
    width: 100%;
    padding: 10px;
    background: #024263;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 5px;
}

.update-btn:hover {
    background: #035982;
}

.barcode-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.barcode-type {
    padding: 12px;
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.barcode-type.active {
    background: #024263;
    color: white;
    border-color: #024263;
}

.canvas-size-inputs {
    display: flex;
    gap: 12px;
}

.canvas-size-inputs input {
    flex: 1;
}

.preset-list {
    margin-top: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.preset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
    margin-bottom: 8px;
    border-left: 3px solid #ddd;
}

.preset-item.default-preset {
    border-left-color: #024263;
    background-color: #e6f2f7;
}

.preset-info {
    flex: 1;
}

.preset-name {
    font-weight: 600;
    font-size: 14px;
}

.preset-details {
    font-size: 12px;
    color: #666;
}

.preset-actions {
    display: flex;
    gap: 5px;
}

.preset-btn {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 4px;
    background: #fff;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.preset-btn.apply {
    color: #198754;
}

.preset-btn.default {
    color: #ffc107;
}

.preset-btn.default.active {
    background-color: #ffc107;
    color: #212529;
}

.preset-btn.apply.active {
    background: #198754;
    color: white;
}

.preset-btn.delete {
    color: #dc3545;
}

.empty-presets {
    text-align: center;
    padding: 15px;
    color: #6c757d;
    font-size: 14px;
}

.modal-preset-list {
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.modal-preset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px;
    border-radius: 6px;
    background-color: #f8f9fa;
    margin-bottom: 10px;
    border-left: 4px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-preset-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-preset-item.default-preset {
    border-left-color: #024263;
    background-color: #e6f2f7;
}

.modal-preset-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.modal-preset-name {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.modal-preset-details {
    font-size: 13px;
    color: #666;
}

.default-star {
    margin-left: 8px;
    color: #ffc107;
    cursor: pointer;
}

.default-star svg {
    vertical-align: -2px;
}

.empty-presets {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.default-toggle {
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    user-select: none;
    cursor: pointer;
}

.default-toggle input {
    margin-right: 5px;
}

.default-toggle svg {
    margin-left: 5px;
    color: #ffc107;
}

#selectionBorder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

#border {
    position: absolute;
    border: 2px dashed #024263;
    background: rgba(173, 216, 230, 0.1);
    pointer-events: none;
    box-sizing: border-box;
    z-index: 10000;
}

/* Notification */
#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    max-width: 300px;
    z-index: 99999;
    transition: all 0.3s ease;
    transform: translateX(400px);
    opacity: 0;
}

#notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Success notification */
#notification.success {
    border-left: 5px solid #28a745;
}

/* Error notification */
#notification.error {
    border-left: 5px solid #dc3545;
}

#notification.warning {
    border-left: 5px solid #ffc107;
}

#notification.info {
    border-left: 5px solid #198ea8;
}

/* Minimal sticky left div for flipkart */
.sticky-left-icons {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999999;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Icon styling */
.sticky-left-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #024263;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
    position: relative;
}

.sticky-left-icons a:hover {
    background-color: #324f6d;
    color: white;
    transform: scale(1.05);
}

.sticky-left-icons a i {
    font-size: 16px;
}

/* Tooltip */
.sticky-left-icons a::after {
    content: attr(title);
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000000;
}

.sticky-left-icons a:hover::after {
    opacity: 1;
}

.filedrop--item {
    width: calc(25% - 0.5em);
    height: 100%;
}

#filedrop-form{
    margin-left: 4rem !important;
}