    :root {
        --primary-color: #6c5ce7;
        --secondary-color: #5649d6;
        --accent-color: #00cec9;
        --danger-color: #ff7675;
        --success-color: #00b894;
        --warning-color: #fdcb6e;
        --light-color: #f8f9fa;
        --dark-color: #2d3436;
        --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
        --gradient-accent: linear-gradient(135deg, #00cec9 0%, #81ecec 100%);
        --gradient-danger: linear-gradient(135deg, #ff7675 0%, #fdcb6e 100%);
        --dark-bg: #121212;
        --dark-card: #1e1e1e;
        --dark-border: #333;
        --dark-text: #e0e0e0;
        --dark-secondary-text: #aaa;
    }
    
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        transition: background-color 0.3s, color 0.3s;
    }
    
    body {
        background-color: #f5f7fa;
        color: var(--dark-color);
        line-height: 1.6;
        background-image: radial-gradient(circle at 1px 1px, #e0e0e0 1px, transparent 0);
        background-size: 20px 20px;
    }
    
    body.dark-mode {
        background-color: var(--dark-bg);
        color: var(--dark-text);
        background-image: radial-gradient(circle at 1px 1px, #333 1px, transparent 0);
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    .container {
        max-width: 1400px;
        margin: 2rem auto;
        padding: 0 20px;
        animation: fadeIn 0.5s ease-out;
    }
    
    .header {
        text-align: center;
        margin-bottom: 2rem;
        position: relative;
    }
    
    .header h1 {
        font-size: 2.8rem;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 0.5rem;
        font-weight: 700;
        display: inline-block;
    }
    
    .header p {
        color: #666;
        font-size: 1.1rem;
        max-width: 700px;
        margin: 0 auto;
    }
    
    body.dark-mode .header p {
        color: var(--dark-secondary-text);
    }

    .tool-container {
        background-color: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        padding: 2.5rem;
        margin-bottom: 2rem;
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(0,0,0,0.05);
        transition: all 0.3s ease;
        width: 100%;
    }
    
    body.dark-mode .tool-container {
        background-color: var(--dark-card);
        border-color: var(--dark-border);
    }
    
    .tool-container:hover {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }
    
    .tool-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: var(--gradient-primary);
    }
    
    .upload-section {
        border: 2px dashed #ccc;
        border-radius: 12px;
        padding: 3rem 2rem;
        text-align: center;
        margin-bottom: 2rem;
        transition: all 0.3s ease;
        position: relative;
        background-color: rgba(108, 92, 231, 0.02);
        width: 100%;
    }
    
    body.dark-mode .upload-section {
        border-color: #555;
        background-color: rgba(108, 92, 231, 0.05);
    }
    
    .upload-section:hover {
        border-color: var(--primary-color);
        background-color: rgba(108, 92, 231, 0.05);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(108, 92, 231, 0.1);
    }
    
    .upload-section.active {
        border-color: var(--primary-color);
        background-color: rgba(108, 92, 231, 0.05);
        animation: pulse 1s ease;
    }
    
    .upload-icon {
        font-size: 3.5rem;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 1rem;
        transition: all 0.3s ease;
    }
    
    .upload-section:hover .upload-icon {
        transform: scale(1.1);
    }
    
    .upload-btn {
        background: var(--gradient-primary);
        color: white;
        border: none;
        padding: 14px 28px;
        border-radius: 50px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    }
    
    .upload-btn:hover {
        background: var(--gradient-primary);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    }
    
    .upload-btn:active {
        transform: translateY(1px);
    }
    
    .file-input {
        display: none;
    }
    
    .options-section {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .option-card {
        flex: 1;
        min-width: 350px;
        background: white;
        border-radius: 10px;
        padding: 1.5rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border: 1px solid rgba(0,0,0,0.05);
        transition: all 0.3s ease;
    }
    
    body.dark-mode .option-card {
        background-color: var(--dark-card);
        border-color: var(--dark-border);
    }
    
    .option-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .resize-container {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .resize-container select {
        flex: 1;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        font-size: 0.95rem;
        background-color: white;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 1em;
        cursor: pointer;
        transition: all 0.3s;
    }

    body.dark-mode .resize-container select {
        background-color: #2d2d2d;
        border-color: #444;
        color: var(--dark-text);
    }

    .resize-container select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
        outline: none;
    }

    .resize-container input[type="number"] {
        flex: 1;
        padding: 10px 12px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        font-size: 0.95rem;
        transition: all 0.3s;
    }

    body.dark-mode .resize-container input[type="number"] {
        background-color: #2d2d2d;
        border-color: #444;
        color: var(--dark-text);
    }

    .resize-container input[type="number"]:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
        outline: none;
    }

    .resize-container input[type="number"]:disabled {
        background-color: #f8f9fa;
        color: #999;
        cursor: not-allowed;
    }
    
    body.dark-mode .resize-container input[type="number"]:disabled {
        background-color: #1a1a1a;
        color: #666;
    }
    
    .resize-dimensions {
        display: none;
        gap: 12px;
        margin-top: 10px;
    }
    
    .resize-dimensions.visible {
        display: flex;
    }
    
    .dimension-input {
        flex: 1;
    }
    
    .dimension-input label {
        display: block;
        font-size: 0.8rem;
        color: #666;
        margin-bottom: 4px;
    }
    
    body.dark-mode .dimension-input label {
        color: var(--dark-secondary-text);
    }
    
    .dimension-input input {
        width: 100%;
    }
    
    .select-label {
        display: block;
        margin-bottom: 0.8rem;
        font-weight: 600;
        color: var(--dark-color);
        font-size: 0.95rem;
    }
    
    body.dark-mode .select-label {
        color: var(--dark-text);
    }
    
    .format-select {
        width: 100%;
        padding: 12px 15px;
        border-radius: 8px;
        border: 1px solid #ddd;
        font-size: 1rem;
        background-color: white;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 1em;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    body.dark-mode .format-select {
        background-color: #2d2d2d;
        border-color: #444;
        color: var(--dark-text);
    }
    
    .format-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
        outline: none;
    }
    
    .search-container {
        position: relative;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        padding: 12px 15px 12px 45px;
        border-radius: 8px;
        border: 1px solid #ddd;
        font-size: 1rem;
        background-color: white;
        transition: all 0.3s;
    }
    
    body.dark-mode .search-input {
        background-color: #2d2d2d;
        border-color: #444;
        color: var(--dark-text);
    }
    
    .search-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
        outline: none;
    }
    
    .search-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #666;
        transition: all 0.3s;
    }
    
    body.dark-mode .search-icon {
        color: var(--dark-secondary-text);
    }
    
    .search-input:focus + .search-icon {
        color: var(--primary-color);
        transform: translateY(-50%) scale(1.1);
    }
    
    .process-btn {
        background: var(--gradient-accent);
        color: white;
        border: none;
        padding: 15px 30px;
        border-radius: 50px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 4px 15px rgba(0, 206, 201, 0.3);
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .process-btn:hover {
        background: var(--gradient-accent);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 206, 201, 0.4);
    }
    
    .process-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }
    
    body.dark-mode .process-btn:disabled {
        background: #555;
    }
    
    .spinner {
        animation: spin 1s linear infinite;
    }
    
    .real-time-stats {
        display: flex;
        gap: 1rem;
        margin: 1rem 0;
        padding: 1rem;
        background: rgba(108, 92, 231, 0.1);
        border-radius: 8px;
        flex-wrap: wrap;
    }
    
    body.dark-mode .real-time-stats {
        background: rgba(108, 92, 231, 0.2);
    }
    
    .real-time-stats .stat-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.95rem;
    }
    
    .real-time-stats .stat-item i {
        color: var(--primary-color);
    }
    
    .rename-input {
        width: 100%;
        padding: 10px 12px;
        border-radius: 6px;
        border: 1px solid #ddd;
        margin-top: 5px;
    }
    
    body.dark-mode .rename-input {
        background-color: #2d2d2d;
        border-color: #444;
        color: var(--dark-text);
    }
    
    .imgsize-setting {
        width: 100%;
        padding: 10px 12px;
        border-radius: 6px;
        border: 1px solid #ddd;
        margin-top: 5px;
    }
    
    body.dark-mode .imgsize-setting {
        background-color: #2d2d2d;
        border-color: #444;
        color: var(--dark-text);
    }
    
    #imageFilter {
        width: 100%;
        padding: 10px 12px;
        border-radius: 6px;
        border: 1px solid #ddd;
        background-color: white;
    }
    
    body.dark-mode #imageFilter {
        background-color: #2d2d2d;
        border-color: #444;
        color: var(--dark-text);
    }
    
    .images-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1.5rem;
        background-color: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        display: none;
        animation: fadeIn 0.5s ease-out;
    }
    
    body.dark-mode .images-table {
        background-color: var(--dark-card);
    }
    
    .images-table.visible {
        display: table;
    }
    
    .images-table th {
        background: var(--gradient-primary);
        color: white;
        padding: 15px;
        text-align: left;
        font-weight: 500;
    }
    
    .images-table td {
        padding: 15px;
        border-bottom: 1px solid #eee;
        vertical-align: middle;
    }
    
    body.dark-mode .images-table td {
        border-bottom: 1px solid #444;
    }
    
    .images-table tr:last-child td {
        border-bottom: none;
    }
    
    .images-table tr:hover {
        background-color: rgba(108, 92, 231, 0.03);
    }
    
    body.dark-mode .images-table tr:hover {
        background-color: rgba(108, 92, 231, 0.1);
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 6px;
        transition: all 0.3s ease;
        border: 1px solid #eee;
    }
    
    body.dark-mode .thumbnail {
        border-color: #444;
    }
    
    .thumbnail.processing {
        filter: brightness(0.9);
        opacity: 0.8;
    }
    
    .file-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .file-name {
        font-weight: 500;
        max-width: 250px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .file-size {
        font-size: 0.85rem;
        color: #666;
    }
    
    body.dark-mode .file-size {
        color: var(--dark-secondary-text);
    }
    
    .action-btn {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.2rem;
        padding: 8px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        background-color: rgba(0,0,0,0.03);
    }
    
    body.dark-mode .action-btn {
        background-color: rgba(255,255,255,0.05);
    }
    
    .delete-btn {
        color: var(--danger-color);
    }
    
    .delete-btn:hover {
        background-color: rgba(255, 118, 117, 0.1);
        transform: scale(1.1);
    }
    
    .download-btn {
        color: var(--success-color);
    }
    
    .download-btn:hover {
        background-color: rgba(0, 184, 148, 0.1);
        transform: scale(1.1);
    }
    
    .progress-container {
        width: 100%;
        background-color: #e9ecef;
        border-radius: 50px;
        height: 8px;
        overflow: hidden;
    }
    
    body.dark-mode .progress-container {
        background-color: #333;
    }
    
    .progress-bar {
        height: 100%;
        background: var(--gradient-accent);
        width: 0%;
        transition: width 0.3s ease;
    }
    
    .status {
        font-size: 0.85rem;
        color: #666;
        margin-top: 5px;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    body.dark-mode .status {
        color: var(--dark-secondary-text);
    }
    
    .status.completed {
        color: var(--success-color);
        font-weight: 500;
    }
    
    .status.processing {
        color: var(--accent-color);
        font-weight: 500;
    }
    
    .status.error {
        color: var(--danger-color);
        font-weight: 500;
    }
    
    .batch-actions {
        display: none;
        justify-content: space-between;
        gap: 1rem;
        margin-top: 1.5rem;
        animation: fadeIn 0.5s ease-out;
        flex-wrap: wrap;
    }
    
    .batch-actions.visible {
        display: flex;
    }
    
    .batch-right-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .batch-btn {
        padding: 12px 24px;
        border-radius: 50px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 0.95rem;
        border: none;
    }
    
    .download-all-btn {
        background: var(--gradient-primary);
        color: white;
        box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    }
    
    .download-all-btn:hover {
        background: var(--gradient-primary);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    }
    
    .share-all-btn {
        background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
        color: white;
        box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
    }
    
    .share-all-btn:hover {
        background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
    }
    
    .clear-all-btn {
        background-color: white;
        color: var(--danger-color);
        border: 1px solid var(--danger-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    body.dark-mode .clear-all-btn {
        background-color: var(--dark-card);
    }
    
    .clear-all-btn:hover {
        background-color: rgba(255, 118, 117, 0.1);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 118, 117, 0.1);
    }
    
    .no-files {
        text-align: center;
        padding: 3rem;
        color: #666;
    }
    
    body.dark-mode .no-files {
        color: var(--dark-secondary-text);
    }
    
    .drag-text {
        margin-bottom: 1rem;
        font-size: 1.2rem;
        color: #666;
    }
    
    body.dark-mode .drag-text {
        color: var(--dark-secondary-text);
    }
    
    .supported-formats {
        font-size: 0.9rem;
        color: #666;
        margin-top: 1rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    body.dark-mode .supported-formats {
        color: var(--dark-secondary-text);
    }
    
    .format-tag {
        background-color: rgba(108, 92, 231, 0.1);
        color: var(--primary-color);
        padding: 4px 10px;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 500;
    }
    
    body.dark-mode .format-tag {
        background-color: rgba(108, 92, 231, 0.2);
    }
    
    .advanced-options {
        margin-top: 2rem;
        padding: 1.5rem;
        background-color: rgba(0, 206, 201, 0.05);
        border-radius: 10px;
        border: 1px dashed var(--accent-color);
        display: none;
    }
    
    body.dark-mode .advanced-options {
        background-color: rgba(0, 206, 201, 0.1);
    }
    
    .advanced-options.visible {
        display: block;
        animation: fadeIn 0.5s ease-out;
    }
    
    .advanced-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
        cursor: pointer;
    }
    
    .advanced-title h3 {
        color: var(--accent-color);
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .toggle-advanced {
        background: none;
        border: none;
        color: var(--accent-color);
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .toggle-advanced:hover {
        transform: rotate(90deg);
    }
    
    .option-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .option-item {
        display: flex;
        flex-direction: column;
    }
    
    .option-item label {
        font-size: 0.9rem;
        margin-bottom: 8px;
        color: #555;
        font-weight: 500;
    }
    
    body.dark-mode .option-item label {
        color: var(--dark-secondary-text);
    }
    
    .option-item input[type="range"] {
        width: 100%;
        height: 6px;
        border-radius: 3px;
        background: #ddd;
        outline: none;
        -webkit-appearance: none;
    }
    
    body.dark-mode .option-item input[type="range"] {
        background: #555;
    }
    
    .option-item input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--primary-color);
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    
    .option-item select, .option-item input[type="number"] {
        padding: 10px 12px;
        border-radius: 6px;
        border: 1px solid #ddd;
        font-size: 0.9rem;
        background-color: white;
    }
    
    body.dark-mode .option-item select,
    body.dark-mode .option-item input[type="number"] {
        background-color: #2d2d2d;
        border-color: #444;
        color: var(--dark-text);
    }
    
    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 24px;
    }
    
    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 24px;
    }
    
    body.dark-mode .slider {
        background-color: #555;
    }
    
    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }
    
    input:checked + .slider {
        background-color: var(--primary-color);
    }
    
    input:checked + .slider:before {
        transform: translateX(26px);
    }
    
    .preview-container {
        display: none;
        margin-top: 2rem;
        background-color: white;
        border-radius: 10px;
        padding: 1.5rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        animation: fadeIn 0.5s ease-out;
    }
    
    body.dark-mode .preview-container {
        background-color: var(--dark-card);
    }
    
    .preview-container.visible {
        display: block;
    }
    
    .preview-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        color: var(--primary-color);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .preview-comparison {
        display: flex;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    @media (max-width: 768px) {
        .preview-comparison {
            flex-direction: column;
        }
    }
    
    .preview-box {
        flex: 1;
        text-align: center;
    }
    
    .preview-box img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        margin-bottom: 0.5rem;
    }
    
    .preview-label {
        font-size: 0.9rem;
        color: #666;
        font-weight: 500;
    }
    
    body.dark-mode .preview-label {
        color: var(--dark-secondary-text);
    }
    
    .stats-container {
        display: flex;
        justify-content: space-around;
        margin-top: 1rem;
        padding: 1rem;
        background-color: rgba(108, 92, 231, 0.05);
        border-radius: 8px;
    }
    
    body.dark-mode .stats-container {
        background-color: rgba(108, 92, 231, 0.1);
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-value {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--primary-color);
    }
    
    .stat-label {
        font-size: 0.8rem;
        color: #666;
    }
    
    body.dark-mode .stat-label {
        color: var(--dark-secondary-text);
    }
    
    .limit-notice {
        display: none;
        position: fixed;
        top: 20px;
        right: 20px;
        background-color: var(--danger-color);
        color: white;
        padding: 15px 20px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(255, 118, 117, 0.3);
        z-index: 1000;
        animation: slideIn 0.3s ease-out;
        max-width: 300px;
    }
    
    @keyframes slideIn {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }
    
    .limit-notice.visible {
        display: block;
        animation: slideIn 0.3s ease-out;
    }
    
    .close-notice {
        position: absolute;
        top: 5px;
        right: 5px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        font-size: 0.8rem;
    }
    
    .file-counter {
        position: absolute;
        top: -10px;
        right: -10px;
        background-color: var(--danger-color);
        color: white;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .watermark-preview {
        margin-top: 1rem;
        padding: 1rem;
        background-color: rgba(0,0,0,0.05);
        border-radius: 8px;
        display: none;
    }
    
    body.dark-mode .watermark-preview {
        background-color: rgba(255,255,255,0.05);
    }
    
    .watermark-preview.visible {
        display: block;
    }
    
    .watermark-preview-image {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
        margin-top: 10px;
        border: 1px solid #eee;
    }
    
    body.dark-mode .watermark-preview-image {
        border-color: #444;
    }
    
    .features-section {
        margin: 3rem 0;
        padding: 2rem 0;
        background-color: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
    
    body.dark-mode .features-section {
        background-color: var(--dark-card);
    }
    
    .features-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .section-title {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 0.5rem;
        font-weight: 700;
    }
    
    .section-title p {
        color: #666;
        font-size: 1.1rem;
        max-width: 700px;
        margin: 0 auto;
    }
    
    body.dark-mode .section-title p {
        color: var(--dark-secondary-text);
    }
    
    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .feature-card {
        background: white;
        border-radius: 10px;
        padding: 2rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
        border: 1px solid rgba(0,0,0,0.05);
        text-align: center;
    }
    
    body.dark-mode .feature-card {
        background-color: var(--dark-card);
        border-color: var(--dark-border);
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .feature-icon {
        font-size: 2.5rem;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 1.5rem;
        display: inline-block;
    }
    
    .feature-card h3 {
        color: var(--dark-color);
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }
    
    body.dark-mode .feature-card h3 {
        color: var(--dark-text);
    }
    
    .feature-card p {
        color: #666;
        font-size: 0.95rem;
    }
    
    body.dark-mode .feature-card p {
        color: var(--dark-secondary-text);
    }
    
    .testimonials-section {
        margin: 3rem 0;
        padding: 2rem 0;
        background-color: rgba(108, 92, 231, 0.05);
        border-radius: 15px;
    }
    
    body.dark-mode .testimonials-section {
        background-color: rgba(108, 92, 231, 0.1);
    }
    
    .testimonials-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .testimonial-card {
        background: white;
        border-radius: 10px;
        padding: 2rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
        border: 1px solid rgba(0,0,0,0.05);
        position: relative;
    }
    
    body.dark-mode .testimonial-card {
        background-color: var(--dark-card);
        border-color: var(--dark-border);
    }
    
    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .testimonial-quote {
        font-size: 1.1rem;
        color: var(--dark-color);
        margin-bottom: 1.5rem;
        font-style: italic;
        position: relative;
    }
    
    body.dark-mode .testimonial-quote {
        color: var(--dark-text);
    }
    
    .testimonial-quote::before {
        content: '"';
        font-size: 3rem;
        color: rgba(108, 92, 231, 0.1);
        position: absolute;
        top: -20px;
        left: -15px;
        font-family: Georgia, serif;
    }
    
    .testimonial-author {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--primary-color);
    }
    
    .author-info h4 {
        color: var(--dark-color);
        margin-bottom: 0.2rem;
    }
    
    body.dark-mode .author-info h4 {
        color: var(--dark-text);
    }
    
    .author-info p {
        color: #666;
        font-size: 0.85rem;
    }
    
    body.dark-mode .author-info p {
        color: var(--dark-secondary-text);
    }
    
    .rating {
        color: var(--warning-color);
        margin-top: 0.5rem;
    }
    
    .stats-section {
        margin: 3rem 0;
        padding: 3rem 0;
        background: var(--gradient-primary);
        color: white;
        border-radius: 15px;
    }

    body.dark-mode .stats-section {
        background: var(--dark-card);
        color: var(--dark-text);
    }
           
    .stats-section .stats-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        text-align: center;
    }
    
    .stats-section .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }
    
    .stats-section .stat-label {
        font-size: 1.1rem;
        opacity: 0.9;
        color:#fff;
    }
    
    body.dark-mode .stats-section .stat-label {
        color: var(--dark-text);
    }
    
    .privacy-notice {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: #fff;
        padding: 15px 20px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        max-width: 90%;
        width: 500px;
        z-index: 1000;
        display: none;
        border-left: 4px solid var(--primary-color);
    }

    body.dark-mode .privacy-notice {
        background: var(--dark-card);
    }

    .privacy-notice.visible {
        display: block;
        animation: slideUp 0.5s ease-out;
    }

    .privacy-notice-content {
        position: relative;
    }

    .close-privacy-notice {
        position: absolute;
        top: -10px;
        right: -10px;
        background: #fff;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        cursor: pointer;
        color: #666;
    }

    body.dark-mode .close-privacy-notice {
        background: var(--dark-card);
        color: var(--dark-text);
    }

    .privacy-notice h3 {
        margin-top: 0;
        color: var(--primary-color);
    }

    .privacy-notice p {
        margin-bottom: 10px;
        font-size: 14px;
    }

    body.dark-mode .privacy-notice p {
        color: var(--dark-secondary-text);
    }

    .privacy-notice-actions {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }

    .privacy-btn {
        padding: 8px 15px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 500;
    }

    .privacy-accept {
        background-color: var(--primary-color);
        color: white;
    }

    .privacy-learn-more {
        background-color: transparent;
        color: var(--primary-color);
        border: 1px solid var(--primary-color);
    }

    body.dark-mode .privacy-learn-more {
        color: var(--dark-text);
        border-color: var(--primary-color);
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
    
    .toast {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: var(--primary-color);
        color: white;
        padding: 15px 20px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 1000;
        display: flex;
        align-items: center;
        gap: 10px;
        transform: translateY(100px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .toast.visible {
        transform: translateY(0);
        opacity: 1;
    }
    
    .toast.success {
        background: var(--gradient-primary);
    }
    
    .toast.error {
        background: var(--gradient-danger);
    }
    
    .toast.info {
        background: var(--gradient-accent);
    }
    
    @media (max-width: 992px) {
        .header h1 {
            font-size: 2.5rem;
        }
        
        .tool-container {
            padding: 1.5rem;
        }
        
        .preview-comparison {
            flex-direction: column;
        }
        
        .features-grid, .testimonials-grid {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        }
    }
    
    @media (max-width: 768px) {
        .header h1 {
            font-size: 2rem;
        }
        
        .upload-btn, .process-btn {
            padding: 12px 20px;
            font-size: 1rem;
        }
        
        .option-card {
            min-width: 100%;
        }
        
        .resize-container {
            flex-direction: column;
            align-items: stretch;
        }
        
        .resize-dimensions {
            flex-direction: column;
        }
        
        .images-table {
            display: block;
            width: 100%;
            overflow-x: auto;
        }
        
        .images-table thead {
            display: none;
        }
        
        .images-table tr {
            display: block;
            margin-bottom: 15px;
            border-bottom: 2px solid #eee;
        }
        
        body.dark-mode .images-table tr {
            border-bottom: 2px solid #444;
        }
        
        .images-table td {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            text-align: right;
            border-bottom: 1px solid #eee;
        }
        
        body.dark-mode .images-table td {
            border-bottom: 1px solid #444;
        }
        
        .images-table td::before {
            content: attr(data-label);
            font-weight: bold;
            margin-right: 10px;
            text-align: left;
        }
        
        .images-table td:last-child {
            border-bottom: 0;
        }
        
        .features-grid, .testimonials-grid {
            grid-template-columns: 1fr;
        }
        
        .privacy-notice {
            padding: 1rem;
        }
        
        .close-privacy-notice {
            top: -5px;
            right: -5px;
            width: 25px;
            height: 25px;
            font-size: 0.8rem;
        }
        
        .privacy-notice-actions {
            flex-direction: column;
        }
        
        .privacy-btn {
            width: 100%;
            text-align: center;
        }
    }
    /* Clean Layout Styling for ImageResizer1 Footer */
.site-footer {
    width: 100%;
    padding: 20px 0;
    margin-top: 50px;
    background-color: #f8f9fa; /* Matches standard light backgrounds, change to match your theme */
    border-top: 1px solid #e9ecef;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.footer-home-link {
    color: #007bff; /* Change to your template's main brand color */
    text-decoration: none;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-links a {
    font-size: 14px;
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #007bff; /* Highlight effect matching your color scheme */
}

/* Mobile Responsive Optimization */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
/* Custom Header Navigation Button */
.nav-button-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.header-nav-btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.header-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
}

.header-nav-btn:active {
    transform: translateY(0);
}

