 /* ========================================
   Advanced Document Maker Editor Styles
   ======================================== */

/* Fix Main Website Header - Keep PixVee header fixed at top */
.site-header-new,
header,
.site-header,
.main-header,
.website-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
}

/* Ensure main navigation stays fixed */
.main-navigation,
.nav-menu,
.site-navigation {
    position: relative !important;
    z-index: 10000 !important;
}

/* Adjust body padding to account for fixed header */
body {
    padding-top: 80px !important;
}

/* Ensure editor container doesn't overlap with fixed header */
body .dm-editor,
body .dm-editor-container {
    position: relative !important;
    z-index: 1 !important;
}

/* Additional live site compatibility fixes */
html body .site-header-new,
html body header,
html body .site-header,
html body .main-header,
html body .website-header,
html body #masthead {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
}

/* Force override any conflicting CSS */
body .site-header-new[style*="position"],
body header[style*="position"],
body .site-header[style*="position"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
}

/* Ensure WordPress admin bar compatibility */
.admin-bar body .site-header-new,
.admin-bar body header,
.admin-bar body .site-header {
    top: 32px !important;
}

/* Profile Image Styling - Ensure proper circular display */
.professional-resume img[alt="Profile Photo"] {
    object-fit: cover !important;
    border-radius: 50% !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.professional-resume img[alt="Profile Photo"]:not([src*="data:image/svg+xml"]) {
    object-fit: cover !important;
    border-radius: 50% !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

/* Wedding Biodata Profile Photo Container Fix */
.wedding-biodata div[style*="width: 150px"][style*="height: 200px"] {
    position: relative !important;
    width: 150px !important;
    height: 200px !important;
    overflow: hidden !important;
    border-radius: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wedding-biodata div[style*="width: 150px"][style*="height: 200px"] img[alt="Profile Photo"] {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 7px !important;
    max-width: none !important;
    max-height: none !important;
}

/* PNG Export Specific Fixes */
@media screen {
    /* Force profile photo containers to maintain exact dimensions during export */
    .wedding-biodata div[style*="width: 150px"][style*="height: 200px"] {
        min-width: 150px !important;
        max-width: 150px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        box-sizing: border-box !important;
    }
    
    .wedding-biodata div[style*="width: 150px"][style*="height: 200px"] img[alt="Profile Photo"] {
        min-width: 100% !important;
        max-width: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Image Container Styling - Fixed to match template profile photos */
.dm-image-container {
    display: inline-block;
    margin: 10px;
    position: relative;
    width: 150px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid #d4af37;
}

.dm-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 6px;
}

.dm-image-controls {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    z-index: 10;
}

/* Premium Top Toolbar Design */
.dm-editor-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    color: white !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.dm-editor-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.05) 25%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.05) 75%, 
        transparent 100%) !important;
    animation: shimmer 3s ease-in-out infinite !important;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.dm-editor-header h2 {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    z-index: 2 !important;
    padding: 20px 30px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.dm-editor-header h2::before {
    content: '✨' !important;
    font-size: 24px !important;
    animation: sparkle 2s ease-in-out infinite !important;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.dm-editor-actions {
    display: flex !important;
    gap: 12px !important;
    padding: 0px 30px !important;
    position: relative !important;
    z-index: 2 !important;
}

.dm-editor-actions .dm-btn {
    padding: 12px 20px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.dm-editor-actions .dm-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.dm-editor-actions .dm-btn:hover::before {
    left: 100% !important;
}

.dm-editor-actions .dm-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

.dm-editor-actions .dm-btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
}

.dm-editor-actions .dm-btn:not(.dm-btn-primary) {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    backdrop-filter: blur(10px) !important;
}

.dm-editor-actions .dm-btn:not(.dm-btn-primary):hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

.dm-editor-actions .dm-btn:active {
    transform: translateY(0) scale(0.98) !important;
    transition: all 0.1s ease !important;
}

/* Page-based layout system */
.dm-page-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    padding: 30px;
    background: #f5f5f5;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure all content is visible by default */
.dm-editable-content {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    overflow: visible !important;
}

.dm-editable-content * {
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
}

.dm-page {
    background: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    page-break-after: always;
    break-after: page;
    margin: 0 auto;
    display: block;
}

.dm-page:last-child {
    page-break-after: auto;
    break-after: auto;
}

.dm-page-content {
    padding: 40px;
    min-height: inherit;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.dm-page-number {
    position: absolute;
    bottom: 15px;
    right: 25px;
    font-size: 11px;
    color: #888;
    font-weight: 500;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

.dm-page-indicator {
    position: absolute;
    top: 15px;
    right: 25px;
    background: #0078d4;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Print styles for page breaks */
@media print {
    .dm-page {
        page-break-after: always;
        break-after: page;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .dm-page:last-child {
        page-break-after: auto;
        break-after: auto;
    }
    
    .dm-page-indicator {
        display: none;
    }
}

/* Premium Advanced Toolbar Design */
.dm-advanced-toolbar {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    display: flex !important;
    gap: 20px !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
    overflow-x: auto !important;
    height: 72px !important;
    position: relative !important;
    backdrop-filter: blur(10px) !important;
}

.dm-advanced-toolbar::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(102, 126, 234, 0.5) 25%, 
        rgba(118, 75, 162, 0.5) 50%, 
        rgba(102, 126, 234, 0.5) 75%, 
        transparent 100%) !important;
}

.dm-toolbar-group {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
    padding: 8px 12px !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    white-space: nowrap !important;
    min-width: fit-content !important;
    height: 48px !important;
    position: relative !important;
    backdrop-filter: blur(5px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
}

.dm-toolbar-group:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    transform: translateY(-1px) !important;
}

.dm-toolbar-group:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
}

.dm-toolbar-group h4 {
    margin: 0 8px 0 0;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 40px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    position: relative;
}

.dm-toolbar-group h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.dm-toolbar-group:hover h4::after {
    width: 100%;
}

/* Premium Toolbar Buttons */
.dm-toolbar button {
    padding: 8px 10px !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    color: rgba(255,255,255,0.9) !important;
    backdrop-filter: blur(5px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    overflow: hidden !important;
}

.dm-toolbar button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.dm-toolbar button:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

.dm-toolbar button:hover::before {
    left: 100% !important;
}

.dm-toolbar button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    transform: translateY(-1px) !important;
}

.dm-toolbar button:active {
    transform: translateY(0) scale(0.95) !important;
    transition: all 0.1s ease !important;
}

/* Formatting Button Styles - Show Actual Formatting */
.dm-advanced-toolbar .dm-toolbar-group button#dm-bold {
    font-weight: bold !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

.dm-advanced-toolbar .dm-toolbar-group button#dm-italic {
    font-style: italic !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

.dm-advanced-toolbar .dm-toolbar-group button#dm-underline {
    text-decoration: underline !important;
    font-size: 14px !important;
    font-weight: normal !important;
    font-style: normal !important;
}

.dm-advanced-toolbar .dm-toolbar-group button#dm-strikethrough {
    text-decoration: line-through !important;
    font-size: 14px !important;
    font-weight: normal !important;
    font-style: normal !important;
}

/* Premium Toolbar Inputs */
.dm-toolbar select, .dm-toolbar input[type="text"], .dm-toolbar input[type="number"] {
    padding: 6px 10px !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%) !important;
    color: rgba(255,255,255,0.9) !important;
    min-width: 60px !important;
    height: 32px !important;
    backdrop-filter: blur(5px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.dm-toolbar select:focus, .dm-toolbar input:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3) !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%) !important;
    transform: translateY(-1px) !important;
}

.dm-toolbar select {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") no-repeat right 8px center !important;
    background-size: 14px !important;
    padding-right: 28px !important;
    appearance: none !important;
}

.dm-toolbar input[type="color"] {
    width: 32px !important;
    height: 32px !important;
    padding: 2px !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

.dm-toolbar input[type="color"]:hover {
    border-color: #667eea !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}



/* Photoshop-Style Size Controls */
.dm-size-controls {
    display: flex !important;
    gap: 2px !important;
    align-items: center !important;
}

.dm-size-btn {
    padding: 4px 6px !important;
    border: 1px solid #4a4a4a !important;
    background: #3a3a3a !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
    min-width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #e0e0e0 !important;
}

.dm-size-btn:hover {
    background: #4a4a4a !important;
    border-color: #5a5a5a !important;
    color: #ffffff !important;
}

.dm-size-btn.active {
    background: #0078d4 !important;
    border-color: #0078d4 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

/* Photoshop-Style File Upload */
.dm-file-upload {
    position: relative !important;
    display: inline-block !important;
}

.dm-file-upload input[type="file"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
}

.dm-file-upload label {
    padding: 6px 8px !important;
    border: 1px solid #4a4a4a !important;
    background: #3a3a3a !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
    min-width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #e0e0e0 !important;
}

.dm-file-upload label:hover {
    background: #4a4a4a !important;
    border-color: #5a5a5a !important;
    color: #ffffff !important;
}

/* Enhanced Editing Panel - Advanced Shape Controls */
.dm-editing-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2c2c2c;
    border: 1px solid #4a4a4a;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    z-index: 10000;
    min-width: 350px;
    max-width: 450px;
    display: none;
    animation: slideIn 0.3s ease;
    max-height: 85vh;
    overflow-y: auto;
}

.dm-editing-panel.active {
    display: block;
}

.dm-editing-panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 20px;
    border-bottom: 1px solid #4a4a4a;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dm-editing-panel-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dm-editing-panel-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.dm-editing-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.dm-editing-panel-content {
    padding: 20px;
}

.dm-editing-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #3a3a3a;
}

.dm-editing-option:last-child {
    border-bottom: none;
}

.dm-editing-option label {
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.dm-editing-option input {
    padding: 8px 12px;
    border: 2px solid #4a4a4a;
    border-radius: 6px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 13px;
    transition: all 0.2s ease;
}

.dm-editing-option input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.dm-editing-option input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
}

.dm-editing-option input[type="range"] {
    height: 6px;
    background: #3a3a3a;
    border-radius: 3px;
    outline: none;
    border: none;
}

.dm-editing-option input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dm-editing-option input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dm-editing-option #dm-opacity-value {
    display: inline-block;
    margin-left: 10px;
    font-weight: 600;
    color: #667eea;
    min-width: 40px;
    font-size: 12px;
}

.dm-editing-option select {
    padding: 8px 12px;
    border: 2px solid #4a4a4a;
    border-radius: 6px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dm-editing-option select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.dm-editing-panel-actions {
    padding: 16px 20px;
    border-top: 1px solid #4a4a4a;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.dm-editing-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dm-editing-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.dm-editing-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dm-editing-btn.danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.dm-editing-btn.danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.dm-editing-btn:not(.primary):not(.danger) {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}



/* Overlay for editing panel */
.dm-editing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    animation: fadeIn 0.3s ease;
}

.dm-editing-overlay.active {
    display: block;
}

/* Toolbar Scroll for Mobile */
@media (max-width: 1200px) {
    .dm-advanced-toolbar {
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: #0078d4 #2c2c2c;
    }
    
    .dm-advanced-toolbar::-webkit-scrollbar {
        height: 4px;
    }
    
    .dm-advanced-toolbar::-webkit-scrollbar-track {
        background: #2c2c2c;
        border-radius: 2px;
    }
    
    .dm-advanced-toolbar::-webkit-scrollbar-thumb {
        background: #0078d4;
        border-radius: 2px;
    }
    
    .dm-advanced-toolbar::-webkit-scrollbar-thumb:hover {
        background: #005a9e;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dm-advanced-toolbar {
        padding: 6px 12px !important;
        gap: 12px !important;
    }
    
    .dm-toolbar-group {
        padding: 3px 6px !important;
        gap: 4px !important;
    }
    
    .dm-toolbar button {
        min-width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
    }
    
    .dm-toolbar select, .dm-toolbar input[type="text"], .dm-toolbar input[type="number"] {
        min-width: 40px !important;
        height: 24px !important;
        font-size: 10px !important;
    }
    
    .dm-toolbar input[type="color"] {
        width: 24px !important;
        height: 24px !important;
    }
    
    .dm-color-option {
        width: 16px !important;
        height: 16px !important;
    }
    
    .dm-size-btn {
        min-width: 18px !important;
        height: 18px !important;
        font-size: 8px !important;
    }
    
    .dm-file-upload label {
        min-width: 24px !important;
        height: 24px !important;
        font-size: 10px !important;
    }
    
    .dm-editing-panel {
        min-width: 280px;
        max-width: 90vw;
        margin: 20px;
    }
}

/* Shapes */
.dm-shape {
    display: inline-block;
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dm-shape:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.dm-shape.rectangle {
    background: #667eea;
    border-radius: 8px;
}

.dm-shape.circle {
    background: #667eea;
    border-radius: 50%;
}

.dm-shape.triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid #667eea;
    background: transparent;
}

.dm-shape.curve {
    background: #667eea;
    border-radius: 50px 50px 0 0;
}

.dm-shape.hexagon {
    background: #667eea;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.dm-shape.star {
    background: #667eea;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Image Container */
.dm-image-container {
    position: relative;
    display: inline-block;
    margin: 10px;
    transition: all 0.3s ease;
}

.dm-image-container:hover {
    transform: scale(1.02);
}

.dm-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.dm-image-container:hover img {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.dm-image-controls {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 14px;
    color: white;
    transition: all 0.2s ease;
    opacity: 0;
    transform: scale(0.8);
}

.dm-image-container:hover .dm-image-controls {
    opacity: 1;
    transform: scale(1);
}

.dm-image-controls:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* Effects Panel */
.dm-effects-panel {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}

.dm-effects-panel.active {
    display: block;
}

.dm-effect-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.dm-effect-option:last-child {
    border-bottom: none;
}

.dm-effect-option label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    min-width: 80px;
}

.dm-effect-option input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

/* Enhanced Editor Content */
.dm-editor-content {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding: 20px !important;
    margin-top: 100px !important;
    box-sizing: border-box !important;
    background: #f5f5f5 !important;
    min-height: calc(100vh - 200px) !important;
}

.dm-editable-content {
    position: relative;
    min-height: 600px;
    padding: 0;
    background: white;
    border-radius: 0;
    box-shadow: none;
    margin: 0 auto !important;
    max-width: none;
    outline: none;
    border: none;
    transition: all 0.3s ease;
    display: block !important;
}

.dm-editable-content:focus {
    border: none;
    box-shadow: none;
}

.dm-editable-content::before {
    display: none;
}

/* Animation Keyframes */
@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Utility Classes */
.dm-fade-in {
    animation: fadeIn 0.3s ease;
}

.dm-pulse {
    animation: pulse 2s infinite;
}

.dm-hidden {
    display: none !important;
}

.dm-visible {
    display: block !important;
}

/* Canvas Size Classes - Ensure all sizes are centered */
.dm-canvas-size-a4 {
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 auto !important;
    display: block !important;
}

.dm-canvas-size-a3 {
    width: 297mm !important;
    height: 420mm !important;
    margin: 0 auto !important;
    display: block !important;
}

.dm-canvas-size-letter {
    width: 8.5in !important;
    height: 11in !important;
    margin: 0 auto !important;
    display: block !important;
}

.dm-canvas-size-legal {
    width: 8.5in !important;
    height: 14in !important;
    margin: 0 auto !important;
    display: block !important;
}

.dm-canvas-size-tabloid {
    width: 11in !important;
    height: 17in !important;
    margin: 0 auto !important;
    display: block !important;
}

.dm-canvas-size-custom {
    margin: 0 auto !important;
    display: block !important;
}

/* Print Styles */
@media print {
    .dm-advanced-toolbar,
    .dm-image-controls,
    .dm-effects-panel,
    .dm-editing-panel,
    .dm-editing-overlay {
        display: none !important;
    }
    
    .dm-editable-content {
        box-shadow: none;
        border: none;
        margin: 0 auto !important;
        padding: 20px;
    }
    
    .dm-shape {
        box-shadow: none;
    }
}

/* Canvas Indicator */
.dm-canvas-indicator {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.dm-canvas-indicator:hover {
    border-color: #667eea;
    background: #f0f4ff;
    color: #667eea;
}

/* Element highlight animation */
@keyframes elementAdded {
    0% { 
        transform: scale(0.8); 
        opacity: 0.5; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 1; 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.dm-element-added {
    animation: elementAdded 0.5s ease;
}

/* Beautiful Image Dialog Styles */
.dm-image-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.dm-image-dialog-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dm-image-dialog-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    border-radius: 20px 20px 0 0;
}

.dm-image-dialog-content h3 {
    margin: 0 0 20px 0;
    color: #000000;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.dm-image-dialog-content p {
    margin: 0 0 30px 0;
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

.dm-image-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.dm-image-options .dm-btn {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: left;
}

.dm-btn-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.dm-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.dm-btn-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
}

.dm-btn-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    line-height: 1.2;
}

.dm-image-options .dm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.dm-image-options .dm-btn:hover::before {
    left: 100%;
}

.dm-btn-primary {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #000000;
    border: none;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.dm-btn-primary:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.4);
}

.dm-btn-primary .dm-btn-title,
.dm-btn-primary .dm-btn-subtitle {
    color: #000000;
}

.dm-btn-secondary {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: #000000;
    border: none;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.dm-btn-secondary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

.dm-btn-secondary .dm-btn-title,
.dm-btn-secondary .dm-btn-subtitle {
    color: #000000;
}

.dm-btn-danger {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: #000000;
    border: none;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(248, 113, 113, 0.3);
}

.dm-btn-danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 113, 113, 0.4);
}

.dm-btn-danger .dm-btn-title,
.dm-btn-danger .dm-btn-subtitle {
    color: #000000;
}

.dm-btn-cancel {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #000000;
    border: 2px solid #cbd5e0;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    width: auto;
    justify-content: center;
}

.dm-btn-cancel:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dm-btn-cancel .dm-btn-title {
    color: #000000;
}

/* Beautiful Image Hover Effects */
#dm-editable-content img {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

#dm-editable-content img::before {
    content: '🖼️ Click to edit';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    white-space: nowrap;
}

#dm-editable-content img:hover {
    border: 3px solid #667eea;
    transform: scale(1.03);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.1);
}

/* Ensure company logo maintains natural shape */
.company-logo img {
    border-radius: 0 !important;
    border: none !important;
}

.company-logo img:hover {
    border-radius: 0 !important;
    border: 3px solid #667eea !important;
}

/* Override any circular styling for invoice logos */
.professional-invoice .company-logo img {
    border-radius: 0 !important;
    border: none !important;
    overflow: visible !important;
}

.professional-invoice .company-logo img:hover {
    border-radius: 0 !important;
    border: 3px solid #667eea !important;
    overflow: visible !important;
}

/* Force all images in company-logo containers to have no border-radius */
div[class*="company-logo"] img,
.company-logo img,
[data-dm-id="company-logo"] img {
    border-radius: 0 !important;
    border: none !important;
    overflow: visible !important;
}

div[class*="company-logo"] img:hover,
.company-logo img:hover,
[data-dm-id="company-logo"] img:hover {
    border-radius: 0 !important;
    border: 3px solid #667eea !important;
    overflow: visible !important;
}

#dm-editable-content img:hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Image upload progress indicator */
.dm-image-upload-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    z-index: 10002;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

.dm-upload-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none; /* Hide by default */
}

.dm-upload-spinner.active {
    display: block; /* Only show when active */
}

/* Ensure spinner is completely hidden when not active */
.dm-upload-spinner:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Additional safety: hide any spinner that might be visible in templates */
.dm-editable-content .dm-upload-spinner {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Only show spinner in upload progress container */
.dm-image-upload-progress .dm-upload-spinner.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Remove unwanted focus outlines and blue borders */
.dm-editable-content *:focus {
    outline: none !important;
    border-color: transparent !important;
}

.dm-editable-content *:focus-visible {
    outline: none !important;
    border-color: transparent !important;
}

/* Beautiful Notification Styles */
.dm-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    max-width: 350px;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dm-notification-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 18px 24px;
    border-radius: 16px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.dm-notification-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea, #764ba2);
}

.dm-notification-success .dm-notification-content::before {
    background: linear-gradient(180deg, #48bb78, #38a169);
}

.dm-notification-error .dm-notification-content::before {
    background: linear-gradient(180deg, #e53e3e, #c53030);
}

.dm-notification-info .dm-notification-content::before {
    background: linear-gradient(180deg, #3182ce, #2c5aa0);
}

.dm-notification-content span {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.dm-notification-content button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #a0aec0;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.dm-notification-content button:hover {
    color: #4a5568;
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

/* Beautiful Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Enhanced button animations */
.dm-image-options .dm-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* Loading state for buttons */
.dm-btn-loading {
    position: relative;
    pointer-events: none;
}

.dm-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* EDIT IMAGE Modal Styles */
.dm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.dm-modal-content {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dm-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dm-modal-header h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dm-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.dm-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.dm-modal-body {
    padding: 20px;
}

.dm-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.dm-form-group label {
    color: #e0e0e0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dm-form-group input,
.dm-form-group select {
    padding: 8px 12px;
    border: 2px solid #4a4a4a;
    border-radius: 6px;
    background: #1a1a1a;
    color: #e0e0e0;
    font-size: 13px;
    transition: all 0.2s ease;
}

.dm-form-group input:focus,
.dm-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.dm-form-group input[type="color"] {
    width: 100%;
    height: 40px;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
}

.dm-form-group input[type="range"] {
    height: 6px;
    background: #3a3a3a;
    border-radius: 3px;
    outline: none;
    border: none;
    padding: 0;
}

.dm-form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dm-form-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dm-modal-actions {
    padding: 16px 20px;
    border-top: 1px solid #4a4a4a;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.dm-modal-actions .dm-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dm-modal-actions .dm-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.dm-modal-actions .dm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dm-modal-actions .dm-btn:not(.dm-btn-primary) {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.dm-modal-actions .dm-btn:not(.dm-btn-primary):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

