/* Main Styles for Jupiter Image Tools */

/* Form Field Styles */
.form-field-note {
    margin: 5px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-field-note p {
    margin-bottom: 5px;
}

.success-message {
    background-color: #e8f5e9;
    border: 1px solid #81c784;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.success-message h4 {
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.success-message p {
    color: #4caf50;
}

/* SEO Optimized Styles */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: -10px;
    margin-bottom: 20px;
}

.privacy-note {
    font-size: 0.85rem;
    color: var(--success-color);
    margin: 5px 0;
    font-weight: 500;
}


/* ===== Variables ===== */
:root {
    /* Color Palette */
    --primary-color: #4a6fa5;
    --primary-light: #6189c9;
    --primary-dark: #345689;
    --secondary-color: #3d5a80;
    --secondary-light: #5b7aa6;
    --secondary-dark: #2c4057;
    --accent-color: #98c1d9;
    --accent-light: #b8d8e9;
    --accent-dark: #7aabc9;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --background-color: #f8f9fa;
    --white: #ffffff;
    --light-gray: #e9ecef;
    --medium-gray: #dee2e6;
    --dark-gray: #adb5bd;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --danger-hover: #c9302c;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --header-gradient: linear-gradient(to right, #4a6fa5, #9b59b6);
    --footer-gradient: linear-gradient(to right, #345689, #8e44ad);
    --button-gradient: linear-gradient(to bottom, #4a6fa5, #345689);
    --hover-gradient: linear-gradient(to right, var(--primary-dark), var(--secondary-dark));
    --green-hover-gradient: linear-gradient(to bottom, #1a7d32, #115520);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 1rem;
    --spacing-xxl: 3rem;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-circle: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Layout */
    --header-height: 70px;
    --footer-height: 120px;
    --container-max-width: 1410px;
    --left-column-width: 250px;
    --right-column-width: 250px;
}

/* ===== Base Styles ===== */
body {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-xxl);
}

h2 {
    font-size: var(--font-size-xl);
}

h3 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Button Styles ===== */
/* Standard button styling - consolidated in one place */
.primary-btn, .secondary-btn, #uploadBtn, #applyCrop, #applyCustomSize, #applyPercentage, #applyQuality, #applyCropManualBtn {
    display: inline-block;
    background: var(--button-gradient);
    color: white;
    padding: 12px 18px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* All button hover states */
.primary-btn:hover, .secondary-btn:hover, #uploadBtn:hover, #applyCrop:hover, #applyCustomSize:hover, 
#applyPercentage:hover, #applyQuality:hover, #applyCropManualBtn:hover {
    background: var(--green-hover-gradient);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Ensure "Vote For This" buttons maintain white text on hover */
.btn.primary-btn:hover {
    color: white;
}

/* Active button state */
.primary-btn:active, .secondary-btn:active, #uploadBtn:active, #applyCrop:active, #applyCustomSize:active, 
#applyPercentage:active, #applyQuality:active, #applyCropManualBtn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Format select styling */
.format-select {
    height: 42px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}

.format-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Sticky Action Bar */
.sticky-action-bar {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 80%, rgba(255, 255, 255, 0.95));
    padding: 15px 10px;
    margin: 0 -15px -15px;
    border-top: 1px solid var(--light-gray);
    z-index: 50;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

/* Action buttons container */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0;
    gap: 8px;
}

/* Download container with format select */
.download-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Action button styling */
.action-buttons button {
    display: inline-block;
    color: white;
    padding: 12px 18px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-transform: uppercase;
    min-width: 120px;
    letter-spacing: 0.5px;
}

.action-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.action-buttons button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 
 * Button Color Hierarchy:
 * - PRIMARY (Download): Green - main call-to-action
 * - SECONDARY (Copy, Apply actions): Blue - secondary actions
 * - NEUTRAL (View True Size): Gray - utility actions
 * - DESTRUCTIVE (Reset, Cancel): Red - destructive actions
 */

/* Primary Action - Download (Green) */
#downloadBtn {
    background: linear-gradient(to bottom, #27ae60, #1e8449);
}
#downloadBtn:hover {
    background: linear-gradient(to bottom, #1e8449, #196f3d);
}

/* Secondary Actions - Apply buttons (Blue) */
#applyQuality,
#applyPreset,
#applyCustomSize,
#applyCrop,
#applyPercentage,
#applyCropManualBtn {
    background: linear-gradient(to bottom, #3498db, #2980b9);
}
#applyQuality:hover,
#applyPreset:hover,
#applyCustomSize:hover,
#applyCrop:hover,
#applyPercentage:hover,
#applyCropManualBtn:hover {
    background: linear-gradient(to bottom, #2980b9, #1f6588);
}

/* Copy Action (Teal/Cyan) */
#copyBtn {
    background: linear-gradient(to bottom, #17a2b8, #138496);
}
#copyBtn:hover {
    background: linear-gradient(to bottom, #138496, #0f6674);
}

/* Neutral/Utility Actions (Gray) */
#viewTrueSizeBtn {
    background: linear-gradient(to bottom, #6c757d, #5a6268);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#viewTrueSizeBtn:hover {
    background: linear-gradient(to bottom, #5a6268, #4e555b);
}

/* Undo Action (Orange/Amber) */
#undoBtn {
    background: linear-gradient(to bottom, #f39c12, #e67e22);
}
#undoBtn:hover:not(:disabled) {
    background: linear-gradient(to bottom, #e67e22, #d35400);
}
#undoBtn:disabled {
    background: linear-gradient(to bottom, #bdc3c7, #95a5a6);
    cursor: not-allowed;
    opacity: 0.6;
}
#undoCounter {
    font-size: 0.85em;
    opacity: 0.9;
}

/* Destructive Actions (Red) */
#resetBtn,
#cancelCropBtn {
    background: linear-gradient(to bottom, #dc3545, #c82333);
}
#resetBtn:hover,
#cancelCropBtn:hover {
    background: linear-gradient(to bottom, #c82333, #a71d2a);
}

/* Success button styling - for submit/subscribe buttons */
.success-btn {
    display: inline-block;
    background: linear-gradient(to bottom, #2ecc71, #27ae60); /* Green gradient */
    color: white;
    padding: 12px 18px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-transform: uppercase;
    min-width: 120px;
    letter-spacing: 0.5px;
}

.success-btn:hover {
    background: linear-gradient(to bottom, #27ae60, #1e8449); /* Darker green gradient */
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
    color: white;
}

.success-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===== Header Styles ===== */
.main-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 0;
    margin: 0;
    border: none;
    position: relative;
    z-index: 100;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo-link {
    text-decoration: none;
    border: none;
    outline: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.logo-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: 0.5px;
    color: white;
}

.main-nav {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.nav-list {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-list a {
    color: var(--white);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    transition: background-color var(--transition-fast);
}

.nav-list a:hover, .nav-list a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ===== Main Content Styles ===== */
.main-content {
    display: block;
    margin: 0;
    padding: 0;
}

.three-column-layout {
    display: flex;
    gap: var(--spacing-xl);
    padding-top: 15px;
    /* Now a two-column layout - feedback moved to floating modal */
}

/* Left Column */
.left-column {
    width: var(--left-column-width);
    flex-shrink: 0;
}

/* Info card styling for the left column */
.info-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.info-card-title {
    color: #4a6fa5;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.quick-tips-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.quick-tips-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.info-card.resources-card {
    margin-top: 25px;
}

.resources-intro {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.affiliate-image-container {
    position: relative;
    margin-bottom: 25px;
    padding: 10px;
    border-radius: 6px;
    background: rgba(230, 240, 255, 0.85); /* Pale blue with slight transparency */
    transition: transform 0.3s, box-shadow 0.3s;
    animation: shimmer 30s ease-in-out infinite; /* Extended to 30 seconds for full cycle */
    animation-delay: 7s; /* Initial delay before first shimmer */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.affiliate-image-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Shimmer animation keyframes */
@keyframes shimmer {
    0% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    3% { /* Shimmer starts at 3% of the cycle */
        box-shadow: 0 0 15px rgba(20, 40, 100, 0.9); /* Darker blue shadow with higher opacity */
    }
    6% { /* Shimmer ends at 6% of the cycle */
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    100% { /* Remain inactive for the rest of the cycle */
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

.affiliate-caption {
    margin: 10px auto 0;
    font-weight: 600;
    color: #ffffff;  
    font-size: 0.95rem;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);  
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 5px 8px;
    border-radius: 4px;
    display: block;
    text-align: center;
    width: calc(100% - 20px);
    box-sizing: border-box;
}

.affiliate-image {
    width: 100%;
    height: auto;
    max-width: 240px;
    aspect-ratio: 1.33/1; /* 4:3 aspect ratio */
    border-radius: var(--border-radius-md);
    transition: transform var(--transition-medium);
    margin: 0 auto; /* Center the image */
    display: block; /* Make it a block element for proper centering */
}

/* Center Column */
.center-column {
    flex: 1;
}

.app-container {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
}

/* Upload Section */
.upload-section {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

/* ===== Upload Section Styles ===== */
.upload-container {
    position: relative;
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
    padding: var(--spacing-lg) 0;
}

/* New compact upload container styles */
.upload-container-compact {
    position: relative;
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
    padding: var(--spacing-md) 0;
}

.upload-flex-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.upload-text-container {
    flex: 1;
    text-align: left;
    min-width: 200px;
}

.upload-text-container h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.upload-container-compact .drop-zone {
    min-height: 140px;
    height: 140px;
    width: 200px;
    flex: 0 0 auto;
    margin: 0;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: rgba(74, 111, 165, 0.05);
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius-md);
    box-shadow: inset 0 0 15px rgba(74, 111, 165, 0.1);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
    gap: 8px;
}

.brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.centered-logo {
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.brand-text {
    font-size: 11px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.upload-icon {
    margin: 0;
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.upload-icon svg {
    width: 28px;
    height: 28px;
}

.drop-zone:hover .centered-logo,
.drop-zone.drag-over .centered-logo {
    transform: scale(1.05);
}

.drop-zone:hover .brand-text,
.drop-zone.drag-over .brand-text {
    color: var(--primary-dark);
}

.drop-zone:hover .upload-icon,
.drop-zone.drag-over .upload-icon {
    opacity: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .upload-container-compact .drop-zone {
        width: 100%;
        height: 150px;
        margin-bottom: 10px;
    }
    
    .centered-logo {
        width: 46px;
        height: 46px;
    }
    
    .brand-text {
        font-size: 12px;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .upload-flex-container {
        flex-direction: column;
    }
    
    .upload-text-container {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .upload-container-compact .drop-zone {
        width: 100%;
        height: 130px;
        margin-bottom: 10px;
    }
}

.drop-zone {
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius-md);
    background-color: var(--light-gray);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.drop-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 111, 165, 0.1), transparent);
    transition: left 0.5s ease;
}

.drop-zone:hover::before {
    left: 100%;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(74, 111, 165, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.2);
}

.drop-zone.drag-over {
    animation: pulse-border 1s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: var(--primary-color);
        box-shadow: 0 4px 15px rgba(74, 111, 165, 0.2);
    }
    50% {
        border-color: var(--accent-color);
        box-shadow: 0 4px 20px rgba(74, 111, 165, 0.35);
    }
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
    gap: 10px;
}

.upload-icon {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    opacity: 0.8;
}

.drop-zone-content h3 {
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.drop-zone-content p {
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

/* Editor Section */
.editor-section {
    margin-top: var(--spacing-xl);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.image-preview-container {
    flex: 1;
    min-width: 300px;
    margin-bottom: 0;
}

.image-preview {
    width: 100%;
    max-height: 60vh;
    min-height: 300px;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-gray);
    border-radius: var(--border-radius-md);
    position: relative;
}

.image-preview img {
    max-width: 100%;
    max-height: 60vh;
    display: block;
    object-fit: contain;
}

/* Controls */
.controls-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    position: relative;
    top: auto;
    max-height: none;
    overflow-y: visible;
}

/* Control row for side-by-side controls */
.control-row {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.control-group {
    padding: var(--spacing-sm);
    background-color: var(--light-gray);
    border-radius: var(--border-radius-sm);
}

/* Half-width control group for side-by-side layout */
.control-group-half {
    flex: 1;
}

/* Wide and narrow control groups for resize and rotate */
.control-group-wide {
    flex: 3;
    padding-right: 10px;
}

.control-group-narrow {
    flex: 1;
    padding-left: 10px;
    border-left: 1px solid #eaeaea;
}

.preserve-aspect-ratio {
    margin: 4px 0;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.preserve-aspect-ratio input {
    margin-right: 8px;
}

.resize-info, .crop-info {
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
    line-height: 1.4;
}

/* Resize buttons container */
.resize-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin: 10px 0;
}

.resize-buttons .btn {
    flex: 1;
    min-width: 140px;
    padding: 8px 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Crop buttons - make them more defined */
.crop-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: 12px;
}

.crop-buttons .btn {
    min-width: 140px;
    padding: 10px 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Icon buttons (rotate) */
.icon-btn {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-gray);
    transition: all 0.3s ease;
    margin: 10px auto;
    border: 2px solid transparent;
}

.icon-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(15deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.icon-btn .rotate-left-icon,
.icon-btn .rotate-right-icon {
    font-size: 24px;
    transition: all 0.3s ease;
}

.icon-btn:hover .rotate-left-icon {
    transform: rotate(-15deg);
}

.icon-btn:hover .rotate-right-icon {
    transform: rotate(15deg);
}

/* Rotation indicator */
.rotation-indicator {
    text-align: center;
    margin-bottom: 8px;
}

.rotation-indicator span {
    display: inline-block;
    background: var(--light-gray);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Rotation buttons container */
.rotation-buttons,
.flip-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

/* Side-by-side rotation/flip buttons */
.rotation-buttons.side-by-side,
.flip-buttons.side-by-side {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
}

.rotation-buttons.side-by-side .icon-btn,
.flip-buttons.side-by-side .icon-btn {
    margin: 0;
    width: 48%;
}

/* Percentage reduction styles */
.percentage-reduction {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eaeaea;
}

.percentage-input {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.percentage-input input {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    text-align: right;
}

.percentage-symbol {
    margin-left: 5px;
    font-weight: 600;
    color: #555;
}

/* Cropper Styles */
.cropper-container {
    max-width: 100%;
}

.cropper-view-box,
.cropper-face {
    border-radius: 0;
}

.cropper-modal {
    background-color: rgba(0, 0, 0, 0.6);
}

.cropper-line,
.cropper-point {
    background-color: var(--primary-color);
}

.cropper-view-box {
    outline: 1px solid var(--primary-color);
    outline-color: var(--primary-color);
}

.cropper-face {
    background-color: rgba(74, 111, 165, 0.1);
}

/* Crop Mode Styles */
.crop-mode .image-preview {
    max-height: none;
    height: auto;
}

.crop-mode .image-preview img {
    max-height: none;
}

/* Right Column */
.right-column {
    width: var(--right-column-width);
    flex-shrink: 0;
}

.newsletter-container {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
}

.newsletter-container h3 {
    color: var(--primary-color);
}

.newsletter-form {
    margin-top: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--medium-gray);
    transition: border-color var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--primary-color);
}

.privacy-note {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--text-lighter);
}

/* Newsletter and Feedback Form Styles */
.newsletter-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.newsletter-container:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.newsletter-container h3 {
    color: #4a6fa5;
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 600;
}

.newsletter-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #4a6fa5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 5px;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
    transform: scale(1.1);
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.privacy-note {
    margin-top: 18px;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.privacy-note a {
    color: #4a6fa5;
    text-decoration: none;
    font-weight: 500;
}

.privacy-note a:hover {
    text-decoration: underline;
}

/* Star Rating System */
.rating-container {
    margin: 20px 0;
    background-color: #f0f5ff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.rating-container p {
    margin-bottom: 10px;
    font-weight: 500;
    color: #4a6fa5;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    width: 30px;
    height: 30px;
    margin: 0 2px;
    position: relative;
    transition: all 0.2s ease;
}

.star-rating label:before {
    content: '★';
    position: absolute;
    font-size: 30px;
    color: #ddd;
    transition: all 0.2s ease;
}

.star-rating label:hover:before,
.star-rating label:hover ~ label:before,
.star-rating input:checked ~ label:before {
    color: #ffb400;
    transform: scale(1.1);
}

.required {
    color: #e74c3c;
    margin-left: 3px;
}

/* Feedback Form Specific Styles */
#feedbackForm textarea {
    resize: vertical;
    min-height: 80px;
}

#feedbackForm .btn {
    margin-top: 8px;
    width: 100%;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#feedbackForm .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Affiliate Teaser */
.affiliate-teaser {
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f9ff;
    border-radius: 8px;
    border-left: 4px solid #4a6fa5;
}

.affiliate-teaser p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.affiliate-teaser .affiliate-link {
    color: #4a6fa5;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.affiliate-teaser .affiliate-link:hover {
    color: #2c4c7c;
    text-decoration: underline;
}

/* Animated Arrows */
.animated-arrow-container {
    position: absolute;
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
}

.animated-arrow {
    position: relative;
    width: 30px;
    height: 12px;
    background: linear-gradient(90deg, #ff9966, #ff5e62);
    border-radius: 6px;
    animation: arrow-pulse 1.5s infinite;
}

.arrow-head {
    position: absolute;
    top: -9px;
    right: -8px;
    width: 0;
    height: 0;
    border-left: 16px solid #ff5e62;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

@keyframes arrow-pulse {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(10px) scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Affiliate Section Improvements */

/* ===== About Page Styles ===== */
.about-container {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: var(--spacing-xxl);
}

.about-section h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.feature-list {
    list-style: disc;
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.feature-list li {
    margin-bottom: var(--spacing-sm);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.benefit-card {
    background-color: var(--light-gray);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

/* About page affiliate section */
.about-affiliate-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.about-affiliate-item {
    background: var(--light-gray);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.about-affiliate-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.affiliate-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.about-affiliate-item h4 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.about-affiliate-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.affiliate-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.affiliate-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.free-trial-text {
    font-size: 0.75rem;
    opacity: 0.9;
}

.app-name-text {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Tip box paragraph spacing */
.tip-paragraph {
    margin-top: 10px;
}

/* Rule of Thirds diagram */
.rule-of-thirds-diagram {
    text-align: center;
    margin: 15px 0;
}

.rule-of-thirds-diagram img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

/* Footer bottom text */
.footer-bottom-text {
    font-size: 0.95rem;
}

/* Form honeypot (spam prevention) */
.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.benefit-card h4 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.pro-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.pro-tool-card {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.pro-tool-card h4 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.pro-tool-card p {
    margin-bottom: var(--spacing-lg);
}

/* ===== Documentation Page Styles ===== */
.documentation-container {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.doc-section {
    margin-bottom: var(--spacing-xxl);
}

.doc-section h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.doc-section h4 {
    color: var(--primary-dark);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.step-list {
    list-style: decimal;
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.step-list li {
    margin-bottom: var(--spacing-md);
}

.tip-box {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 4px solid var(--success-color);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.warning-box {
    background-color: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--warning-color);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.platform-card {
    background-color: var(--light-gray);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.platform-card h4 {
    margin-top: 0;
}

.platform-card p {
    margin-bottom: 0;
}

.platform-section {
    margin-bottom: 2rem;
}

.platform-section h5 {
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.platform-card {
    background-color: #f5f7fa;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.platform-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.platform-card h4 {
    margin: 0 0 0.5rem 0;
    color: #2c5282;
    font-size: 1rem;
}

.platform-card p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #4a5568;
}

.platform-card .size-description {
    display: block;
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .platform-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .platform-cards {
        grid-template-columns: 1fr;
    }
}

/* ===== New Apps Page Styles ===== */
.new-apps-container {
    max-width: 1100px;
    margin: 0 auto;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.app-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.app-image {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    border-radius: var(--border-radius-md);
}

.app-content {
    padding: var(--spacing-lg);
}

.app-content h3 {
    margin-bottom: var(--spacing-sm);
}

.app-content p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
}

.app-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--light-gray);
}

.app-status {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.status-coming-soon {
    color: var(--warning-color);
}

.status-available {
    color: var(--success-color);
}

/* Roadmap Timeline */
.roadmap-section {
    padding: 2rem 0;
}

.roadmap-timeline {
    position: relative;
    margin: 3rem auto;
    max-width: 800px;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background-color: #e2e8f0;
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: white;
    border: 4px solid #cbd5e0;
    z-index: 1;
    transform: translateX(-50%);
}

.timeline-marker.current {
    border-color: #3498db;
    background-color: #ebf8ff;
}

.timeline-content {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.timeline-content h4 {
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.timeline-content p {
    margin-bottom: 0;
    color: #4a5568;
}

/* App Card Hover Effects */
.app-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* App Status Badges */
.app-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-coming-soon {
    background-color: #3498db;
    color: white;
}

.status-available {
    background-color: #28a745;
    color: white;
}

.status-beta {
    background-color: #f39c12;
    color: white;
}

/* Media Queries for Roadmap */
@media (min-width: 768px) {
    .roadmap-timeline::before {
        left: 50%;
        margin-left: -2px;
    }
    
    .timeline-item {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: calc(50% + 30px);
        text-align: right;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: calc(50% + 30px);
        text-align: left;
    }
    
    .timeline-marker {
        left: 50%;
    }
}

/* Newsletter Form Enhancements */
.newsletter-section {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form .btn {
    margin-top: 1rem;
}

/* Fix for select dropdown in the form */
select.form-control {
    appearance: auto;
    padding-right: 2rem;
    background-position: right 0.75rem center;
}

/* ===== Footer Styles ===== */
.main-footer {
    background: linear-gradient(to right, rgba(63, 81, 181, 0.9), rgba(100, 115, 195, 0.9));
    color: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-md) 0;
    font-size: var(--font-size-sm);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.footer-column {
    display: flex;
    flex-direction: column;
    padding: 0 var(--spacing-sm);
}

.footer-column h4 {
    color: white;
    font-size: 0.95rem;
    margin: 0 0 var(--spacing-sm) 0;
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo h3 {
    color: white;
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.footer-tagline {
    margin: var(--spacing-xs) 0 0;
    opacity: 0.7;
    font-size: 0.8rem;
}

.copyright {
    margin: var(--spacing-xs) 0 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: white;
    padding-left: var(--spacing-xs);
}

.footer-links a::before {
    content: "›";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all var(--transition-fast);
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-disclaimer {
    margin: var(--spacing-xs) 0;
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.4;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-sm);
    font-size: 0.75rem;
    opacity: 0.6;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: center;
        padding-bottom: var(--spacing-md);
    }
    
    .footer-column:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
}

/* Quality Slider */
.quality-slider-container {
    margin: var(--spacing-md) 0;
    width: 100%;
}

.quality-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--error-color), var(--success-color));
    outline: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.quality-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.quality-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.quality-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.quality-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-xs);
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

#qualityValue {
    font-weight: bold;
    color: var(--primary-color);
}

.quality-info {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.quality-buttons {
    margin-top: var(--spacing-md);
}

.estimated-size {
    margin-top: var(--spacing-sm);
    color: var(--text-light);
    font-size: var(--font-size-sm);
    text-align: center;
}

.estimated-size p {
    margin: 0;
}

#estimatedFileSize {
    font-weight: bold;
    color: var(--primary-color);
}

/* Free Trial Button Styling */
.affiliate-button {
    display: block;
    background: var(--green-hover-gradient);
    color: white;
    width: 85%;
    max-width: 240px;
    padding: 12px 5px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin: 12px auto 8px;
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
}

.affiliate-button:hover {
    background: linear-gradient(to bottom, #27ae60, #1e8449); /* Darker green gradient */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.affiliate-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.free-trial-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.app-name-text {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.affiliate-description {
    text-align: center;
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 5px 0 0;
    padding: 0 10px;
}

/* Preset dropdown styling - standard dropdown with clear text */
.preset-dropdown {
    width: 100%;
    margin-bottom: 15px;
}

.preset-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.preset-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

/* Style the option groups (headers) */
.preset-select optgroup {
    font-weight: bold;
    color: var(--primary-color);
    background-color: #f1f5f9;
    padding: 5px;
}

/* Style the options */
.preset-select option {
    padding: 8px;
    background-color: #fff;
    color: #444;
}

/* Make the Custom Size option stand out */
.preset-select option[value="custom,custom,Custom Size"] {
    font-weight: 600;
    color: #27ae60;
    background-color: #eafaf1;
    padding: 10px 8px;
    margin-top: 5px;
    border-top: 1px solid #c8f7d6;
}

/* Ensure options don't get cut off */
.preset-select option, .preset-select optgroup {
    white-space: normal;
    overflow: visible;
}

/* Documentation Page Specific Styles */
.before-after-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
    justify-content: center;
}

.image-comparison-box {
    flex: 1;
    min-width: 280px;
    max-width: 45%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    padding: 15px;
    position: relative;
}

.image-comparison-box h4 {
    text-align: center;
    margin-bottom: 12px;
}

.comparison-title-original {
    color: #345689;
}

.comparison-title-optimized {
    color: #27ae60;
}

.image-comparison-box .image-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.image-comparison-box .comparison-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.image-comparison-box .view-full {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.image-comparison-box .image-metadata {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
}

.image-comparison-box .image-metadata p {
    margin: 0 0 6px;
}

.image-comparison-box .image-metadata p:last-child {
    margin-bottom: 0;
}

.optimization-highlight {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #27ae60;
    color: white;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transform: rotate(10deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.optimization-highlight span {
    font-size: 14px;
    text-align: center;
    line-height: 1.1;
}

.result-benefits {
    background: #f0f7ff;
    border-left: 4px solid #4a6fa5;
    padding: 15px;
    margin: 20px 0;
}

.result-benefits h4 {
    margin-top: 0;
    color: #4a6fa5;
}

.result-benefits ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.user-feedback {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.user-feedback p {
    margin-bottom: 10px;
}

.user-feedback-buttons {
    display: inline-block;
}

.feedback-btn {
    background: #f0f7ff;
    border: 1px solid #4a6fa5;
    color: #4a6fa5;
    padding: 5px 15px;
    border-radius: 4px;
    margin: 0 5px;
    cursor: pointer;
}

.tip-box-pro {
    background-color: #f0f7ff;
    border-left: 4px solid #4a6fa5;
    margin-top: 20px;
}

.tip-box-pro ul {
    margin-top: 10px;
    margin-left: 15px;
}

/* Form honeypot utility */
.form-honeypot {
    display: none;
}

/* Footer bottom text */
.footer-bottom p {
    font-size: 0.95rem;
}

/* Star Rating Styles */
.star-rating {
    direction: rtl;
    display: flex;
    padding: 10px;
    margin: 10px auto;
    white-space: nowrap;
    line-height: 1;
    justify-content: center;
    max-width: 250px;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.star-rating input {
    display: none;
    position: absolute;
    left: -9999px;
}

.star-rating label {
    color: #c0c0c0;
    font-size: 2.5rem;
    padding: 0;
    cursor: pointer;
    width: 1.2em;
    height: 1.2em;
    transition: all 0.25s;
    display: inline-block;
    margin: 0 5px;
    line-height: 1;
    vertical-align: middle;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.star-rating label:before {
    content: '★';
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    transition: transform 0.15s, color 0.15s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #ffb511 !important;
    transform: scale(1.2);
}

.star-rating.touched label,
.star-rating.touched label ~ label {
    color: #ddd;
    transform: none;
}

.star-rating.touched input:checked ~ label {
    color: #ffb511 !important;
    transform: scale(1.2);
}

.star-rating input:checked + label:hover,
.star-rating input:checked ~ label:hover,
.star-rating label:hover ~ input:checked ~ label,
.star-rating input:checked ~ label:hover ~ label {
    color: #ffa600 !important;
    transform: scale(1.2);
}

.star-rating.ios-device label {
    padding: 10px !important;
    margin: 0 !important;
}

.star-rating.ios-device input:checked ~ label {
    color: #ffb511 !important;
}

.star-rating.ios-selected input:checked ~ label {
    color: #ffa600 !important;
}

.rating-container {
    background-color: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.rating-container p {
    margin-bottom: 12px;
    font-weight: 500;
}

.rating-hint {
    color: #777;
    font-size: 0.9rem;
    margin-top: 8px;
    font-style: italic;
    clear: both;
}

@supports (-webkit-touch-callout: none) {
    .star-rating label {
        padding: 5px;
    }
    
    .star-rating label:before {
        transform: none !important;
    }
    
    .star-rating label:after {
        content: '';
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        z-index: -1;
    }
}

/* Resources Card Accordion */
.resources-card {
    position: relative;
    padding: 0;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.accordion-header:hover {
    background: var(--hover-gradient);
}

.accordion-header .info-card-title {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform var(--transition-fast);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 15px;
}

.accordion-content.expanded {
    max-height: 800px;
    padding: 15px;
}

.accordion-content .resources-intro {
    margin-top: 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Flip buttons spacing */
.flip-buttons-spacing {
    margin-top: 8px;
}

/* Quick resize title spacing */
.quick-resize-title {
    margin-top: 15px;
}

/* Apply percentage button */
.apply-percentage-btn {
    width: 100%;
    margin-top: 8px;
}

/* Compact Controls Layout */
.compact-controls {
    padding: 10px 12px !important;
}

.compact-controls .control-title {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Resize buttons row - inline layout */
.resize-buttons-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.resize-buttons-row .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.crop-btn-compact {
    background: linear-gradient(to bottom, #9b59b6, #8e44ad);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.crop-btn-compact:hover {
    background: linear-gradient(to bottom, #8e44ad, #7d3c98);
}

.info-icon {
    cursor: help;
    font-size: 1rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.info-icon:hover {
    opacity: 1;
}

/* Rotate & Flip row - all in one line */
.rotate-flip-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.rotation-badge {
    background: var(--light-gray);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.icon-btn-sm {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn-sm:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Quick Resize compact */
.quick-resize-compact {
    border-top: 1px solid var(--light-gray);
    padding-top: 10px;
}

.quick-resize-compact label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.quick-resize-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-resize-row input {
    width: 70px;
    padding: 6px 8px;
    font-size: 0.9rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
}

.quick-resize-row .percentage-symbol {
    font-size: 0.9rem;
    color: var(--text-light);
}

.primary-btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    background: linear-gradient(to bottom, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.primary-btn-sm:hover {
    background: linear-gradient(to bottom, #2980b9, #1f6dad);
}

/* Reduce control group padding */
.control-group {
    padding: 12px;
}

.control-group .control-title {
    margin-bottom: 10px;
}

/* Crop mode active buttons - more prominent */
#applyCropManualBtn:not(.hidden),
#cancelCropBtn:not(.hidden) {
    animation: pulse-attention 1.5s ease-in-out infinite;
}

@keyframes pulse-attention {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 20px rgba(52, 152, 219, 0.5);
    }
}

/* Crop Mode Banner */
.crop-mode-banner {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slide-down 0.3s ease-out;
}

.crop-mode-banner.hidden {
    display: none;
}

.crop-mode-icon {
    font-size: 1.5rem;
}

.crop-mode-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.crop-mode-text strong {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* VPN note styling */
.vpn-note {
    margin-top: 10px;
    color: #555;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
}

/* Floating Color Adjustment Button */
.color-adjust-fab {
    position: fixed;
    bottom: 80px;
    right: 25px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
    transition: all var(--transition-fast);
    z-index: 999;
    font-weight: 600;
    font-size: 0.9rem;
}

.color-adjust-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5);
}

.color-adjust-fab svg {
    flex-shrink: 0;
}

/* Floating Color Adjustment Panel */
.color-adjust-panel {
    position: fixed;
    bottom: 140px;
    right: 25px;
    width: 280px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    animation: slide-up 0.3s ease-out;
}

.color-adjust-panel.hidden {
    display: none;
}

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

.color-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.color-panel-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.color-panel-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.color-panel-close:hover {
    opacity: 1;
}

.color-panel-note {
    font-size: 0.75rem;
    color: #856404;
    background: #fff3cd;
    padding: 8px 12px;
    margin: 0;
    border-bottom: 1px solid #ffeeba;
}

.color-slider-group {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.color-slider-group:last-of-type {
    border-bottom: none;
}

.color-slider-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 6px;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-row input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #ddd, #ddd);
    border-radius: 3px;
    outline: none;
}

.slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #f39c12;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-row input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #f39c12;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-value {
    min-width: 35px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.color-panel-actions {
    padding: 10px 15px;
    background: #f8f9fa;
}

.reset-adjustments-btn {
    width: 100%;
    padding: 8px;
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.reset-adjustments-btn:hover {
    background: var(--medium-gray);
}

/* Floating Metadata Button */
.metadata-fab {
    position: fixed;
    bottom: 140px;
    right: 25px;
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
    transition: all var(--transition-fast);
    z-index: 999;
    font-weight: 600;
    font-size: 0.9rem;
}

.metadata-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.5);
}

.metadata-fab svg {
    flex-shrink: 0;
}

/* Floating Metadata Panel */
.metadata-panel {
    position: fixed;
    bottom: 200px;
    right: 25px;
    width: 320px;
    max-height: 70vh;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    animation: slide-up 0.3s ease-out;
}

.metadata-panel.hidden {
    display: none;
}

.metadata-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.metadata-panel-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.metadata-panel-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.metadata-panel-close:hover {
    opacity: 1;
}

.metadata-section {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.metadata-section:last-of-type {
    border-bottom: none;
}

.metadata-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metadata-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 3px 0;
}

.meta-label {
    color: var(--text-light);
    font-weight: 500;
}

.meta-value {
    color: var(--text-color);
    font-weight: 600;
    text-align: right;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metadata-note {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    margin: 8px 0 0 0;
}

.metadata-note-hidden {
    display: none;
}

/* Metadata Edit Section */
.metadata-edit-section {
    background: #f8f9fa;
}

.metadata-input-group {
    margin-bottom: 10px;
}

.metadata-input-group:last-child {
    margin-bottom: 0;
}

.metadata-input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.metadata-input-group input,
.metadata-input-group textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.85rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    resize: vertical;
}

.metadata-input-group input:focus,
.metadata-input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.1);
}

.metadata-panel-actions {
    padding: 10px 15px;
    background: #f0f0f0;
}

.metadata-warning {
    font-size: 0.75rem;
    color: #856404;
    background: #fff3cd;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    margin: 0 0 10px 0;
}

.metadata-clear-btn {
    width: 100%;
    padding: 8px;
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.metadata-clear-btn:hover {
    background: var(--medium-gray);
}

/* Before/After Compare Toggle */
.compare-toggle-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.compare-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.compare-toggle-btn:hover {
    background: var(--medium-gray);
}

.compare-toggle-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.compare-icon {
    font-size: 1.1rem;
}

/* Original preview image (for comparison) */
.original-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.original-preview.visible {
    opacity: 1;
}

.original-preview.hidden {
    display: none;
}

/* Image preview wrapper for comparison feature */
.image-preview-wrapper {
    position: relative;
}

/* Original preview should not block interactions */
.original-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    z-index: 10;
}

.visually-hidden-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Custom size section styling */
.custom-size {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eaeaea;
}

.custom-size label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 1.05rem;
    color: #2c5282; /* Deep blue color */
    letter-spacing: 0.3px;
}

.dimension-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dimension-inputs input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.dimension-inputs span {
    font-weight: bold;
    color: #666;
}

/* Aspect Ratio Quick-Select Buttons */
.aspect-ratio-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.aspect-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.aspect-btn {
    padding: 4px 10px;
    font-size: 0.8rem;
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-color);
}

.aspect-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.aspect-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Floating Feedback Button */
.feedback-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.4);
    cursor: pointer;
    z-index: 100;
    transition: all var(--transition-fast);
}

.feedback-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 111, 165, 0.5);
}

.feedback-fab svg {
    flex-shrink: 0;
}

.feedback-fab span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Feedback Modal Overlay */
.feedback-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

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

/* Feedback Modal */
.feedback-modal {
    position: relative;
    background: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

.feedback-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.feedback-modal-close:hover {
    color: #333;
}

.feedback-modal .newsletter-container {
    padding: 25px;
}
