/* Share Image Generator Page Styles */

/* Custom Font Declarations */
/* English and European Fonts */
@font-face {
    font-family: 'Roboto';
    src: url('/wp-content/font/Roboto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('/wp-content/font/Open-Sans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lato';
    src: url('/wp-content/font/Lato-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/wp-content/font/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/font/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito Sans';
    src: url('/wp-content/font/Nunito-Sans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Merriweather';
    src: url('/wp-content/font/Merriweather-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Sans';
    src: url('/wp-content/font/PT-Sans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('/wp-content/font/Source-Sans-Pro-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('/wp-content/font/Raleway-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('/wp-content/font/Oswald-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/wp-content/font/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('/wp-content/font/Noto-Sans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Arabic Fonts */
@font-face {
    font-family: 'Noto Sans Arabic';
    src: url('/wp-content/font/Noto-Sans-Arabic-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('/wp-content/font/Cairo-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Almarai';
    src: url('/wp-content/font/Almarai-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('/wp-content/font/Tajawal-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Changa';
    src: url('/wp-content/font/Changa-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Amiri';
    src: url('/wp-content/font/Amiri-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lalezar';
    src: url('/wp-content/font/Lalezar-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Markazi Text';
    src: url('/wp-content/font/Markazi-Text-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Scheherazade New';
    src: url('/wp-content/font/Scheherazade-New-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'El Messiri';
    src: url('/wp-content/font/El-Messiri-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mada';
    src: url('/wp-content/font/Mada-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Katibeh';
    src: url('/wp-content/font/Katibeh-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Chinese Fonts */
@font-face {
    font-family: 'Noto Sans SC';
    src: url('/wp-content/font/Noto-Sans-SC-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans TC';
    src: url('/wp-content/font/Noto-Sans-TC-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans HK';
    src: url('/wp-content/font/Noto-Sans-HK-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ma Shan Zheng';
    src: url('/wp-content/font/Ma-Shan-Zheng-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ZCOOL XiaoWei';
    src: url('/wp-content/font/ZCOOL-XiaoWei-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Long Cang';
    src: url('/wp-content/font/Long-Cang-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zhi Mang Xing';
    src: url('/wp-content/font/Zhi-Mang-Xing-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Liu Jian Mao Cao';
    src: url('/wp-content/font/Liu-Jian-Mao-Cao-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ZCOOL KuaiLe';
    src: url('/wp-content/font/ZCOOL-KuaiLe-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Japanese Fonts */
@font-face {
    font-family: 'Noto Sans JP';
    src: url('/wp-content/font/Noto-Sans-JP-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'M PLUS 1p';
    src: url('/wp-content/font/M-PLUS-1p-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sawarabi Gothic';
    src: url('/wp-content/font/Sawarabi-Gothic-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kosugi Maru';
    src: url('/wp-content/font/Kosugi-Maru-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Shippori Mincho';
    src: url('/wp-content/font/Shippori-Mincho-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yusei Magic';
    src: url('/wp-content/font/Yusei-Magic-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DotGothic16';
    src: url('/wp-content/font/DotGothic16-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kaisei Tokumin';
    src: url('/wp-content/font/Kaisei-Tokumin-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hachi Maru Pop';
    src: url('/wp-content/font/Hachi-Maru-Pop-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Reggae One';
    src: url('/wp-content/font/Reggae-One-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stick';
    src: url('/wp-content/font/Stick-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Korean Fonts */
@font-face {
    font-family: 'Noto Sans KR';
    src: url('/wp-content/font/Noto-Sans-KR-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nanum Gothic';
    src: url('/wp-content/font/Nanum-Gothic-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gothic A1';
    src: url('/wp-content/font/Gothic-A1-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Do Hyeon';
    src: url('/wp-content/font/Do-Hyeon-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jua';
    src: url('/wp-content/font/Jua-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Black Han Sans';
    src: url('/wp-content/font/Black-Han-Sans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gaegu';
    src: url('/wp-content/font/Gaegu-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yeon Sung';
    src: url('/wp-content/font/Yeon-Sung-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Stylish';
    src: url('/wp-content/font/Stylish-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dokdo';
    src: url('/wp-content/font/Dokdo-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Thai Fonts */
@font-face {
    font-family: 'Noto Sans Thai';
    src: url('/wp-content/font/Noto-Sans-Thai-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sarabun';
    src: url('/wp-content/font/Sarabun-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kanit';
    src: url('/wp-content/font/Kanit-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Prompt';
    src: url('/wp-content/font/Prompt-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mitr';
    src: url('/wp-content/font/Mitr-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Chakra Petch';
    src: url('/wp-content/font/Chakra-Petch-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Taviraj';
    src: url('/wp-content/font/Taviraj-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pridi';
    src: url('/wp-content/font/Pridi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bai Jamjuree';
    src: url('/wp-content/font/Bai-Jamjuree-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'K2D';
    src: url('/wp-content/font/K2D-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sriracha';
    src: url('/wp-content/font/Sriracha-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Athiti';
    src: url('/wp-content/font/Athiti-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Hindi and Devanagari Fonts */
@font-face {
    font-family: 'Noto Sans Devanagari';
    src: url('/wp-content/font/Noto-Sans-Devanagari-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Teko';
    src: url('/wp-content/font/Teko-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hind';
    src: url('/wp-content/font/Hind-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mukta';
    src: url('/wp-content/font/Mukta-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baloo 2';
    src: url('/wp-content/font/Baloo-2-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rajdhani';
    src: url('/wp-content/font/Rajdhani-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Khand';
    src: url('/wp-content/font/Khand-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yatra One';
    src: url('/wp-content/font/Yatra-One-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Amita';
    src: url('/wp-content/font/Amita-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Bengali Fonts */
@font-face {
    font-family: 'Noto Sans Bengali';
    src: url('/wp-content/font/Noto-Sans-Bengali-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hind Siliguri';
    src: url('/wp-content/font/Hind-Siliguri-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baloo Da 2';
    src: url('/wp-content/font/Baloo-Da-2-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Galada';
    src: url('/wp-content/font/Galada-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mina';
    src: url('/wp-content/font/Mina-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Atma';
    src: url('/wp-content/font/Atma-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tiro Bangla';
    src: url('/wp-content/font/Tiro-Bangla-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Anek Bangla';
    src: url('/wp-content/font/Anek-Bangla-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lohit Bengali';
    src: url('/wp-content/font/Lohit-Bengali-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Tamil Fonts */
@font-face {
    font-family: 'Noto Sans Tamil';
    src: url('/wp-content/font/Noto-Sans-Tamil-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baloo Chettan 2';
    src: url('/wp-content/font/Baloo-Chettan-2-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hind Madurai';
    src: url('/wp-content/font/Hind-Madurai-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pavanam';
    src: url('/wp-content/font/Pavanam-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Catamaran';
    src: url('/wp-content/font/Catamaran-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Meera Inimai';
    src: url('/wp-content/font/Meera-Inimai-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Arima Madurai';
    src: url('/wp-content/font/Arima-Madurai-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kavivanar';
    src: url('/wp-content/font/Kavivanar-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sirin Stencil';
    src: url('/wp-content/font/Sirin-Stencil-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kdam Thmor Pro';
    src: url('/wp-content/font/Kdam-Thmor-Pro-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Telugu Fonts */
@font-face {
    font-family: 'Noto Sans Telugu';
    src: url('/wp-content/font/Noto-Sans-Telugu-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hind Guntur';
    src: url('/wp-content/font/Hind-Guntur-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ramabhadra';
    src: url('/wp-content/font/Ramabhadra-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Suranna';
    src: url('/wp-content/font/Suranna-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tenali Ramakrishna';
    src: url('/wp-content/font/Tenali-Ramakrishna-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dhurjati';
    src: url('/wp-content/font/Dhurjati-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peddana';
    src: url('/wp-content/font/Peddana-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Suravaram';
    src: url('/wp-content/font/Suravaram-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gidugu';
    src: url('/wp-content/font/Gidugu-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mandali';
    src: url('/wp-content/font/Mandali-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Timmana';
    src: url('/wp-content/font/Timmana-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Kannada Fonts */
@font-face {
    font-family: 'Noto Sans Kannada';
    src: url('/wp-content/font/Noto-Sans-Kannada-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baloo Tamma 2';
    src: url('/wp-content/font/Baloo-Tamma-2-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mallanna';
    src: url('/wp-content/font/Mallanna-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hind Mysuru';
    src: url('/wp-content/font/Hind-Mysuru-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kolar';
    src: url('/wp-content/font/Kolar-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Akshar';
    src: url('/wp-content/font/Akshar-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tiro Kannada';
    src: url('/wp-content/font/Tiro-Kannada-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kantumruy Pro';
    src: url('/wp-content/font/Kantumruy-Pro-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Serif Kannada';
    src: url('/wp-content/font/Noto-Serif-Kannada-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Malayalam Fonts */
@font-face {
    font-family: 'Noto Sans Malayalam';
    src: url('/wp-content/font/Noto-Sans-Malayalam-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manjari';
    src: url('/wp-content/font/Manjari-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Chilanka';
    src: url('/wp-content/font/Chilanka-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gayathri';
    src: url('/wp-content/font/Gayathri-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rasa';
    src: url('/wp-content/font/Rasa-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Gujarati Fonts */
@font-face {
    font-family: 'Noto Sans Gujarati';
    src: url('/wp-content/font/Noto-Sans-Gujarati-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hind Vadodara';
    src: url('/wp-content/font/Hind-Vadodara-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baloo Bhai 2';
    src: url('/wp-content/font/Baloo-Bhai-2-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mukta Vaani';
    src: url('/wp-content/font/Mukta-Vaani-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Anek Gujarati';
    src: url('/wp-content/font/Anek-Gujarati-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Shrikhand';
    src: url('/wp-content/font/Shrikhand-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Farsan';
    src: url('/wp-content/font/Farsan-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kadwa';
    src: url('/wp-content/font/Kadwa-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Glegoo';
    src: url('/wp-content/font/Glegoo-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mogra';
    src: url('/wp-content/font/Mogra-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Punjabi Fonts */
@font-face {
    font-family: 'Noto Sans Gurmukhi';
    src: url('/wp-content/font/Noto-Sans-Gurmukhi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Baloo Paaji 2';
    src: url('/wp-content/font/Baloo-Paaji-2-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mukta Mahee';
    src: url('/wp-content/font/Mukta-Mahee-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tiro Gurmukhi';
    src: url('/wp-content/font/Tiro-Gurmukhi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Anek Gurmukhi';
    src: url('/wp-content/font/Anek-Gurmukhi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Serif Gurmukhi';
    src: url('/wp-content/font/Noto-Serif-Gurmukhi-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Marathi Fonts */
@font-face {
    font-family: 'Laila';
    src: url('/wp-content/font/Laila-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sura';
    src: url('/wp-content/font/Sura-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yantramanav';
    src: url('/wp-content/font/Yantramanav-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Eczar';
    src: url('/wp-content/font/Eczar-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Urdu Fonts */
@font-face {
    font-family: 'Noto Nastaliq Urdu';
    src: url('/wp-content/font/Noto-Nastaliq-Urdu-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lateef';
    src: url('/wp-content/font/Lateef-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Amharic Fonts */
@font-face {
    font-family: 'Noto Sans Ethiopic';
    src: url('/wp-content/font/Noto-Sans-Ethiopic-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Abyssinica SIL';
    src: url('/wp-content/font/Abyssinica-SIL-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Armenian Fonts */
@font-face {
    font-family: 'Noto Sans Armenian';
    src: url('/wp-content/font/Noto-Sans-Armenian-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Georgian Fonts */
@font-face {
    font-family: 'Noto Sans Georgian';
    src: url('/wp-content/font/Noto-Sans-Georgian-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Mongolian Fonts */
@font-face {
    font-family: 'Noto Sans Mongolian';
    src: url('/wp-content/font/Noto-Sans-Mongolian-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Myanmar Fonts */
@font-face {
    font-family: 'Noto Sans Myanmar';
    src: url('/wp-content/font/Noto-Sans-Myanmar-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Padauk';
    src: url('/wp-content/font/Padauk-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Legacy Fonts (for backward compatibility) */
@font-face {
    font-family: 'GoNotoKurrent';
    src: url('/wp-content/font/GoNotoKurrent-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenSans';
    src: url('/wp-content/font/Open-Sans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.share-page-container {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    font-family: 'GoNotoKurrent', sans-serif;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #333333;
    margin-left: 254px;
    width: calc(100vw - 254px);
}

/* When sidebar is collapsed, center the container and use full width */
.sidebar-collapsed .share-page-container {
    margin-left: 0;
    width: 100vw;
    max-width: none;
}

/* Ensure proper behavior on larger screens */
@media (min-width: 769px) {
    /* When sidebar is open, account for sidebar width */
    .share-page-container {
        margin-left: 254px;
        width: calc(100vw - 254px);
    }
    
    /* When sidebar is collapsed, use full width */
    .sidebar-collapsed .share-page-container {
        margin-left: 0;
        width: 100vw;
    }
}

.share-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.share-page-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Header Download Button */
.btn-header {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 120px;
}

.btn-header:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-header:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.btn-header .btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-header.loading .btn-text {
    display: none;
}

.btn-header.loading .btn-loading {
    display: flex;
}

/* Error Container */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.error-message {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
}

.error-message h2 {
    color: #e74c3c;
    margin-bottom: 16px;
}

.error-message p {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Main Editor Layout */
.share-editor-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    min-height: 600px;
}

/* Canvas Section */
.canvas-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.canvas-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    max-height: 80vh;
    /* Limit container height */
    overflow-y: auto;
    /* Allow vertical scrolling */
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align to top instead of center */
}

.preview-canvas {
    width: 100%;
    height: auto;
    min-width: 300px;
    min-height: 400px;
    max-width: 100%;
    max-height: none;
    /* Remove height limit to allow full content display */
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: transparent; /* Make background transparent */
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Completely hidden until rendered */
}

.preview-canvas.rendered {
    opacity: 1; /* Show when rendered */
    visibility: visible; /* Make visible when rendered */
}

.preview-canvas.updating {
    opacity: 0.8;
    transform: scale(0.995);
}

.preview-canvas:hover {
    border-color: #667eea;
    cursor: grab;
}

.preview-canvas:active {
    cursor: grabbing;
}

.canvas-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    min-width: 250px;
    animation: fadeInScale 0.3s ease-out, loadingPulse 2s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: block; /* Always show by default */
    z-index: 1000; /* Ensure it's above the canvas */
}

.canvas-loading p {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Loading Progress Bar */
.loading-progress {
    margin-top: 15px;
}

.progress-bar {
    width: 150px;
    height: 6px;
    background: #e1e5e9;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressShimmer 2s infinite;
}

#progress-text {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Canvas Status Indicator */
.canvas-status {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #764ba2;
    animation: pulse 2s infinite;
}

.status-indicator.rendering .status-dot {
    background: #f39c12;
    animation: spin 1s linear infinite;
}

.status-indicator.error .status-dot {
    background: #e74c3c;
    animation: none;
}

/* Global Loading Overlay */
.global-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease-out;
}

.loading-content h3 {
    margin: 20px 0 10px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.loading-content p {
    margin: 0 0 30px 0;
    color: #666;
    line-height: 1.5;
}

/* Loading Steps */
.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.step.active {
    background: #e3f2fd;
    opacity: 1;
    transform: translateX(5px);
}

.step.completed {
    background: #d5f4e6;
    opacity: 1;
}

.step.completed .step-icon {
    filter: grayscale(0);
}

.step-icon {
    font-size: 1.2rem;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.step.active .step-icon {
    filter: grayscale(0);
    animation: bounce 1s infinite;
}

.step-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Enhanced Loading Spinner */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid transparent;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-spinner.large {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

/* Enhanced Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes progressShimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: 200px 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

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

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loadingPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    }
}

/* Controls Section */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.control-panel h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.control-group {
    margin-bottom: 20px;
}

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

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
    font-size: 0.9rem;
}

/* Form Controls */
.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 8px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.font-selector,
.alignment-selector,
.dimension-selector {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.font-selector:focus,
.alignment-selector:focus,
.dimension-selector:focus {
    outline: none;
    border-color: #667eea;
}

.color-picker {
    width: 100%;
    height: 40px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.custom-dimensions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: end;
}

.custom-dimensions input {
    padding: 8px 10px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 0.9rem;
}

.custom-dimensions input:focus {
    outline: none;
    border-color: #667eea;
}

/* Value Display */
#font-size-value,
#padding-value {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Font Loading Indicator */
.font-loading {
    font-size: 0.8rem;
    color: #667eea;
    font-style: italic;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.font-loading::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Font selector improvements */
.font-selector optgroup {
    font-weight: bold;
    color: #2c3e50;
}

.font-selector option {
    font-weight: normal;
    padding: 4px 8px;
}

.dark-mode .font-selector optgroup {
    color: #ecf0f1;
}

/* Google Fonts preview in dropdown */
.font-selector option[data-google-font="true"] {
    font-style: italic;
}

.font-selector option[data-google-font="true"]::after {
    content: " (Google Font)";
    font-size: 0.8em;
    color: #666;
}

/* Enhanced Color Controls */
.color-control {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.color-hex-input {
    flex: 1;
    padding: 6px 8px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.color-hex-input:focus {
    outline: none;
    border-color: #667eea;
}

.color-presets {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.color-preset {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-preset:hover {
    transform: scale(1.1);
    border-color: #667eea;
}

.color-preset:active {
    transform: scale(0.95);
}

.color-preset[data-color="#ffffff"] {
    border-color: #ccc;
}

.color-preset.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

/* Enhanced Dimension Controls */
.dimension-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.dimension-input-group {
    display: flex;
    flex-direction: column;
}

.dimension-input-group label {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.dimension-input-group input {
    padding: 8px 10px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 0.9rem;
}

.dimension-input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.aspect-ratio-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.aspect-ratio-btn {
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aspect-ratio-btn:hover {
    border-color: #667eea;
    background: #f0f8ff;
}

.aspect-ratio-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.aspect-ratio-display {
    font-family: monospace;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Font Weight Selector */
.font-weight-selector {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.font-weight-selector:focus {
    outline: none;
    border-color: #667eea;
}

/* Background Type Controls */
.background-type-selector {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.background-type-selector:focus {
    outline: none;
    border-color: #667eea;
}

.gradient-direction-selector {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.gradient-direction-selector:focus {
    outline: none;
    border-color: #667eea;
}

/* Font Style Selector */
.font-style-selector {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.font-style-selector:focus {
    outline: none;
    border-color: #667eea;
}

/* Vertical Alignment Selector */
.vertical-align-selector {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.vertical-align-selector:focus {
    outline: none;
    border-color: #667eea;
}

/* Text Shadow Controls */
.text-shadow-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.shadow-checkbox,
.border-checkbox {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    background: white;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.shadow-checkbox:checked+.checkbox-custom,
.border-checkbox:checked+.checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.shadow-checkbox:checked+.checkbox-custom::after,
.border-checkbox:checked+.checkbox-custom::after {
    opacity: 1;
}

.shadow-options,
.border-options {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #e1e5e9;
    margin-top: 8px;
}

.shadow-control-row,
.border-control-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.shadow-control-row:last-child,
.border-control-row:last-child {
    margin-bottom: 0;
}

.shadow-control-row label,
.border-control-row label {
    min-width: 60px;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0;
}

.slider.small {
    flex: 1;
    height: 4px;
}

.slider.small::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
}

.slider.small::-moz-range-thumb {
    width: 16px;
    height: 16px;
}

.color-picker.small {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.shadow-control-row span,
.border-control-row span {
    min-width: 35px;
    font-size: 0.8rem;
    color: #666;
    font-family: monospace;
}

/* Border Controls */
.border-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.border-options {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #e1e5e9;
    margin-top: 8px;
}

/* Enhanced Control Groups */
.control-group {
    position: relative;
}

.control-group.advanced {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    background: #fafbfc;
}

.control-group.advanced>label:first-child {
    background: #fafbfc;
    padding: 0 8px;
    position: absolute;
    top: -10px;
    left: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Responsive adjustments for styling controls */
@media (max-width: 768px) {

    .shadow-control-row,
    .border-control-row {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .shadow-control-row label,
    .border-control-row label {
        min-width: auto;
    }

    .shadow-options,
    .border-options {
        padding: 8px;
    }
}

/* Save Section */
.save-section {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Download Options */
.download-options {
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
}

.download-options h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.download-options h4 {
    margin: 20px 0 12px 0;
    color: #34495e;
    font-size: 1rem;
    font-weight: 500;
}

.download-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.download-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-control-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 4px;
}

.download-format-selector {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.download-format-selector:focus {
    outline: none;
    border-color: #667eea;
}

.filename-input {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.filename-input:focus {
    outline: none;
    border-color: #667eea;
}

#quality-value {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    text-align: center;
}

/* Download Presets */
.download-presets {
    margin-top: 20px;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.preset-btn:hover {
    border-color: #667eea;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.preset-btn.active {
    border-color: #667eea;
    background: #e3f2fd;
}

.preset-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.preset-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.preset-desc {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.3;
}

/* Download Feedback */
.download-feedback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.error-message {
    color: #e74c3c;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fdf2f2;
    border-radius: 6px;
    border: 1px solid #e74c3c;
}

.info-message {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .download-controls {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }

    .preset-buttons {
        grid-template-columns: 1fr;
    }

    .preset-btn {
        padding: 12px;
    }

    .download-options h3 {
        font-size: 1.1rem;
    }
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    min-width: 200px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Loading Spinner */
.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Success Message */
.success-message {
    color: #27ae60;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #d5f4e6;
    border-radius: 6px;
    border: 1px solid #27ae60;
}

/* Performance Monitor */
.performance-monitor {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    font-size: 0.8rem;
    color: #666;
}

.performance-stats {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.performance-stats span {
    padding: 4px 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: monospace;
}

/* Debug mode styles */
.debug-mode .performance-monitor {
    display: block !important;
}

.debug-mode .preview-canvas {
    border-color: #f39c12;
}

.debug-mode .canvas-container::after {
    content: 'DEBUG MODE';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f39c12;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Error Handling Styles */
.initialization-error,
.critical-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.critical-error {
    border: 2px solid #e74c3c;
    background: #fdf2f2;
}

.initialization-error {
    border: 2px solid #f39c12;
    background: #fef9e7;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.initialization-error h2,
.critical-error h1 {
    color: #2c3e50;
    margin-bottom: 16px;
    font-weight: 600;
}

.error-message {
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.error-suggestions {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
    max-width: 500px;
    border: 1px solid #e1e5e9;
}

.error-suggestions h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1rem;
}

.error-suggestions ul {
    margin: 0;
    padding-left: 20px;
}

.error-suggestions li {
    margin-bottom: 8px;
    color: #34495e;
    line-height: 1.4;
}

.error-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: auto;
}

/* Render Error Styles */
.render-error {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-width: 90%;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.render-error .error-icon {
    font-size: 1.2rem;
    margin: 0;
}

.render-error .error-text {
    color: #856404;
    font-weight: 500;
    flex: 1;
}

.render-error .retry-btn {
    background: #ffc107;
    color: #212529;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.render-error .retry-btn:hover {
    background: #e0a800;
}

/* Technical Details Styling */
details {
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    text-align: left;
    max-width: 600px;
}

summary {
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    margin-bottom: 12px;
}

pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive Error Styles */
@media (max-width: 768px) {

    .initialization-error,
    .critical-error {
        margin: 10px;
        padding: 30px 15px;
        min-height: 300px;
    }

    .error-icon {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-actions .btn {
        min-width: 200px;
    }

    .error-suggestions {
        margin: 15px 0;
        padding: 15px;
    }

    .render-error {
        position: relative;
        left: auto;
        transform: none;
        margin: 10px;
        max-width: none;
    }

    .error-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .share-editor-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .controls-section {
        order: -1;
    }

    .canvas-container {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    /* On mobile devices, always use full width regardless of sidebar state */
    .share-page-container {
        padding: 15px;
        margin-left: 0 !important;
        width: 100vw !important;
        max-width: none !important;
    }

    .share-page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .share-page-header h1 {
        font-size: 1.5rem;
    }

    .control-panel {
        padding: 15px;
    }

    .custom-dimensions {
        grid-template-columns: 1fr;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .share-page-container {
        padding: 10px;
    }

    .canvas-container {
        padding: 10px;
    }

    .control-panel {
        padding: 12px;
    }

    .preview-canvas {
        max-height: 50vh;
    }
}

/* Enhanced touch-friendly controls for mobile */
@media (hover: none) and (pointer: coarse) {
    .slider {
        height: 10px;
        border-radius: 5px;
    }

    .slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s ease;
    }

    .slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s ease;
    }

    .slider.active::-webkit-slider-thumb {
        transform: scale(1.2);
    }

    .slider.active::-moz-range-thumb {
        transform: scale(1.2);
    }

    .btn {
        min-height: 48px;
        font-size: 1rem;
    }

    .color-picker {
        height: 48px;
        border-radius: 8px;
    }

    .color-picker.active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    select.active {
        background-color: #f0f8ff;
        transform: scale(0.98);
        transition: all 0.1s ease;
    }
}

/* Canvas interaction styles */
.preview-canvas {
    cursor: grab;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.preview-canvas:active {
    cursor: grabbing;
}

.preview-canvas.dragging {
    transform: scale(0.98);
}

/* Enhanced loading states */
.canvas-loading {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.canvas-loading .loading-spinner {
    width: 48px;
    height: 48px;
    border-width: 4px;
    border-top-color: #667eea;
    border-right-color: #764ba2;
    border-bottom-color: #f39c12;
    border-left-color: #e74c3c;
    animation: spin 1.2s linear infinite;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Performance indicators */
.performance-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: monospace;
    display: none;
}

.performance-indicator.show {
    display: block;
}

/* Responsive preview scaling */
.canvas-container {
    transition: min-height 0.3s ease;
    overflow: hidden;
}

/* Keyboard shortcut hints */
.keyboard-hints {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.keyboard-hints.show {
    opacity: 1;
}

.keyboard-hints kbd {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.6rem;
    margin: 0 2px;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .canvas-container {
        padding: 10px;
        margin: 0 -5px;
    }

    .preview-canvas {
        border-radius: 6px;
    }

    .control-panel {
        margin-bottom: 15px;
    }

    .control-group {
        margin-bottom: 15px;
    }
}

/* High-DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .preview-canvas {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Enhanced Mobile Optimizations */

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .share-editor-container {
        grid-template-columns: 1fr 280px;
        gap: 15px;
        height: 100vh;
    }

    .controls-section {
        order: 0;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .canvas-section {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .preview-canvas {
        max-height: 75vh;
        max-width: 90%;
    }

    .control-panel {
        padding: 8px 12px;
        margin-bottom: 8px;
    }

    .control-panel h3 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .control-group {
        margin-bottom: 12px;
    }

    .save-section {
        padding: 15px;
        gap: 12px;
    }
}

/* Portrait orientation on mobile */
@media (max-width: 768px) and (orientation: portrait) {
    .share-editor-container {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 120px);
    }

    .controls-section {
        order: -1;
        flex: 0 0 auto;
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .canvas-section {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 200px;
    }

    .preview-canvas {
        max-height: 40vh;
        max-width: 95%;
    }

    .save-section {
        flex: 0 0 auto;
        margin-top: 15px;
    }
}

/* Very small screens (320px and up) */
@media (max-width: 375px) {
    .share-page-container {
        padding: 8px;
    }

    .share-page-header h1 {
        font-size: 1.2rem;
    }

    .control-panel {
        padding: 10px;
    }

    .control-panel h3 {
        font-size: 0.95rem;
    }

    .download-controls {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .preset-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .preset-btn {
        padding: 12px 10px;
        min-height: 70px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-large {
        min-width: 100%;
        padding: 14px 20px;
    }
}

/* Accessibility and motion preferences */
@media (prefers-reduced-motion: reduce) {

    .preview-canvas,
    .btn,
    .slider,
    .control-panel,
    .preset-btn,
    .color-preset {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .canvas-container {
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .control-panel {
        border: 2px solid;
    }

    .btn {
        border: 2px solid;
    }

    .preview-canvas {
        border: 3px solid;
    }

    .slider::-webkit-slider-thumb {
        border: 2px solid;
    }
}

/* Dark mode support */
/* Dark mode styles using .dark-mode class prefix */
.dark-mode .share-page-container {
    background-color: #1a1a1a;
    color: #ffffff;
}

.dark-mode .control-panel {
    background-color: #2d2d2d;
    border-color: #404040;
}

.dark-mode .control-panel h3 {
    color: #ffffff;
    border-bottom-color: #667eea;
}

.dark-mode .font-selector,
.dark-mode .alignment-selector,
.dark-mode .dimension-selector,
.dark-mode .font-weight-selector,
.dark-mode .font-style-selector,
.dark-mode .vertical-align-selector,
.dark-mode .background-type-selector,
.dark-mode .gradient-direction-selector,
.dark-mode .download-format-selector,
.dark-mode .filename-input {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
}

.dark-mode .canvas-container {
    background-color: #2d2d2d;
}

.dark-mode .save-section {
    background-color: #2d2d2d;
}

.dark-mode .download-controls {
    background-color: #1a1a1a;
    border-color: #404040;
}

.dark-mode .preset-btn {
    background-color: #2d2d2d;
    border-color: #404040;
    color: #ffffff;
}

.dark-mode .preset-btn:hover {
    background-color: #404040;
    border-color: #667eea;
}

/* Mobile touch interaction styles */
.mobile-device .preview-canvas {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.preview-canvas.touch-active {
    opacity: 0.9;
    transform: scale(0.98);
    transition: opacity 0.1s ease, transform 0.1s ease;
}

.btn.touch-active,
.preset-btn.touch-active,
.color-preset.touch-active {
    transform: scale(0.95);
    opacity: 0.8;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.slider.active {
    transform: scale(1.02);
    transition: transform 0.1s ease;
}

/* Mobile-specific control improvements */
.mobile-device .control-group {
    margin-bottom: 20px;
}

.mobile-device .control-group label {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.mobile-device .slider {
    margin: 15px 0;
}

.mobile-device .color-control {
    gap: 12px;
    margin-bottom: 12px;
}

.mobile-device .color-presets {
    gap: 8px;
    margin-top: 12px;
}

.mobile-device .color-preset {
    width: 32px;
    height: 32px;
}

/* Gesture hint styles */
#gesture-hint {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Prevent text selection during gestures */
.canvas-container.no-select,
.canvas-container.no-select * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {

    .mobile-device input,
    .mobile-device select,
    .mobile-device textarea {
        font-size: 16px;
        /* Prevent zoom on focus */
    }

    .mobile-device .preview-canvas {
        -webkit-overflow-scrolling: touch;
    }

    .mobile-device .controls-section {
        -webkit-overflow-scrolling: touch;
    }
}

/* Android specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm) {
    .mobile-device .slider::-webkit-slider-thumb {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
}

/* Print styles */
@media print {

    .controls-section,
    .save-section {
        display: none;
    }

    .share-editor-container {
        grid-template-columns: 1fr;
    }

    .canvas-section {
        width: 100%;
        height: auto;
    }

    .preview-canvas {
        max-width: 100%;
        max-height: none;
        height: auto;
    }
}

/* Succ
ess/Error Notifications */
.success-notification,
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.success-notification.show,
.error-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    font-weight: 500;
    min-width: 250px;
}

.success-notification .notification-content {
    background: rgba(46, 204, 113, 0.95);
    color: white;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.error-notification .notification-content {
    background: rgba(231, 76, 60, 0.95);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-text {
    flex: 1;
    font-size: 0.9rem;
}

/* Enhanced Font Loading */
.font-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #667eea;
    font-style: italic;
    margin-top: 4px;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    animation: fadeIn 0.3s ease;
}

.font-loading .loading-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* Responsive adjustments for notifications */
@media (max-width: 768px) {

    .success-notification,
    .error-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }

    .success-notification.show,
    .error-notification.show {
        transform: translateY(0);
    }

    .notification-content {
        padding: 12px 16px;
        min-width: auto;
    }

    .notification-text {
        font-size: 0.85rem;
    }
}

/* Hel
p text styles */
.help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Wallpaper selection styles */
.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.wallpaper-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.wallpaper-option:hover {
    border-color: #667eea;
    background: #e3f2fd;
    transform: translateY(-2px);
}

.wallpaper-option.selected {
    border-color: #667eea;
    background: #e3f2fd;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.wallpaper-preview {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.wallpaper-option:hover .wallpaper-preview {
    transform: scale(1.05);
}

.wallpaper-name {
    font-size: 11px;
    font-weight: 500;
    color: #2c3e50;
    margin-top: 6px;
    text-align: center;
}

.wallpaper-option.selected .wallpaper-name {
    color: #667eea;
    font-weight: 600;
}

/* Mobile responsive wallpaper grid */
@media (max-width: 768px) {
    .wallpaper-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .wallpaper-preview {
        width: 50px;
        height: 50px;
    }

    .wallpaper-name {
        font-size: 10px;
    }
}

/* Reset Text Button */
#reset-text-btn {
    margin-right: 10px;
    background-color: #6c757d;
    border-color: #6c757d;
    transition: all 0.2s ease;
}

#reset-text-btn:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-1px);
}

#reset-text-btn:active {
    transform: translateY(0);
}

/* Draggable Canvas Styles */
.preview-canvas.draggable {
    cursor: grab;
    transition: cursor 0.2s ease;
}

.preview-canvas.draggable:active {
    cursor: grabbing;
}

.preview-canvas.dragging {
    cursor: grabbing !important;
    user-select: none;
}

/* Visual feedback for draggable area */
.preview-canvas.draggable::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-canvas.draggable:hover::before {
    opacity: 1;
}

/* Mobile touch feedback */
@media (hover: none) and (pointer: coarse) {
    .preview-canvas.draggable {
        cursor: default;
    }
    
    .preview-canvas.dragging {
        cursor: default !important;
    }
}