:root {
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --card-bg: #ffffff;
    --card-bg-solid: #ffffff;
    --border-color: #e8eaed;
    --border-color-hover: #fb8500;
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --accent-glow: #fb8500;
    --accent-solid: #fb8500;
    --accent-yellow: #ffb703;
    --accent-red: #db2777;
    --accent-green: #16a34a;
    --shadow-glow: none;
    --shadow-card: 0 1px 4px rgba(0,0,0,0.06);
    --transition-smooth: all 0.2s ease;
    --transition-spring: all 0.2s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Playpen Sans', sans-serif;
    background-color: #ffffff;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playpen Sans', sans-serif;
    letter-spacing: -0.2px;
}

/* GPU Acceleration for silky smooth transitions */
.action-card,
.modal-overlay,
.modal-content,
.actions-dashboard,
.workspace-wrapper,
.logo-icon,
.comparison-slider-bar,
.queue-item {
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-solid);
}

/* App Container Layout */
.app-container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    background: var(--bg-secondary);
}

.app-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-details {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Coffee Donate Button */
.coffee-donate-btn {
    background: #fff8ed;
    border: 1.5px solid #ffb703;
    color: #b45309;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    font-family: 'Playpen Sans', sans-serif;
}

.coffee-donate-btn:hover {
    background: #ffb703;
    color: #1a1a2e;
}

.coffee-donate-btn:active {
    opacity: 0.85;
}

/* Privacy Sandbox Shield Badge */
.privacy-shield {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f0fdf4;
    border: 1.5px solid #16a34a;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #16a34a;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'Playpen Sans', sans-serif;
}

.privacy-shield:hover {
    background: #16a34a;
    color: #ffffff;
}

.shield-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    position: relative;
}

.shield-pulse::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background-color: var(--accent-green);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* Main Workspace Wrapper */
.workspace-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Actions Dashboard (Empty State Panels) */
.actions-dashboard {
    text-align: center;
    padding: 1.5rem 0;
    animation: fadeIn 0.4s ease-out;
}

.dashboard-header {
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-title-funky {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.highlight-yellow {
    background: var(--accent-yellow);
    color: #0b0f19;
    padding: 0.15rem 0.8rem;
    border-radius: 12px 18px 10px 14px;
    display: inline-block;
    transform: rotate(-1.5deg);
    font-weight: 800;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    margin: 0 4px;
}

.underline-blue {
    position: relative;
    display: inline-block;
    color: inherit;
}

.underline-blue::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -2%;
    width: 104%;
    height: 6px;
    background: #00d2ff; /* Vibrant marker light-blue/cyan */
    border-radius: 100% 20% 80% 40% / 60% 40% 60% 40%;
    transform: rotate(-0.5deg);
    z-index: -1;
}

.dashboard-subtitle-funky {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3.2rem; /* Make room for the absolute arrow callout text below it */
    position: relative;
    display: inline-block;
    color: var(--text-primary);
}

.arrow-callout-wrapper {
    position: absolute;
    bottom: -32px;
    right: -130px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transform: rotate(4deg);
    white-space: nowrap;
    pointer-events: none;
}

.arrow-svg {
    color: var(--accent-yellow);
    fill: none;
    stroke: var(--accent-yellow);
    stroke-linecap: round;
}

.arrow-text {
    font-family: 'Caveat', cursive;
    font-size: 1.25rem;
    color: var(--accent-yellow);
    letter-spacing: 0.5px;
}

/* Dropzone files helper arrow */
.dropzone-arrow-callout {
    position: absolute;
    top: -24px;
    right: -125px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transform: rotate(6deg);
    white-space: nowrap;
    pointer-events: none;
}

.dropzone-arrow-svg {
    color: var(--accent-yellow);
    fill: none;
    stroke: var(--accent-yellow);
    stroke-linecap: round;
}

.dropzone-arrow-text {
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: var(--accent-yellow);
}

.dashboard-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Dashboard Cards Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1050px;
    margin: 0 auto;
}

.action-card {
    background: #fff;
    border: 1.5px solid #e8eaed;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
}

.action-card-icon {
    font-size: 2.2rem;
    color: var(--accent-solid);
    margin-bottom: 0.2rem;
}

.action-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.action-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
}

.action-card-btn {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-solid);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.action-card:hover {
    border-color: var(--accent-solid);
    background: #fffbf5;
}

.action-card:hover .action-card-icon {
    transform: scale(1.1);
}

.action-card.highlight-card {
    border-color: #ffb703;
    background: #fffdf5;
}

.action-card.highlight-card:hover {
    border-color: var(--accent-solid);
    background: #fff8e1;
}

/* Upload Container & Empty states */
.upload-container {
    width: 100%;
    animation: fadeIn 0.3s ease-out;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Playpen Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.btn-back:hover {
    color: var(--accent-solid);
    transform: translateX(-3px);
}

.feature-empty-screen {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px dashed #d1d5db;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: none;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.feature-empty-screen:hover, .feature-empty-screen.dragover {
    border-color: var(--accent-solid);
    background: #fffbf5;
}

.empty-badge {
    background: rgba(251, 133, 0, 0.12);
    color: var(--accent-yellow);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.empty-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.empty-icon-wrapper {
    font-size: 3rem;
    color: var(--accent-solid);
    margin-bottom: 0.5rem;
    animation: float 3.5s ease-in-out infinite;
}

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

.feature-empty-screen h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.feature-empty-screen p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    max-width: 440px;
    line-height: 1.5;
}

.empty-bullets-list {
    text-align: left;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.empty-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.empty-bullet-item i {
    color: var(--accent-green);
    margin-top: 2px;
}

.empty-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.empty-plus-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2.5px solid var(--accent-solid);
    background: var(--accent-solid);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.empty-plus-btn:hover {
    background: #e07800;
    border-color: #e07800;
    transform: rotate(90deg);
}

.empty-plus-btn:active {
    opacity: 0.85;
}

.empty-upload-helper {
    font-size: 0.78rem !important;
    color: var(--text-secondary);
}

.file-input {
    display: none;
}

/* Loader indicators */
.loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin: 4rem auto;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e8eaed;
    border-radius: 50%;
    border-top-color: var(--accent-solid);
    animation: spin 0.85s linear infinite;
}

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

.loading-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Active Editing Workspace View */
.active-workspace {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

.workspace-main-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

/* Visual Editor Pane (Left Column) */
.workspace-viewport-pane {
    background-color: #f1f3f5;
    background-image: linear-gradient(45deg, #e4e7eb 25%, transparent 25%),
                      linear-gradient(-45deg, #e4e7eb 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #e4e7eb 75%),
                      linear-gradient(-45deg, transparent 75%, #e4e7eb 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border: 1.5px solid #e8eaed;
    border-radius: 14px;
    min-height: 550px;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1.5rem;
    overflow: hidden;
}

/* Split-screen Comparison Slider */
.comparison-view-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.comparison-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#processed-preview, #original-preview {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
}

.original-preview-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    z-index: 5;
}

/* Draggable Comparison Bar */
.comparison-slider-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.slider-handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b0f19;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 2.5px solid var(--accent-solid);
    pointer-events: none;
}

/* Preview badges */
.preview-badge {
    position: absolute;
    bottom: 12px;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 8;
    pointer-events: none;
}

.original-badge {
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.processed-badge {
    right: 12px;
    background: rgba(251, 133, 0, 0.85);
    color: #000;
    border: 1px solid rgba(251, 133, 0, 0.2);
}

/* Cropper View styles */
.crop-view-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cropper-wrapper {
    flex-grow: 1;
    width: 100%;
    height: 80%;
    overflow: hidden;
    background: #1a1a2e;
    border-radius: 10px;
}

.cropper-wrapper img {
    max-width: 100%;
    display: block;
}

.cropper-toolbar {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
}

/* Buttons style system */
.btn-primary {
    background: var(--accent-solid);
    color: #fff;
    border: 2px solid var(--accent-solid);
    padding: 0.65rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    font-family: 'Playpen Sans', sans-serif;
}

.btn-primary:hover {
    background: #e07800;
    border-color: #e07800;
}

.btn-primary:active {
    opacity: 0.9;
}

.btn-secondary {
    background: #f8f9fa;
    color: var(--text-primary);
    border: 1.5px solid #e8eaed;
    padding: 0.65rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    font-family: 'Playpen Sans', sans-serif;
}

.btn-secondary:hover {
    background: #f0f0f0;
    border-color: #c8cacd;
}

.btn-secondary:active {
    opacity: 0.85;
}

.btn-danger {
    background: #fff5f5;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
    padding: 0.65rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    font-family: 'Playpen Sans', sans-serif;
}

.btn-danger:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

.btn-danger:active {
    opacity: 0.85;
}

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

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0 !important;
    justify-content: center;
    border-radius: 50% !important;
}

/* Toolbar */
.toolbar {
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 12px;
    padding: 0.75rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Settings Sidebar (Right Column) */
.workspace-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: 600px;
    overflow-y: auto;
    padding-right: 2px;
}

.settings-card {
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 14px;
    padding: 1.2rem;
}

.settings-card.accent-card {
    border-color: #ffb703;
    background: #fffdf5;
}

.settings-card.queue-card {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 250px;
    max-height: 350px;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.6rem;
}

.settings-card-header i {
    color: var(--accent-yellow);
    font-size: 1.05rem;
}

.settings-card-header h4 {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.settings-group:last-of-type {
    margin-bottom: 0;
}

.settings-group label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sub-label {
    color: var(--text-secondary) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
}

/* Range input customizing */
input[type="range"] {
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.08);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-solid);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(251, 133, 0, 0.5);
    transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.settings-helper-text {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Dimensions input styles */
.dimensions-toggle-row {
    display: flex;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 8px;
    padding: 2px;
    margin-bottom: 0.5rem;
}

.btn-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.35rem;
    font-size: 0.78rem;
    font-family: 'Playpen Sans', sans-serif;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-tab.active {
    background: var(--card-bg-solid);
    color: var(--accent-yellow);
}

.resize-input-subgroup {
    animation: fadeIn 0.2s ease-out;
}

.pixels-input-row {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
}

.pixel-input-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pixel-input-box input {
    width: 100%;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.55rem;
    color: var(--text-primary);
    font-family: 'Playpen Sans', sans-serif;
    font-size: 0.8rem;
    outline: none;
    text-align: center;
}

.pixel-input-box input:focus {
    border-color: var(--accent-solid);
}

.pixel-aspect-link {
    padding-bottom: 2px;
}

.aspect-lock-btn {
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.aspect-lock-btn.active {
    color: var(--accent-yellow);
    border-color: rgba(251,133,0,0.3);
    background: rgba(251,133,0,0.05);
}

/* Format select dropdown */
select {
    width: 100%;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem;
    color: var(--text-primary);
    font-family: 'Playpen Sans', sans-serif;
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
}

select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

select:focus {
    border-color: var(--accent-solid);
}

/* Expandable Filters Panel */
.dropdown-trigger-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.4rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 0.4rem;
    padding-top: 0.8rem;
}

.dropdown-trigger-label.open i {
    transform: rotate(180deg);
}

.dropdown-trigger-label i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    color: var(--text-secondary);
}

.filters-expandable-panel {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.6rem 0;
    animation: slideDown 0.25s ease-out;
}

.filter-slider-box {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.filter-slider-box label {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
}

/* Active File Stats Panel */
.active-file-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 700;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.text-accent-green {
    color: var(--accent-green);
}

.text-accent-orange {
    color: var(--accent-yellow);
}

/* Queue Workspace Items */
.queue-list-container {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border: 1.5px solid #e8eaed;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.queue-item:hover {
    border-color: #d1d5db;
    background: #f0f0f0;
}

.queue-item.active {
    border-color: var(--accent-solid);
    background: #fff8ed;
}

.queue-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.queue-item-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.queue-item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    min-width: 0;
}

.queue-item-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-primary);
}

.queue-item-sizes {
    font-size: 0.68rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.queue-item-btn-remove {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.queue-item-btn-remove:hover {
    color: var(--accent-red);
    background: rgba(244, 63, 94, 0.1);
}

/* Feature info block under dashboard */
.feature-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    padding: 1.6rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: none;
}

.feature-card-icon {
    font-size: 1.6rem;
    color: var(--accent-yellow);
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
}

.feature-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* FAQ section */
.faq-section {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    margin-top: 2rem;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.faq-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: #c8cacd;
}

.faq-question {
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 700;
}

.faq-question i {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    border-top: 0px solid transparent;
}

.faq-item.open .faq-answer {
    max-height: 250px;
    padding: 0.2rem 1.2rem 1.2rem 1.2rem;
    border-top: 1px solid var(--border-color);
}

/* Contact CTA Block */
.cta-container {
    margin-top: 4rem;
    background: #f8f9fa;
    border: 1.5px solid #e8eaed;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.cta-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.cta-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cta-btn {
    background: #0f172a;
    color: #ffffff;
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-spring);
    border: 1px solid #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Card Badges styling */
.action-card {
    position: relative;
    overflow: visible;
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 18px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transform: rotate(2deg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.badge-compress {
    background: rgba(251, 133, 0, 0.12);
    color: var(--accent-solid);
}

.badge-resize {
    background: rgba(0, 180, 216, 0.12);
    color: #00b4d8;
}

.badge-crop {
    background: rgba(219, 39, 119, 0.12);
    color: var(--accent-red);
}

.badge-convert {
    background: rgba(22, 163, 74, 0.12);
    color: var(--accent-green);
}

/* Capabilities Showcase Styling */
.capabilities-showcase {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.showcase-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.showcase-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: left;
}

.showcase-item {
    background: #ffffff;
    border: 1.5px solid #e8eaed;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: none;
    transition: var(--transition-smooth);
}

.showcase-item:hover {
    border-color: var(--accent-solid);
    background: #fffbf5;
}

.showcase-icon {
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-solid);
    margin-bottom: 1.2rem;
}

.showcase-item h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.showcase-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer styling */
footer {
    border-top: 1px solid var(--border-color);
    padding: 1.8rem 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-love-msg {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.heart-pulse {
    color: var(--accent-red);
    cursor: pointer;
    display: inline-block;
    animation: beat 1.2s infinite;
}

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

.footer-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-right a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: var(--text-primary);
}

.footer-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d1d5db;
}

/* Modals System styling */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.2rem;
    width: 90%;
    max-width: 460px;
    box-shadow: var(--shadow-card);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: modalPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
    font-size: 2.8rem;
    color: var(--accent-yellow);
    margin: 0 auto;
}

.modal-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
}

.modal-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* Donation QR Image card */
.donate-modal-content {
    max-width: 400px;
}

.donate-subtitle {
    font-size: 0.84rem !important;
}

.qr-code-wrapper {
    background: #fff;
    padding: 0.8rem;
    border-radius: 16px;
    display: inline-block;
    margin: 0.4rem auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.upi-qr-img {
    width: 170px;
    height: 170px;
    display: block;
}

.upi-id-badge {
    background: #f1f3f5;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.72rem;
    font-family: monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
}

.upi-val {
    color: var(--text-primary);
    font-weight: 700;
}

/* Love Easter Egg Modal Custom Styles */
.love-modal-content {
    max-width: 380px;
    background: #fff0f6 !important;
    border-color: #fcc2d7;
    color: #9c0c3c;
    overflow: hidden;
}

.love-title {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    color: #e64980;
    margin-bottom: -0.2rem;
}

.love-message {
    font-family: 'Playpen Sans', sans-serif;
    font-size: 0.95rem !important;
    line-height: 1.6;
    color: #d6336c !important;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #fcc2d7;
}

.btn-love {
    background: #e64980 !important;
    color: #fff !important;
    border-color: #e64980 !important;
    box-shadow: 0 4px 14px rgba(230, 73, 128, 0.3) !important;
}

.btn-love:hover {
    background: #d6336c !important;
    transform: translateY(-2px);
}

.love-avatar-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.love-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.shiv-avatar {
    background: #4dabf7;
}

.divi-avatar {
    background: #ff8787;
}

.love-heart-divider {
    font-size: 1.4rem;
    color: #e64980;
    animation: beat 0.8s infinite;
}

/* Floating Hearts animations */
.love-hearts-float {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 1;
}

.love-hearts-float i {
    position: absolute;
    color: rgba(230, 73, 128, 0.2);
    font-size: 1.2rem;
}

.floating-heart-1 {
    top: 20%; left: 10%;
    animation: floatHeart 4s infinite ease-in-out;
}

.floating-heart-2 {
    top: 60%; right: 10%;
    animation: floatHeart 5s infinite ease-in-out 1s;
}

.floating-heart-3 {
    bottom: 20%; left: 20%;
    animation: floatHeart 4.5s infinite ease-in-out 0.5s;
}

@keyframes floatHeart {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-15px) scale(1.15) rotate(15deg); }
}

/* Legal Modals Styling */
.legal-modal-content {
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 90%;
    max-width: 650px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPop 0.35s ease;
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8eaed;
    padding: 1.2rem 1.8rem;
    background: #f8f9fa;
}

.legal-tabs {
    display: flex;
    gap: 0.5rem;
}

.legal-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-family: 'Playpen Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.legal-tab-btn.active {
    background: var(--bg-primary);
    color: var(--accent-yellow);
    border: 1px solid var(--border-color);
}

.legal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.legal-close-btn:hover {
    color: var(--accent-red);
}

.legal-modal-body {
    padding: 2rem 2.2rem;
    max-height: 480px;
    overflow-y: auto;
    text-align: left;
}

.legal-tab-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.legal-update-date {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.legal-tab-content h4 {
    font-size: 0.95rem;
    margin-top: 1.4rem;
    margin-bottom: 0.4rem;
    color: var(--accent-yellow);
}

.legal-tab-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

/* Toast Notifications styling */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.8rem 1.4rem;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-card);
    z-index: 2000;
    animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.25) forwards;
}

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

.notification.toast-error {
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--accent-red);
}

.notification.toast-success {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-green);
}

/* Animations helper classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 300px; }
}

/* Responsive Grid Adapting */
@media (max-width: 900px) {
    .workspace-main-layout {
        grid-template-columns: 1fr;
    }
    
    .workspace-viewport-pane {
        height: 480px;
        min-height: 400px;
    }
    
    .workspace-sidebar {
        height: auto;
    }
    
    .settings-card.queue-card {
        max-height: 300px;
    }
    
    .toolbar {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .toolbar-left, .toolbar-right {
        justify-content: center;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
