/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

/* Global Scrollbar Styles - Desktop with mouse only (not touch devices) */
@media (hover: hover) and (pointer: fine) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    ::-webkit-scrollbar-track {
        background: #1a1a1a;
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #00ffa3 0%, #00d4aa 100%);
        border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #00ffb8 0%, #00e4ba 100%);
    }

    /* Firefox Scrollbar */
    * {
        scrollbar-width: thin;
        scrollbar-color: #00ffa3 #1a1a1a;
    }
}

/* Common Header */
.header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo a {
    color: #00ffa3;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.logo a:hover {
    color: #00d4aa;
}

.logo span {
    color: #888;
    font-size: 0.875rem;
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #ccc;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #00ffa3;
    background: rgba(0, 255, 163, 0.1);
}

.nav-link.active {
    color: #00ffa3;
    background: rgba(0, 255, 163, 0.2);
}

/* Common Footer */
.footer {
    background: #111;
    border-top: 1px solid #333;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .brand-text {
    font-weight: 600;
    color: #00ffa3;
}

.footer-brand .brand-subtitle {
    color: #666;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #00ffa3;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    opacity: 0.8;
}

.footer-links a:hover {
    color: #00ffa3;
    opacity: 1;
}

.footer-copyright {
    color: #00ffa3;
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-copyright p {
    margin: 0;
}

/* Tool Sidebar (Desktop Only) */
.tool-sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: 60px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0.5rem;
    z-index: 90;
    overflow: visible;
}

.sidebar-header {
    padding: 0.5rem 1rem 1rem;
    text-align: center;
    border-bottom: 1px solid #333;
    margin-bottom: 0.5rem;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #00ffa3;
    line-height: 1.2;
}

.sidebar-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: #00ffa3;
    line-height: 1.2;
}

.tool-sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    width: 60px;
}

.tool-sidebar-item:hover {
    background: rgba(0, 255, 163, 0.1);
    color: #00ffa3;
    width: 200px;
    padding-right: 1.5rem;
}

.tool-sidebar-item.active {
    background: rgba(0, 255, 163, 0.15);
    color: #00ffa3;
    border-right: 3px solid #00ffa3;
}

.tool-sidebar-item.coming-soon {
    opacity: 0.4;
    cursor: not-allowed;
}

.tool-sidebar-item.coming-soon:hover {
    background: transparent;
    color: #888;
}

.tool-icon-wrapper {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.tool-name {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tool-sidebar-item:hover .tool-name {
    opacity: 1;
}

.tool-badge {
    margin-left: auto;
    padding: 0.125rem 0.375rem;
    background: #333;
    border-radius: 4px;
    font-size: 0.625rem;
    color: #888;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tool-sidebar-item:hover .tool-badge {
    opacity: 1;
}

/* Adjust main layout for sidebar on tools pages */
.has-sidebar .dashboard {
    margin-left: 60px;
}

/* Hide sidebar on mobile */
@media (max-width: 768px) {
    .tool-sidebar {
        display: none;
    }
    
    .has-sidebar .dashboard {
        margin-left: 0;
    }
}

/* Buttons - Professional Design with Smooth Animations */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: scale(1.1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #00ffa3 0%, #00d4aa 50%, #00b894 100%);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 255, 163, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 50%, #00997a 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 255, 163, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px) scale(1.01);
}

.btn-secondary {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #fff;
    border-color: #4a5568;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-color: #718096;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: #00ffa3;
    border-color: #00ffa3;
    box-shadow: 0 0 20px rgba(0, 255, 163, 0.1);
}

.btn-outline:hover:not(:disabled) {
    background: rgba(0, 255, 163, 0.15);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 255, 163, 0.3);
    border-color: #00ffa3;
}

.btn-danger {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 50%, #e53e3e 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 50%, #c53030 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    border-radius: 12px;
}

/* Forms */
input, select, textarea {
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #00ffa3;
    box-shadow: 0 0 0 2px rgba(0, 255, 163, 0.2);
}

/* Cards - Modern Professional Design */
.card {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffa3, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.card:hover::before {
    transform: translateX(100%);
}

.card:hover {
    border-color: rgba(0, 255, 163, 0.3);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 255, 163, 0.15), 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #2d3748;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.card-subtitle {
    color: #94a3b8;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #444;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    padding: 0;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.loading-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #444;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #00ffa3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: #00ffa3; }
.text-secondary { color: #888; }
.text-danger { color: #ff4444; }
.text-success { color: #00ffa3; }
.text-warning { color: #ffaa00; }

.bg-dark { background: #1a1a1a; }
.bg-darker { background: #0a0a0a; }

.border-primary { border-color: #00ffa3; }
.border-secondary { border-color: #333; }

.rounded { border-radius: 6px; }
.rounded-lg { border-radius: 12px; }

.shadow { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.shadow-lg { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); }

.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.m-4 { margin: 1.5rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0.6rem 0.75rem;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.75rem;
    }
    
    .logo {
        flex: 0 1 auto;
        gap: 0.5rem;
    }
    
    .logo .logo-img {
        height: 24px !important;
    }
    
    .logo .logo-text {
        font-size: 1.1rem !important;
    }
    
    .logo .tool-divider,
    .logo .tool-name {
        display: none;
    }
    
    .nav {
        flex: 1 1 auto;
        justify-content: flex-end;
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .nav-link svg {
        width: 14px;
        height: 14px;
    }
    
    .nav .btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-links {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
    
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
}

/* ==================== IMAGE LOADER UTILITIES ==================== */

/* Drag and Drop Visual Feedback */
.drag-highlight {
    position: relative;
    outline: 3px dashed #00ffa3;
    outline-offset: -5px;
    background: rgba(0, 255, 163, 0.05);
}

.drop-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(0, 255, 163, 0.1);
    border: 2px dashed #00ffa3;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    pointer-events: none;
}

.drop-hint svg {
    width: 48px;
    height: 48px;
    color: #00ffa3;
    animation: bounce 1s infinite;
}

.drop-hint span {
    color: #00ffa3;
    font-size: 1.125rem;
    font-weight: 600;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* URL Loader Modal */
.url-loader-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.url-loader-modal.active {
    display: flex;
}

.url-loader-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.url-loader-header {
    padding: 1.5rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.url-loader-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.close-url-modal {
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.close-url-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.url-loader-body {
    padding: 1.5rem;
}

.url-loader-body input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.url-loader-body input:focus {
    outline: none;
    border-color: #00ffa3;
    box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.1);
}

.url-hint {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #888;
}

.url-loader-footer {
    padding: 1.5rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid #333;
    color: #ffffff;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #555;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #00ffa3 0%, #00d4aa 100%);
    border: none;
    color: #000000;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 255, 163, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Keyboard Shortcut Hint */
.keyboard-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
}

.keyboard-hint.show {
    opacity: 1;
    transform: translateY(0);
}

.keyboard-hint h4 {
    font-size: 0.875rem;
    color: #00ffa3;
    margin-bottom: 0.5rem;
}

.keyboard-hint ul {
    list-style: none;
    font-size: 0.75rem;
    color: #ccc;
}

.keyboard-hint li {
    margin-bottom: 0.25rem;
}

.keyboard-hint kbd {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #00ffa3;
    margin-right: 0.5rem;
}

/* ============================================
   RIGHT SIDEBAR - Tool Navigation
   ============================================ */

.right-sidebar {
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    gap: 0.5rem;
    overflow-y: auto;
    grid-column: 3;
}

.main-area.panel-open .right-sidebar {
    grid-column: 4;
}

.right-sidebar-header {
    font-size: 0.625rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
}

.tool-item {
    width: 100%;
    min-height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    color: #888;
    text-decoration: none;
    padding: 0.25rem;
    text-align: center;
}

.tool-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.tool-item span {
    font-size: 0.625rem;
    font-weight: 500;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.2;
}

.tool-item:hover:not(.disabled) {
    background: rgba(0, 255, 163, 0.1);
    border-color: #00ffa3;
    color: #00ffa3;
}

.tool-item.active-tool {
    background: rgba(0, 255, 163, 0.15);
    border-color: #00ffa3;
    color: #00ffa3;
    pointer-events: none;
}

.tool-item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tool-item .badge {
    display: block;
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff8800;
    color: #000;
    font-size: 0.5rem;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 700;
}

.right-sidebar-toggle {
    display: none;
}

@media (max-width: 768px) {
    .right-sidebar {
        position: fixed;
        right: -60px;
        top: 50px;
        bottom: 60px;
        width: 60px;
        height: auto;
        transition: right 0.3s ease;
        z-index: 150;
        grid-column: auto;
        border-left: 1px solid #333;
        border-radius: 8px 0 0 8px;
    }
    
    .main-area.panel-open .right-sidebar {
        grid-column: auto;
    }
    
    .right-sidebar.mobile-open {
        right: 0;
    }
    
    .right-sidebar-toggle {
        display: flex;
        position: fixed;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 48px;
        background: linear-gradient(135deg, #00ffa3 0%, #00d4aa 100%);
        border-radius: 8px 0 0 8px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 160;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
    }
    
    .right-sidebar-toggle.active {
        right: 60px;
    }
    
    .right-sidebar-toggle svg {
        width: 16px;
        height: 16px;
        color: #000;
        transition: transform 0.3s ease;
    }
    
    .right-sidebar-toggle.active svg {
        transform: rotate(180deg);
    }
    
    .tool-item {
        min-height: 42px;
        padding: 0.4rem 0.2rem;
    }
    
    .tool-item svg {
        width: 16px;
        height: 16px;
    }
    
    .tool-item span {
        font-size: 0.55rem;
    }
    
    .right-sidebar-header {
        font-size: 0.55rem;
    }
    
    .url-loader-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .drop-hint {
        padding: 1.5rem;
    }
    
    .drop-hint svg {
        width: 36px;
        height: 36px;
    }
    
    .drop-hint span {
        font-size: 1rem;
    }
    
    .keyboard-hint {
        display: none;
    }
    
    /* Image info bar - HIDDEN ON MOBILE */
    .image-info-bar {
        display: none !important;
    }
    
    /* Image info toggle button - HIDDEN ON MOBILE */
    .image-info-toggle {
        display: none !important;
    }
    
    .image-info-item {
        font-size: 0.65rem;
        gap: 0.2rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .image-info-label {
        font-size: 0.6rem;
    }
    
    .image-info-value {
        font-size: 0.65rem;
        font-weight: 700;
    }
}

/* ============================================
   COMMON CANVAS ADJUSTMENT SYSTEM
   (Used across all image editing tools)
   ============================================ */

/* Main Area Grid - Adjusts when settings panel opens */
.main-area {
    background: #1a1a1a;
    background-image: 
        radial-gradient(circle at center, transparent 0%, transparent 25%, rgba(80, 80, 80, 0.08) 45%, rgba(80, 80, 80, 0.15) 100%),
        radial-gradient(circle, rgba(100, 100, 100, 0.5) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 15px 15px;
    background-position: left top, 0 0;
}

/* When panel is open, expand grid to make room for settings panel */
.main-area.panel-open {
    grid-template-columns: 60px 300px 1fr 60px;
}

/* Settings Panel - Slides in from left sidebar */
.settings-panel {
    position: absolute;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #1a1a1a;
    background-size: 100% 100%, 15px 15px;
    background-position: left top, 0 0;
    z-index: 50;
}

.settings-panel.active {
    left: 60px;
}

/* Canvas Area - Adjusts grid column when panel opens */
.canvas-area {
    grid-column: 2;
}

.main-area.panel-open .canvas-area {
    grid-column: 3;
}

/* ============================================
   IMAGE INFO BAR (Bottom - Desktop & Mobile)
   ============================================ */

/* Desktop Image Info Bar - Bottom fixed */
.image-info-bar {
    height: 50px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    gap: 2rem;
    flex-shrink: 0;
    overflow-x: auto;
}

.image-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.image-info-label {
    color: #888;
    font-weight: 500;
}

.image-info-value {
    color: #00ffa3;
    font-weight: 600;
}

#imageInfoFileName {
    display: none !important;
}

.image-info-item:has(#imageInfoFileName) {
    display: none !important;
}

/* Image info toggle button - hidden on desktop */
@media (min-width: 769px) {
    .image-info-toggle {
        display: none;
    }
}

/* ============================================
   TOP TOOLBAR STYLES (Desktop & Mobile)
   (Applied to all image editing tools)
   ============================================ */

/* Desktop Top Toolbar */
.top-toolbar {
    height: 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    grid-column: 1 / -1;
}

.toolbar-left,
.toolbar-center,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toolbar-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.5rem 0.75rem;
    margin-right: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.toolbar-home:hover {
    background: rgba(255, 255, 255, 0.05);
}

.toolbar-home svg {
    width: 24px;
    height: 24px;
    color: #00ffa3;
}

.toolbar-logo {
    font-size: 0.875rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ffa3 0%, #00d4aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.toolbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #ccc;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 70px;
}

.toolbar-btn svg {
    width: 20px;
    height: 20px;
}

.toolbar-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: #00ffa3;
    transform: translateY(-1px);
}

.toolbar-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.toolbar-btn-action {
    background: transparent;
    border: none;
}

.toolbar-btn-action:hover:not(:disabled) {
    background: rgba(0, 255, 163, 0.1);
}

.toolbar-btn-download {
    background: transparent;
    border: none;
}

.toolbar-btn-download:hover:not(:disabled) {
    transform: translateY(-1px);
}

.cached-images-btn {
    display: none;
}

/* Mobile Top Toolbar */
@media (max-width: 768px) {
    .top-toolbar {
        height: 50px;
        padding: 0 0.5rem;
    }
    
    .toolbar-left,
    .toolbar-center,
    .toolbar-right {
        gap: 0.35rem;
    }
    
    .toolbar-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.65rem;
        gap: 0.15rem;
        min-width: 50px;
    }
    
    .toolbar-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .toolbar-home {
        padding: 0.4rem 0.5rem;
        margin-right: 0.5rem;
    }
    
    .toolbar-home svg {
        width: 18px;
        height: 18px;
    }
    
    .toolbar-logo {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile Top Toolbar (480px and below) */
@media (max-width: 480px) {
    .top-toolbar {
        height: 48px;
        padding: 0 0.25rem;
    }
    
    .toolbar-left,
    .toolbar-center,
    .toolbar-right {
        gap: 0.15rem;
    }
    
    .toolbar-btn {
        padding: 0.3rem 0.35rem;
        font-size: 0.6rem;
        gap: 0.1rem;
        min-width: auto;
    }
    
    .toolbar-btn span {
        display: none;
    }
    
    .toolbar-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .toolbar-home {
        padding: 0.3rem 0.35rem;
        margin-right: 0.25rem;
    }
    
    .toolbar-home svg {
        width: 16px;
        height: 16px;
    }
    
    .toolbar-logo {
        font-size: 0.7rem;
    }
}

/* ============================================
   SEO CONTENT SECTION (COMMON FOR ALL TOOLS)
   ============================================ */

/* SEO Toggle Button */
.seo-toggle-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
    border: 1px solid #333;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    position: fixed;
    bottom: 3px;
    right: 3px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.seo-toggle-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.seo-toggle-btn.active {
    background: linear-gradient(135deg, #00ffa3 0%, #00cc82 100%);
    color: #0a0a0a;
    border-color: #00ffa3;
    box-shadow: 0 4px 20px rgba(0, 255, 163, 0.4);
}

.seo-toggle-btn.active svg {
    transform: rotate(180deg);
}

.seo-toggle-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.2) 0%, rgba(0, 204, 130, 0.2) 100%);
    color: #00ffa3;
    border-color: #00ffa3;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 255, 163, 0.3);
}

.seo-toggle-btn.active:hover {
    background: linear-gradient(135deg, #00ffa3 0%, #00cc82 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 255, 163, 0.5);
}

/* SEO Content Section */
.seo-content-section {
    max-height: 0;
    overflow: hidden;
    background: #0a0a0a;
    transition: max-height 0.4s ease;
}

.seo-content-section.active {
    max-height: 5000px;
}

.seo-content-wrapper {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.seo-content-container {
    max-width: 1000px;
    margin: 0 auto;
}

.seo-main-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-main-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #333;
}

.seo-main-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.seo-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 2rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 255, 163, 0.15);
    border-color: #00ffa3;
}

.feature-card h3 {
    color: #00ffa3;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.feature-card p {
    color: #aaa;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Steps List */
.steps-list {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin: 1.5rem 0;
}

.steps-list li {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.steps-list li:last-child {
    margin-bottom: 0;
}

.steps-list strong {
    color: #00ffa3;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 12px;
    border: 1px solid #333;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.comparison-table thead {
    background: #0a0a0a;
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #333;
    font-size: 0.9375rem;
}

.comparison-table td {
    padding: 1rem;
    color: #ccc;
    border-bottom: 1px solid #2d2d2d;
    font-size: 0.9375rem;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: rgba(0, 255, 163, 0.05);
}

.comparison-table .highlight-col {
    background: rgba(0, 255, 163, 0.1);
    color: #00ffa3;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #00ffa3;
    box-shadow: 0 8px 20px rgba(0, 255, 163, 0.1);
}

.faq-item h3 {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.faq-item h3::before {
    content: "Q:";
    color: #00ffa3;
    font-weight: 700;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.faq-item p {
    color: #bbb;
    line-height: 1.7;
    padding-left: 2rem;
    font-size: 0.9375rem;
}

/* SEO Responsive Design (768px and below) */
@media (max-width: 768px) {
    .seo-toggle-btn {
        bottom: 12px;
        right: 12px;
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
    }
    
    .seo-toggle-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .seo-content-wrapper {
        padding: 2rem 1rem;
    }
    
    .seo-main-content h1 {
        font-size: 1.75rem;
    }
    
    .seo-main-content h2 {
        font-size: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .steps-list {
        padding: 1.5rem 1.5rem;
    }
    
    .comparison-table {
        font-size: 0.8125rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .faq-item p {
        padding-left: 1.5rem;
    }
}

/* SEO Responsive Design (480px and below) */
@media (max-width: 480px) {
    .seo-toggle-btn span {
        display: none;
    }
    
    .seo-main-content h1 {
        font-size: 1.5rem;
    }
    
    .seo-main-content h2 {
        font-size: 1.25rem;
    }
}

/* ==================== CANVAS AREA - RADIAL DOT PATTERN ==================== */
/* Professional radial dot pattern background for image canvas across all tools */
.canvas-area {
    background: #1a1a1a;
    background-image: 
        radial-gradient(circle at center, transparent 0%, transparent 25%, rgba(80, 80, 80, 0.08) 45%, rgba(80, 80, 80, 0.15) 100%),
        radial-gradient(circle, rgba(100, 100, 100, 0.5) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 15px 15px;
    background-position: center center, 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.canvas-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, transparent 30%, rgba(10, 10, 10, 0.15) 75%, rgba(10, 10, 10, 0.35) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   SAVE MODAL STYLES (COMMON FOR ALL TOOLS)
   ============================================ */

/* Modal Overlay */
.save-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.save-modal-overlay.active {
    display: flex;
}

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

/* Modal Container */
.save-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    border: 1px solid #444;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

/* Modal Header */
.save-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #333;
}

.save-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

/* Modal Body */
.save-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Left Preview Area */
.save-preview-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.save-preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    background-image: 
        radial-gradient(circle at center, transparent 0%, transparent 25%, rgba(80, 80, 80, 0.08) 45%, rgba(80, 80, 80, 0.15) 100%),
        radial-gradient(circle, rgba(100, 100, 100, 0.5) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 15px 15px;
    background-position: center center, 0 0;
    border-radius: 8px;
    padding: 3rem 2rem;
    min-height: 300px;
}

.save-preview-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #333;
    border-top-color: #00ffa3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

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

.save-preview-loading p {
    color: #888;
    font-size: 0.875rem;
}

.save-preview-image {
    background: #1a1a1a;
    background-image: 
        radial-gradient(circle at center, transparent 0%, transparent 25%, rgba(80, 80, 80, 0.08) 45%, rgba(80, 80, 80, 0.15) 100%),
        radial-gradient(circle, rgba(100, 100, 100, 0.5) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 15px 15px;
    background-position: center center, 0 0;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.save-preview-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.save-preview-image img:hover {
    transform: scale(1.02);
}

.save-preview-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: rgba(0, 255, 163, 0.05);
    border: 1px solid rgba(0, 255, 163, 0.2);
    border-radius: 8px;
}

.save-preview-info span {
    font-size: 0.875rem;
    color: #888;
}

.save-preview-info strong {
    color: #00ffa3;
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Right Settings Area */
.save-settings-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Format Section */
.save-format-section label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.format-tabs {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.format-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 0;
    position: relative;
}

.format-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #555;
    transform: translateY(-1px);
}

.format-tab.active {
    background: rgba(0, 255, 163, 0.1);
    border-color: #00ffa3;
}

.format-tab svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.format-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.format-desc {
    font-size: 0.7rem;
    color: #888;
    text-align: center;
    line-height: 1.2;
}

.format-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, #00ffa3 0%, #00d4aa 100%);
    color: #0a0a0a;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    width: fit-content;
}

/* Quality Section */
.save-quality-section {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 8px;
}

.quality-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quality-header label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.quality-value {
    font-size: 1rem;
    font-weight: 700;
    color: #00ffa3;
}

.quality-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.quality-preset {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    border-radius: 6px;
    color: #888;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quality-preset:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #555;
    color: #fff;
}

.quality-preset.active {
    background: linear-gradient(135deg, #00ffa3 0%, #00d4aa 100%);
    border-color: #00ffa3;
    color: #0a0a0a;
}

/* Modal Actions */
.save-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.save-modal-actions .btn {
    flex: 1;
}

/* Mobile Responsive - Ultra Compact for Ad Space */
@media (max-width: 768px) {
    .save-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    /* Ultra Compact Header - 25px height */
    .save-modal-header {
        padding: 0.4rem 0.75rem;
        min-height: 25px;
    }
    
    .save-modal-header h3 {
        font-size: 0.7rem;
        font-weight: 600;
    }
    
    .modal-close {
        width: 20px;
        height: 20px;
        font-size: 1rem;
        border-radius: 4px;
    }
    
    /* Compact Body - Preview + Formats Side by Side */
    .save-modal-body {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto auto auto;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    /* Preview Area - First Column, Spans 2 Rows (Image + Info) */
    .save-preview-area {
        grid-column: 1;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Preview Image and Loading - Fixed height to prevent vertical stretching */
    .save-preview-image {
        flex: 0 0 auto;
        width: 100%;
        height: 160px;
        min-height: 160px;
        max-height: 160px;
        padding: 0.5rem;
        border-radius: 6px;
    }
    
    .save-preview-loading {
        flex: 0 0 auto;
        width: 100%;
        height: 160px;
        min-height: 160px;
        max-height: 160px;
        padding: 2rem 1rem;
    }
    
    .save-preview-image img {
        max-height: 150px;
        max-width: 100%;
    }
    
    /* Settings Area - Use display: contents to flatten children into grid */
    .save-settings-area {
        display: contents;
    }
    
    /* Format Section - First Row, Second Column, Compact Width */
    .save-format-section {
        grid-column: 2;
        grid-row: 1 / 3;
        max-width: 90px;
    }
    
    .save-format-section label {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .format-tabs {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .format-tab {
        flex-direction: column;
        padding: 0.5rem 0.35rem;
        gap: 0.3rem;
        min-height: 45px;
        justify-content: center;
        align-items: center;
    }
    
    .format-tab svg {
        width: 22px;
        height: 22px;
    }
    
    .format-name {
        font-size: 0.6rem;
        text-align: center;
        line-height: 1;
    }
    
    .format-desc {
        display: none;
    }
    
    .format-badge {
        font-size: 0.45rem;
        padding: 0.1rem 0.3rem;
    }
    
    /* Image Info - Single Line with Small Font, No Scroll */
    .save-preview-info {
        display: flex;
        flex-direction: row;
        gap: 0.4rem;
        padding: 0.4rem 0.6rem;
        flex-wrap: nowrap;
        overflow: hidden;
        background: rgba(0, 255, 163, 0.08);
        border: 1px solid rgba(0, 255, 163, 0.2);
        border-radius: 6px;
    }
    
    .save-preview-info span {
        font-size: 0.55rem;
        white-space: nowrap;
        flex-shrink: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .save-preview-info strong {
        font-size: 0.6rem;
        font-weight: 700;
    }
    
    /* Compact Quality Section - Third Row, Spans Both Columns, Horizontal */
    .save-quality-section {
        grid-column: 1 / 3;
        grid-row: 3;
        padding: 0.6rem;
        border-radius: 6px;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .quality-header {
        margin-bottom: 0;
        flex: 0 0 auto;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        min-width: auto;
    }
    
    .quality-header label {
        font-size: 0.65rem;
    }
    
    .quality-value {
        font-size: 0.75rem;
    }
    
    .save-quality-section .slider {
        flex: 1;
        height: 4px;
        min-width: 100px;
    }
    
    .save-quality-section .slider::-webkit-slider-thumb {
        width: 12px;
        height: 12px;
    }
    
    .save-quality-section .slider::-moz-range-thumb {
        width: 12px;
        height: 12px;
    }
    
    .quality-presets {
        display: flex;
        gap: 0.35rem;
        margin: 0;
        flex: 1;
    }
    
    .quality-preset {
        flex: 1;
        padding: 0.35rem 0.5rem;
        font-size: 0.6rem;
        border-radius: 4px;
        white-space: nowrap;
    }
    
    /* Action Buttons - Last Row, Spans Both Columns, Side by Side */
    .save-modal-actions {
        grid-column: 1 / 3;
        grid-row: 4;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 0;
    }
    
    .save-modal-actions .btn {
        flex: 1;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        font-weight: 600;
    }
}

/* ==================== FULL-SCREEN IMAGE VIEWER ==================== */
.fullscreen-image-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    align-items: center;
    justify-content: center;
}

.fullscreen-image-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fullscreen-image-container {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fullscreen-image-overlay.active .fullscreen-image-container {
    transform: scale(1);
}

.fullscreen-image-container img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border: 3px solid #ff6b35;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.fullscreen-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #ff6b35;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    z-index: 1;
}

.fullscreen-close-btn:hover {
    background: #ff5722;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.6);
}

.fullscreen-close-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .fullscreen-image-container {
        max-width: 90%;
        max-height: 90%;
    }
    
    .fullscreen-close-btn {
        top: -12px;
        right: -12px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Format Notification - Small, Orange, Top-Left, Mobile-Optimized */
.format-notification {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff9500 0%, #ff7b00 100%);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(255, 149, 0, 0.35);
    z-index: 100;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.format-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.format-notification.hide {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
}

.format-notification-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.format-notification-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .format-notification {
        top: 8px;
        left: 8px;
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 6px;
        max-width: calc(100% - 16px);
    }
    
    .format-notification-icon {
        font-size: 12px;
    }
}