@keyframes spin {from {transform:rotate(0deg)} to {transform:rotate(360deg)}}
@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}
#step-image-upload.active {display:flex;flex-direction:column;align-items:center}
/* Upload Button */
.upload-button {border:0;background-color:#4FAFFC;color:#fff;text-transform:uppercase;font-weight:700;border-radius:2em;padding:.7em 1.2em .7em 3.6em;font-size:1em;position:relative;cursor:pointer;transition:all 0.3s ease}
.upload-button:hover {background-color:#3a9ae8;transform:translateY(-2px)}
.upload-button:before {display:flex;align-items:center;justify-content:center;content:"^";font-size:1.6em;font-weight:700;background-color:#fff;color:#4FAFFC;border:1px solid currentColor;position:absolute;border-radius:50%;width:1.7em;height:1.7em;left:3px;top:0;bottom:0;margin-top:auto;margin-bottom:auto;box-shadow:0 0 0 3px #fff}
#hero.content-grid-mod .upload-button::before {display:none}
#hero.content-grid-mod .upload-button {padding:10px 32px;font-family:"Inter",sans-serif}
/* Status */
.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 */
.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}
/* Preview Section */
.cd-preview-section {flex:0 0 50%;min-width:0;position:sticky;top:20px;align-self:flex-start}
.cd-preview-header {display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;flex-wrap:wrap;gap:8px}
.cd-preview-header h3 {color:#fff;font-size:18px;font-weight:600;margin:0}
.cd-pdf-info-bar {display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.cd-pdf-info-bar span {font-size:12px;color:rgba(255,255,255,0.65)}
/* GIF Preview Frame */
.cd-gif-preview-frame {position:relative;background:#0f2840;border-radius:12px;padding:16px;display:flex;align-items:center;justify-content:center;min-height:200px}
#cd-gif-preview-img {display:block;max-width:100%;max-height:480px;width:auto;height:auto;border-radius:6px;pointer-events:none;transition:opacity 0.2s ease}
/* Preview Loading Spinner */
.cd-preview-loading {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(15,40,64,0.8);border-radius:12px;z-index:2}
.cd-preview-loading img {width:44px;height:44px;animation:spin 1s infinite linear}
/* Controls Column */
.cd-controls-column {flex:1;min-width:0;display:flex;flex-direction:column;gap:12px;width: 100%}
/* Section Header */
.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}
/* Speed Section */
.cd-speed-section {background:#1a3a5c;border-radius:10px;padding:10px 12px}
.cd-speed-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.cd-speed-btn {padding:9px 6px;background:rgba(255,255,255,0.06);border:2px solid rgba(255,255,255,0.12);border-radius:8px;color:rgba(255,255,255,0.75);cursor:pointer;transition:all 0.2s ease;text-align:center}
.cd-speed-btn:hover {background:rgba(79,175,252,0.1);border-color:rgba(79,175,252,0.4);color:#fff}
.cd-speed-btn.active {background:rgba(79,175,252,0.15);border-color:#4FAFFC;color:#fff}
.cd-speed-label {display:block;font-size:14px;font-weight:700;margin-bottom:2px}
.cd-speed-desc {display:block;font-size:10px;opacity:0.7}
/* Custom Delay Section */
.cd-custom-delay-section {background:#1a3a5c;border-radius:10px;padding:10px 12px}
.cd-delay-display {font-size:13px;font-weight:600;color:#4FAFFC}
.cd-delay-slider {width:100%;margin:8px 0 6px;appearance:none;height:4px;border-radius:2px;background:rgba(255,255,255,0.15);outline:none;cursor:pointer}
.cd-delay-slider::-webkit-slider-thumb {appearance:none;width:16px;height:16px;border-radius:50%;background:#4FAFFC;cursor:pointer;box-shadow:0 0 0 3px rgba(79,175,252,0.25)}
.cd-delay-slider::-moz-range-thumb {width:16px;height:16px;border-radius:50%;background:#4FAFFC;cursor:pointer;border:none;box-shadow:0 0 0 3px rgba(79,175,252,0.25)}
.cd-delay-hint {font-size:11px;color:rgba(255,255,255,0.45)}
/* GIF Details Section */
.cd-gif-details-section {background:#1a3a5c;border-radius:10px;padding:10px 12px}
.cd-gif-details {display:flex;flex-direction:column;gap:4px}
.cd-gif-details span {font-size:12px;color:rgba(255,255,255,0.7)}
/* Buttons Row */
.cd-buttons-row {display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.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}
.cd-start-over-section {display:flex}
.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}
/* 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}
.preview-active#hero.content-grid-mod .converter-wrapper.gif-speed-wrapper {padding:30px;max-width:100%;width:100%}
#hero.content-grid-mod .converter-wrapper .drop-area {background-color:#355A90;border-radius:16px;padding:50px 60px;height:auto;margin:0 auto 40px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid transparent;transition:all 0.3s ease}
#hero.content-grid-mod .converter-wrapper .drop-area.highlight {box-shadow:0 10px 20px rgba(0,0,0,0.2);border:2px solid #4FAFFC}
#hero.content-grid-mod .converter-wrapper .drop-area h2 {font-weight:300;font-size:42px;color:#fff;margin-bottom:30px;line-height:1.2;text-align:center}
#hero.content-grid-mod .converter-wrapper .drop-area p {font-size:16px;color:#fff;line-height:1.5;font-family:"Inter",sans-serif;margin:16px auto}
#hero.content-grid-mod .converter-wrapper .drop-area::before {content:"";display:flex;height:80px;width:80px;background-image:url("../../../../assets/img/upload.svg");background-size:contain;background-repeat:no-repeat;background-position:center;margin-bottom:20px}
/* Stock Assets */
#hero.content-grid-mod .converter-wrapper .cd-stock-assets {display:flex;align-items:center;justify-content:center;gap:20px;width:100%}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .info h4 {font-size:20px;font-weight:500;color:#fff;line-height:1.3;margin-bottom:0}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-items {display:flex;gap:15px}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-item img {max-width:140px;max-height:100px;border-radius:8px;border:3px solid #fff;cursor:pointer;transition:transform 0.2s ease;object-fit:cover}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-item img:hover {transform:scale(1.05)}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-mini-upload-area {width:80px;height:80px;background-image:url("../../../../assets/img/upload_area.svg");background-size:cover;background-repeat:no-repeat;display:none;border-radius:8px;background-color:#23436a;cursor:pointer}
.preview-active#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-mini-upload-area {display:unset}
.preview-active#hero.content-grid-mod .converter-wrapper .cd-stock-assets {justify-content:flex-start}
/* 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}
.preview-active#hero.content-grid-mod .converter-wrapper.gif-speed-wrapper {padding:20px}
.cd-filter-editor-container {padding:15px}
}
@media (max-width:767px) {
#hero.content-grid-mod .converter-wrapper {padding:15px;margin-top:40px;border-radius:12px}
.preview-active#hero.content-grid-mod .converter-wrapper.gif-speed-wrapper {padding:12px}
#hero.content-grid-mod .converter-wrapper .drop-area {padding:25px 20px}
#hero.content-grid-mod .converter-wrapper .drop-area h2 {font-size:24px;margin-bottom:20px}
#hero.content-grid-mod .converter-wrapper .drop-area::before {height:60px;width:60px}
.cd-filter-editor-container {padding:12px;gap:14px}
.cd-preview-header {flex-direction:column;align-items:flex-start}
#cd-gif-preview-img {max-height:320px}
.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-action-buttons .cd-download-btn {width:100%;justify-content:center}
.cd-start-over-section {justify-content:center}
.cd_header_top_bar {padding:10px 16px;font-size:13px;text-align:center}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets {flex-direction:column;align-items:flex-start}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-items {flex-wrap:wrap}
#hero.content-grid-mod .converter-wrapper .cd-stock-assets .cd-stock-assets-item img {max-width:100px;max-height:75px}
}
@media (max-width:575px) {
.cd-speed-grid {grid-template-columns:repeat(3,1fr)}
.cd-speed-btn {padding:7px 4px}
.cd-speed-label {font-size:13px}
.cd-speed-desc {display:none}
#cd-gif-preview-img {max-height:260px}
}
