@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Allura&family=Alex+Brush&family=Sacramento&family=Dancing+Script:wght@700&family=Mr+De+Haviland&family=Caveat:wght@700&family=Satisfy&family=Pacifico&family=Kaushan+Script&family=Permanent+Marker&family=Shadows+Into+Light&display=swap');
@keyframes fadeIn {from {opacity:0;transform:translateY(10px)} to {opacity:1;transform:translateY(0)}}
.hidden {display:none !important}
/* Step Sections */
.cd-step-section {display:none}
.cd-step-section.active {display:block}
/* Signature Input Section */
.cd-signature-input-section {margin-bottom:18px}
.cd-signature-input-wrapper {max-width:100%}
.cd-signature-input-wrapper label {display:block;color:#fff;font-size:16px;font-weight:600;margin-bottom:8px;text-align:start}
.cd-signature-text-input {width:100%;padding:14px 18px;background:rgba(255,255,255,0.1);border:2px solid rgba(255,255,255,0.2);border-radius:10px;color:#fff;font-size:22px;font-weight:400;outline:none;transition:all 0.3s ease;box-sizing:border-box}
.cd-signature-text-input::placeholder {color:rgba(255,255,255,0.35)}
.cd-signature-text-input:focus {border-color:#4FAFFC;background:rgba(79,175,252,0.08)}
/* Status Indicators */
.cd-image-status {background:#e8f5e8;border:1px solid #4caf50;border-radius:8px;padding:12px 16px;margin:10px 0;display:none}
.cd-image-status.success {background:#e8f5e8;border-color:#4caf50;color:#2e7d32}
.cd-image-status.warning {background:#fff3e0;border-color:#ff9800;color:#e65100}
.cd-image-status.error {background:#ffebee;border-color:#f44336;color:#c62828}
.cd-image-status.info {background:#e3f2fd;border-color:#2196f3;color:#1565c0}
.cd-image-status .status-text {font-weight:600;margin-bottom:4px}
.cd-image-status .status-details {font-size:13px;opacity:0.85}
#hero.content-grid-mod .cd-image-status {background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.3);color:#fff}
#hero.content-grid-mod .cd-image-status.success {background:rgba(76,175,80,0.2);border-color:rgba(76,175,80,0.5)}
#hero.content-grid-mod .cd-image-status.warning {background:rgba(255,152,0,0.2);border-color:rgba(255,152,0,0.5)}
#hero.content-grid-mod .cd-image-status.error {background:rgba(244,67,54,0.2);border-color:rgba(244,67,54,0.5)}
#hero.content-grid-mod .cd-image-status.info {background:rgba(33,150,243,0.2);border-color:rgba(33,150,243,0.5)}
/* Editor Container - Two Column Flex Layout */
.cd-filter-editor-container {animation:fadeIn 0.3s ease;background:rgba(35,67,106,0.5);border-radius:16px;padding:18px;display:flex;gap:18px;align-items:flex-start}
/* Controls Column */
.cd-controls-column {flex:1;min-width:0;display:flex;flex-direction:column;gap:12px;max-width:100%;width:100%}
/* Controls Grid - Two Sub-Columns */
.cd-controls-grid {display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cd-controls-sub-column {display:flex;flex-direction:column;gap:12px}
/* Preview Section - Sticky Left */
.cd-preview-section {flex:0 0 55%;min-width:0;position:sticky;top:20px}
.cd-preview-header {display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}
.cd-preview-header h3 {color:#fff;font-size:18px;font-weight:600;margin:0}
/* Signature Canvas */
.cd-signature-canvas-wrapper {background:#0f2840;border-radius:12px;padding:15px;display:flex;justify-content:center;align-items:center}
.cd-signature-canvas-container {position:relative;background:#fff;border-radius:8px;overflow:hidden;display:inline-block}
.cd-signature-canvas-container.transparent-bg {background-image:repeating-conic-gradient(#d4d4d4 0% 25%,#fff 0% 50%);background-size:16px 16px}
#signature-canvas {display:block;border-radius:4px;max-width:100%;height:auto}
/* Signature Info */
.cd-signature-info {display:flex;gap:15px;margin-top:12px;color:rgba(255,255,255,0.8);font-size:13px}
/* Section Headers */
.cd-section-header {display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.cd-section-header h4 {color:#fff;font-size:14px;font-weight:600;margin:0}
/* Filter Sections */
.cd-filter-section {background:#1a3a5c;border-radius:10px;padding:10px 12px}
/* Font Grid */
.cd-font-grid {display:grid;grid-template-columns:1fr;gap:6px;max-height:320px;overflow-y:auto;padding-right:4px}
.cd-font-grid::-webkit-scrollbar {width:4px}
.cd-font-grid::-webkit-scrollbar-track {background:rgba(255,255,255,0.05);border-radius:2px}
.cd-font-grid::-webkit-scrollbar-thumb {background:rgba(255,255,255,0.2);border-radius:2px}
.cd-font-btn {padding:10px 8px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.15);border-radius:8px;color:rgba(255,255,255,0.7);font-size:18px;cursor:pointer;text-align:center;transition:all 0.2s ease;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.cd-font-btn:hover {background:rgba(79,175,252,0.15);border-color:rgba(79,175,252,0.4);color:#fff}
.cd-font-btn.active {background:rgba(79,175,252,0.25);border-color:#4FAFFC;color:#fff}
/* Color Picker */
.cd-color-picker-row {display:flex;align-items:center;gap:10px}
.cd-color-input {width:36px;height:36px;padding:0;border:2px solid rgba(255,255,255,0.3);border-radius:6px;cursor:pointer;background:none;-webkit-appearance:none;appearance:none}
.cd-color-input::-webkit-color-swatch-wrapper {padding:0}
.cd-color-input::-webkit-color-swatch {border:none;border-radius:4px}
.cd-color-input::-moz-color-swatch {border:none;border-radius:4px}
.cd-color-presets {display:flex;gap:6px;flex-wrap:wrap}
.cd-color-preset {width:24px;height:24px;border-radius:50%;border:2px solid rgba(255,255,255,0.3);cursor:pointer;padding:0;transition:all 0.2s ease}
.cd-color-preset:hover {transform:scale(1.15);border-color:#fff}
.cd-color-preset[data-color="#000000"] {border-color:rgba(255,255,255,0.5)}
/* Custom Controls */
.cd-control-range {width:100%;height:5px;-webkit-appearance:none;appearance:none;background:rgba(255,255,255,0.2);border-radius:3px;outline:none;cursor:pointer;margin-top:4px}
.cd-control-range::-webkit-slider-thumb {-webkit-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:#4FAFFC;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,0.3);transition:transform 0.2s ease}
.cd-control-range::-webkit-slider-thumb:hover {transform:scale(1.1)}
.cd-control-range::-moz-range-thumb {width:14px;height:14px;border-radius:50%;background:#4FAFFC;cursor:pointer;border:none}
/* Toggle Switch */
.cd-settings-group label.cd-toggle-label {display:flex;align-items:center;gap:10px;cursor:pointer;user-select:none;margin-bottom:0}
.cd-toggle-checkbox {display:none}
.cd-toggle-switch {position:relative;display:inline-block;width:40px;height:22px;background:rgba(255,255,255,0.2);border-radius:11px;transition:background 0.3s ease;flex-shrink:0}
.cd-toggle-switch::after {content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;background:#fff;border-radius:50%;transition:transform 0.3s ease;box-shadow:0 1px 3px rgba(0,0,0,0.3)}
.cd-toggle-checkbox:checked + .cd-toggle-switch {background:#4FAFFC}
.cd-toggle-checkbox:checked + .cd-toggle-switch::after {transform:translateX(18px)}
.cd-toggle-text {color:rgba(255,255,255,0.9);font-size:13px;font-weight:500}
/* Settings */
.cd-settings-group {margin-bottom:12px}
.cd-settings-group:last-child {margin-bottom:0}
.cd-settings-group label {display:block;color:rgba(255,255,255,0.9);font-size:12px;font-weight:500;margin-bottom:4px;text-align:start}
.cd-settings-group label span {font-weight:700;color:#4FAFFC}
/* Output Section */
.cd-output-section {background:#1a3a5c;border-radius:10px;padding:10px 12px}
.cd-settings-row {display:flex;gap:10px}
.cd-settings-row .cd-settings-group {flex:1;min-width:0;margin-bottom:0}
.cd-control-select {width:100%;padding:6px 10px;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.2);border-radius:6px;color:#fff;font-size:14px;transition:all 0.2s ease;cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:30px}
.cd-control-select:focus {outline:none;border-color:#4FAFFC;background-color:rgba(79,175,252,0.1)}
.cd-control-select option {background:#1a3a5c;color:#fff}
/* Buttons Row */
.cd-buttons-row {display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
/* Action Buttons */
.cd-action-buttons {display:flex}
.cd-download-btn {display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 20px;background:linear-gradient(135deg,#48C4D8,#4FAFFC);border:none;border-radius:8px;color:#fff;font-size:13px;font-weight:600;cursor:pointer;transition:all 0.3s ease;box-shadow:0 2px 8px rgba(72,196,216,0.3)}
.cd-download-btn:hover {transform:translateY(-1px);box-shadow:0 4px 12px rgba(72,196,216,0.4)}
.cd-download-btn svg {fill:currentColor;width:14px;height:14px}
/* Start Over / Clear */
.cd-start-over-section {display:flex;gap:10px}
.cd-start-over-btn {padding:8px 16px;background:transparent;border:1px solid rgba(255,255,255,0.3);border-radius:8px;color:rgba(255,255,255,0.7);font-size:13px;cursor:pointer;transition:all 0.3s ease}
.cd-start-over-btn:hover {border-color:rgba(255,255,255,0.6);color:#fff}
/* Loader */
.cd-tool-file-preview-wrapper {display:none}
.cd-tool-file-preview-wrapper.active {display:flex;align-items:center;justify-content:center}
.cd-tool-preview-loader {display:flex;flex-direction:column;align-items:center;gap:15px;padding:30px}
.cd-tool-preview-loader[data-loader-view="full"] {position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(17,17,17,0.9);z-index:9999;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(5px)}
.cd-tool-preview-loader img {width:50px;height:50px;animation:spin 1s infinite linear}
.cd-tool-preview-loader span {color:#fff;font-size:16px;font-weight:500}
@keyframes spin {from {transform:rotate(0deg)} to {transform:rotate(360deg)}}
/* Hero Overrides */
#hero.content-grid-mod::before {background:radial-gradient(circle,rgba(0,101,173,1) 0%,rgba(3,31,51,1) 82%);background-size:300vw;background-repeat:no-repeat;background-position:right bottom;height:70%}
#hero.content-grid-mod::after {content:"";position:absolute;left:0;right:0;bottom:0;top:auto;margin:auto;height:30%;background-color:#0D1E32;background-image:url("../../../../assets/img/clouds.svg");background-size:700px;background-repeat:no-repeat;background-position:-360px -370px}
#hero.content-grid-mod {border-bottom:0;z-index:99}
#hero.content-grid-mod .converter-wrapper {background-color:#23436A;padding:50px;border-radius:24px;margin-top:76px;transition:height 0.3s ease-out}
#hero.content-grid-mod .converter-wrapper.create-signature-image-wrapper {padding:30px;max-width:100%;width:100%}
/* Top Bar */
#hero .cd_header_top_bar {display:none}
.cd_header_top_bar {width:100%;background:#3f5fff;color:#fff;display:flex;align-items:center;justify-content:center;padding:10px 30px;height:auto;z-index:99;position:relative;font-size:14px}
.cd_header_top_bar .cd_header_top_bar_content a {color:#fff;text-transform:uppercase;text-decoration:underline;margin-left:8px}
/* Responsive */
@media (max-width:1199px) {
.cd-filter-editor-container {flex-direction:column}
.cd-preview-section {position:static;flex:none;width:100%}
}
@media (max-width:991px) {
#hero.content-grid-mod .converter-wrapper {padding:25px}
#hero.content-grid-mod .converter-wrapper.create-signature-image-wrapper {padding:20px}
.cd-filter-editor-container {padding:15px}
.cd-controls-grid {grid-template-columns:1fr}
.cd-settings-row {flex-direction:column;gap:12px}
.cd-font-grid {grid-template-columns:1fr 1fr;max-height:200px}
}
@media (max-width:767px) {
#hero.content-grid-mod .converter-wrapper {padding:15px;margin-top:40px;border-radius:12px}
#hero.content-grid-mod .converter-wrapper.create-signature-image-wrapper {padding:12px}
.cd-filter-editor-container {padding:15px}
.cd-buttons-row {flex-direction:column;align-items:stretch}
.cd-buttons-row .cd-action-buttons,.cd-buttons-row .cd-start-over-section {justify-content:center}
.cd-preview-header h3,.cd-section-header h4 {font-size:16px}
.cd-download-btn {padding:10px 20px;font-size:13px}
.cd-start-over-section {justify-content:center}
.cd_header_top_bar {padding:10px 16px;font-size:13px;text-align:center}
.cd-signature-text-input {font-size:18px;padding:12px 14px}
.cd-font-grid {grid-template-columns:1fr 1fr;max-height:200px}
.cd-color-presets {gap:4px}
}
@media (max-width:575px) {
.cd_header_top_bar {padding:10px 16px}
.cd_header_top_bar .cd_header_top_bar_content {font-size:14px;line-height:1.5}
.cd-signature-text-input {font-size:16px}
}
/* Print */
@media print {
.cd-filter-editor-container,.cd-action-buttons,.cd-start-over-section,.cd_header_top_bar {display:none !important}
}
