/*
Theme Name: scdev-theme-deluxe
Theme URI: https://scdev.local
Description: A flexible layout theme with Box, Wide, and Full layout options
Version: 1.0.0
Author: scdev
Author URI: https://scdev.local
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scdev-theme-deluxe
Domain Path: /languages
*/

:root {
    --header-height: 60px;
    --footer-height: 60px;
    --header-footer-margin: 0px;
    --sidebar-width: 300px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.theme-wrapper {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Header */
.theme-header {
    width: 1320px !important;
    height: var(--header-height, 60px);
    background-color: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: fixed !important;
    top: var(--header-footer-margin, 0px) !important;
    z-index: 999 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.header-left {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.header-center {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.header-center h1 {
    font-size: 24px;
    margin: 0;
}

.header-right {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

/* Logo styling */
.header-logo {
    max-width: 140px !important;
    max-height: 70px !important;
    width: auto !important;
    height: auto !important;
    object-fit: cover !important;
    display: block;
    padding: 5px !important;
}

/* Social buttons styling */
.social-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
    color: inherit;
}

.social-button svg {
    width: 18px;
    height: 18px;
}

.social-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Navigation menu styling */
nav ul,
.menu {
    display: flex !important;
    gap: 4px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

nav li,
.menu li {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

nav a,
.menu a {
    display: inline-block !important;
    color: white !important;
    text-decoration: none !important;
    padding: 4px 8px !important;
    line-height: 1.0 !important;
    transition: background-color 0.3s !important;
}

nav a:hover,
.menu a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Main Content Area */
.theme-main {
    display: flex;
    gap: var(--element-gap, 10px);
    padding: var(--element-gap, 10px);
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    flex-wrap: wrap !important;
    margin-top: var(--header-height, 60px) !important;
    margin-bottom: var(--footer-height, 60px) !important;
    height: auto !important;
    flex-shrink: 0 !important;
    transition: margin 0.3s ease !important;
}

/* Adjust main container margins when header/footer are hidden */
body.header-hidden .theme-main {
    margin-top: 0 !important;
}

body.footer-hidden .theme-main {
    margin-bottom: 0 !important;
}

/* Sidebars */
.theme-sidebar {
    width: var(--sidebar-width, 300px) !important;
    max-width: var(--sidebar-width, 300px) !important;
    background-color: #ecf0f1;
    padding: 10px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex-shrink: 0 !important;
    height: calc(100vh - var(--header-height, 60px) - var(--footer-height, 60px) - (var(--element-gap, 10px) * 2)) !important;
    transition: height 0.3s ease !important;
}

/* Sidebar expansion when header/footer are hidden */
body.header-hidden .theme-sidebar {
    height: calc(100vh - var(--footer-height, 60px) - (var(--element-gap, 10px) * 2)) !important;
}

body.footer-hidden .theme-sidebar {
    height: calc(100vh - var(--header-height, 60px) - (var(--element-gap, 10px) * 2)) !important;
}

body.header-hidden.footer-hidden .theme-sidebar {
    height: calc(100vh - (var(--element-gap, 10px) * 2)) !important;
}

.theme-sidebar-left {
    order: 1;
}

.theme-sidebar-right {
    order: 3;
}

.sidebar-content h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.sidebar-content p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Content Area - Default Box Layout */
.theme-content {
    width: 550px !important;
    max-width: 550px !important;
    background-color: white;
    padding: 10px 15px;
    order: 2;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    height: calc(100vh - var(--header-height, 60px) - var(--footer-height, 60px) - (var(--element-gap, 10px) * 2)) !important;
    position: relative !important;
    transition: height 0.3s ease !important;
}

/* Content expansion when header/footer are hidden */
body.header-hidden .theme-content {
    height: calc(100vh - var(--footer-height, 60px) - (var(--element-gap, 10px) * 2)) !important;
}

body.footer-hidden .theme-content {
    height: calc(100vh - var(--header-height, 60px) - (var(--element-gap, 10px) * 2)) !important;
}

body.header-hidden.footer-hidden .theme-content {
    height: calc(100vh - (var(--element-gap, 10px) * 2)) !important;
}

.content-inner h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.content-inner p {
    color: #555;
    line-height: 1.2;
}

/* Layout Variants */

/* Wide Layout: 680px content */
.layout-wide .theme-content {
    width: 680px !important;
    max-width: 680px !important;
}

/* Full Layout: Dynamic fluid content width */
.layout-full .theme-content {
    width: calc(100vw - 600px - 30px) !important;
    max-width: 900px !important;
    min-width: 400px !important;
}

/* Cap fluid content width on 14" and smaller screens */
@media (max-width: 1440px) {
    .layout-full .theme-content {
        max-width: 620px !important;
    }
}

/* Footer */
.theme-footer {
    width: 1320px !important;
    height: var(--footer-height, 60px);
    background-color: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: fixed !important;
    bottom: var(--header-footer-margin, 0px) !important;
    z-index: 999 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.footer-content {
    width: 100%;
    font-size: 14px;
    line-height: 1.0;
    padding: 4px 8px;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
}

/* Footer sections */
.footer-left {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.footer-center {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.footer-center h3 {
    font-size: 14px;
    margin: 0;
}

.footer-right {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

/* Responsive adjustments for 12-14 inch screens - Wide mode only */
@media (max-width: 1420px) and (min-width: 1200px) {
    /* Scale down content and sidebars proportionally for wide layout only */
    .layout-wide .theme-content {
        width: calc(680px * 0.85) !important;
        max-width: calc(680px * 0.85) !important;
    }
    
    .layout-wide .theme-sidebar {
        width: calc(var(--sidebar-width, 300px) * 0.85) !important;
        max-width: calc(var(--sidebar-width, 300px) * 0.85) !important;
    }
    
    /* Reduce gaps slightly for wide mode */
    .layout-wide .theme-main {
        gap: 8px;
        padding: 8px;
    }
    
    /* Box mode remains unchanged as it fits comfortably (1180px total) */
    /* Full mode now uses dynamic sizing */
}

/* More aggressive scaling for tighter screens (1280px laptops) - Wide mode only */
@media (max-width: 1320px) and (min-width: 1200px) {
    .layout-wide .theme-content {
        width: calc(680px * 0.75) !important;
        max-width: calc(680px * 0.75) !important;
    }
    
    .layout-wide .theme-sidebar {
        width: calc(var(--sidebar-width, 300px) * 0.75) !important;
        max-width: calc(var(--sidebar-width, 300px) * 0.75) !important;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1199px) {
    .theme-main {
        flex-wrap: wrap !important;
    }
}

/* Header/Footer Width Classes */
.theme-header.header-width-1190,
.theme-footer.footer-width-1190 {
    width: 1190px !important;
}

.theme-header.header-width-1320,
.theme-footer.footer-width-1320 {
    width: 1320px !important;
}

.theme-header.header-width-full,
.theme-footer.footer-width-full {
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
}


/* Scroll to Top Button */
.scroll-to-top {
    position: fixed !important;
    bottom: 70px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 35px !important;
    height: 35px !important;
    background-color: #3498db !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    opacity: 0 !important;
}

.scroll-to-top.show {
    display: flex !important;
    opacity: 1 !important;
}

.scroll-to-top:hover {
    background-color: #2980b9 !important;
    transform: scale(1.1) !important;
}

/* Night Mode Toggle Button */
.night-mode-toggle {
    position: fixed;
    right: 5px;
    top: 40px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 1000;
}

.night-mode-toggle:hover {
    transform: scale(1.2);
}

/* Night Mode Styles */
body.night-mode {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

body.night-mode .theme-header,
body.night-mode .theme-footer {
    background-color: #0d0d0d !important;
    color: #e0e0e0 !important;
}

body.night-mode .theme-sidebar {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
}

body.night-mode .theme-content {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

body.night-mode a {
    color: #64b5f6 !important;
}

body.night-mode h1,
body.night-mode h2,
body.night-mode h3,
body.night-mode h4,
body.night-mode h5,
body.night-mode h6 {
    color: #e0e0e0 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Hide toggle buttons on mobile */
    .toggle-left-sidebar,
    .toggle-right-sidebar,
    .toggle-header,
    .toggle-footer,
    .toggle-left-extra,
    .toggle-right-extra,
    .toggle-left-blue,
    .toggle-all {
        display: none !important;
    }

    /* Make content responsive */
    .theme-content {
        width: 100% !important;
        max-width: 100% !important;
        order: 2 !important;
    }

    .layout-wide .theme-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .layout-full .theme-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Stack layout on mobile */
    .theme-main {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    /* Sidebars responsive */
    .theme-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        position: static !important;
        overflow-y: visible !important;
    }

    .theme-sidebar-left {
        order: 1 !important;
    }

    .theme-sidebar-right {
        order: 3 !important;
    }

    /* Mobile Layout Order Options */
    /* Content Only */
    .mobile-layout-content-only .theme-sidebar {
        display: none !important;
    }

    /* Content | Left */
    .mobile-layout-content-left .theme-content {
        order: 1 !important;
    }
    .mobile-layout-content-left .theme-sidebar-left {
        order: 2 !important;
    }
    .mobile-layout-content-left .theme-sidebar-right {
        display: none !important;
    }

    /* Content | Right */
    .mobile-layout-content-right .theme-content {
        order: 1 !important;
    }
    .mobile-layout-content-right .theme-sidebar-right {
        order: 2 !important;
    }
    .mobile-layout-content-right .theme-sidebar-left {
        display: none !important;
    }

    /* Left | Content */
    .mobile-layout-left-content .theme-sidebar-left {
        order: 1 !important;
    }
    .mobile-layout-left-content .theme-content {
        order: 2 !important;
    }
    .mobile-layout-left-content .theme-sidebar-right {
        display: none !important;
    }

    /* Right | Content */
    .mobile-layout-right-content .theme-sidebar-right {
        order: 1 !important;
    }
    .mobile-layout-right-content .theme-content {
        order: 2 !important;
    }
    .mobile-layout-right-content .theme-sidebar-left {
        display: none !important;
    }

    /* Content | Left | Right */
    .mobile-layout-content-left-right .theme-content {
        order: 1 !important;
    }
    .mobile-layout-content-left-right .theme-sidebar-left {
        order: 2 !important;
    }
    .mobile-layout-content-left-right .theme-sidebar-right {
        order: 3 !important;
    }

    /* Left | Content | Right (default) */
    .mobile-layout-left-content-right .theme-sidebar-left {
        order: 1 !important;
    }
    .mobile-layout-left-content-right .theme-content {
        order: 2 !important;
    }
    .mobile-layout-left-content-right .theme-sidebar-right {
        order: 3 !important;
    }

    /* Left | Right | Content */
    .mobile-layout-left-right-content .theme-sidebar-left {
        order: 1 !important;
    }
    .mobile-layout-left-right-content .theme-sidebar-right {
        order: 2 !important;
    }
    .mobile-layout-left-right-content .theme-content {
        order: 3 !important;
    }

    /* Adjust header/footer for mobile */
    .theme-header,
    .theme-footer {
        padding: 0 10px !important;
    }

    .header-left,
    .header-center,
    .header-right,
    .footer-left,
    .footer-center,
    .footer-right {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Adjust night mode button */
    .night-mode-toggle {
        right: 50px !important;
    }

    /* Scroll to Top Button on Mobile */
    .scroll-to-top {
        bottom: 10px !important;
        right: 10px !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 16px !important;
    }
}


/* User Profile Header Item */
.user-profile-header-item {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.user-profile-toggle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #999;
    background-color: transparent;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, border-color 0.3s;
}

.user-profile-toggle:hover {
    transform: scale(1.1);
    border-color: #666;
}

.user-profile-toggle img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile-menu {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.user-profile-menu.show {
    display: block;
}

.user-profile-header {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #333;
}

.user-profile-buttons {
    display: flex;
    flex-direction: column;
}

.user-profile-btn {
    padding: 8px 10px;
    text-decoration: none;
    color: #333;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: background-color 0.2s;
    border-bottom: 1px solid #eee;
}

.user-profile-btn:last-child {
    border-bottom: none;
}

.user-profile-btn:hover {
    background-color: #f5f5f5;
}

.user-profile-btn.logout {
    color: #e74c3c;
}

.user-profile-btn.logout:hover {
    background-color: #ffe6e6;
}

.user-profile-login-btn {
    padding: 8px 10px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
    display: inline-block;
}

.user-profile-login-btn:hover {
    background-color: #2980b9;
}

/* Night mode styles for user profile */
body.night-mode .user-profile-menu {
    background-color: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.night-mode .user-profile-header {
    border-bottom-color: #444;
    color: #e0e0e0;
}

body.night-mode .user-profile-btn {
    color: #e0e0e0;
    border-bottom-color: #444;
}

body.night-mode .user-profile-btn:hover {
    background-color: #3a3a3a;
}

body.night-mode .user-profile-btn.logout {
    color: #ff6b6b;
}

body.night-mode .user-profile-btn.logout:hover {
    background-color: #4a2a2a;
}

body.night-mode .user-profile-login-btn {
    background-color: #2980b9;
}

body.night-mode .user-profile-login-btn:hover {
    background-color: #1e5fa0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .user-profile-tab {
        right: 60px;
    }

    .user-profile-menu {
        min-width: 180px;
    }

    .user-profile-login {
        right: 60px;
    }

    .user-profile-header-item {
        gap: 5px;
    }

    .user-profile-login-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}


/* Night Mode Toggle in Menu */
.night-mode-toggle-menu {
    border-top: 1px solid #eee !important;
}

/* Toggle Buttons - Base Styles */
.toggle-header,
.toggle-footer,
.toggle-left-sidebar,
.toggle-right-sidebar,
.toggle-left-blue {
    position: fixed !important;
    width: 35px !important;
    height: 35px !important;
    font-size: 18px !important;
    padding: 0 !important;
    background-color: #3498db !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    z-index: 997 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.toggle-header:hover,
.toggle-footer:hover,
.toggle-left-sidebar:hover,
.toggle-right-sidebar:hover,
.toggle-left-blue:hover {
    background-color: #2980b9 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
}

/* LEFT SIDE BUTTONS - Centered Vertically */
.toggle-header {
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50px) !important;
    right: auto !important;
}

.toggle-header:hover {
    transform: translateY(-50px) scale(1.1) !important;
}

.toggle-left-sidebar {
    left: 20px !important;
    top: 50% !important;
    transform: translateY(0px) !important;
    right: auto !important;
}

.toggle-left-sidebar:hover {
    transform: translateY(0px) scale(1.1) !important;
}

.toggle-footer {
    left: 20px !important;
    top: 50% !important;
    transform: translateY(50px) !important;
    right: auto !important;
}

.toggle-footer:hover {
    transform: translateY(50px) scale(1.1) !important;
}

/* RIGHT SIDE BUTTONS - Centered Vertically */
.toggle-right-sidebar {
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-25px) !important;
    left: auto !important;
    bottom: auto !important;
}

.toggle-right-sidebar:hover {
    transform: translateY(-25px) scale(1.1) !important;
}

.toggle-left-blue {
    right: 20px !important;
    top: 50% !important;
    transform: translateY(25px) !important;
    left: auto !important;
    bottom: auto !important;
}

.toggle-left-blue:hover {
    transform: translateY(25px) scale(1.1) !important;
}

/* Night mode styling for toggle buttons */
body.night-mode .toggle-header,
body.night-mode .toggle-footer,
body.night-mode .toggle-left-sidebar,
body.night-mode .toggle-right-sidebar,
body.night-mode .toggle-left-blue {
    background-color: #2c3e50 !important;
}

body.night-mode .toggle-header:hover,
body.night-mode .toggle-footer:hover,
body.night-mode .toggle-left-sidebar:hover,
body.night-mode .toggle-right-sidebar:hover,
body.night-mode .toggle-left-blue:hover {
    background-color: #34495e !important;
}


/* Night Mode Toggle Button - Consistent with Toggle Buttons */
#night-mode-toggle {
    position: fixed !important;
    right: 10px !important;
    bottom: 10px !important;
    font-size: 12px !important;
    padding: 2px 2px !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    z-index: 100 !important;
    transition: background-color 0.2s ease !important;
}

#night-mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.9) !important;
}


/* Remove blue background from sidebar toggle buttons */
/* Commented out - using blue theme color instead
.toggle-left-sidebar,
.toggle-right-sidebar {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

.toggle-left-sidebar:hover,
.toggle-right-sidebar:hover {
    background-color: rgba(0, 0, 0, 0.9) !important;
}
*/


/* Mobile Responsive Styles */
/* Hide mobile header/footer on desktop */
.mobile-header,
.mobile-footer,
.mobile-menu-popup,
.mobile-user-modal {
    display: none !important;
}

@media (max-width: 768px) {
    /* HIDE DESKTOP HEADER AND FOOTER ON MOBILE */
    .theme-header {
        display: none !important;
    }
    
    /* HIDE ALL TOGGLE BUTTONS ON MOBILE */
    .toggle-header,
    .toggle-footer,
    .toggle-left-sidebar,
    .toggle-right-sidebar,
    .toggle-left-blue,
    .toggle-all {
        display: none !important;
    }
    
    .theme-footer {
        display: none !important;
    }
    
    /* SHOW MOBILE ELEMENTS */
    .mobile-header,
    .mobile-footer {
        display: flex !important;
    }
    
    /* Mobile menu popup - hidden by default, shown with .show class */
    .mobile-menu-popup {
        display: none !important;
    }
    
    .mobile-menu-popup.show {
        display: block !important;
    }
    
    /* MOBILE HEADER - User Menu Only */
    .mobile-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background-color: #2c3e50 !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 999 !important;
        padding: 0 10px !important;
    }
    
    /* Mobile User Menu Modal */
    .mobile-user-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0,0,0,0.5) !important;
        display: none !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10000 !important;
        padding: 10px !important;
    }
    
    .mobile-user-modal.show {
        display: flex !important;
    }
    
    .mobile-user-modal-content {
        background: white !important;
        border-radius: 12px !important;
        padding: 0 !important;
        width: 90% !important;
        max-width: 320px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
        overflow: hidden !important;
    }
    
    .mobile-user-modal-header {
        padding: 10px !important;
        border-bottom: 1px solid #eee !important;
        text-align: center !important;
        background: #f8f9fa !important;
    }
    
    .mobile-user-modal-header strong {
        font-size: 18px !important;
        color: #333 !important;
    }
    
    .mobile-user-modal-buttons {
        padding: 0 !important;
    }
    
    .mobile-user-modal-buttons a {
        display: block !important;
        padding: 10px !important;
        color: #333 !important;
        text-decoration: none !important;
        border-bottom: 1px solid #eee !important;
        font-size: 16px !important;
        text-align: center !important;
    }
    
    .mobile-user-modal-buttons a:last-child {
        border-bottom: none !important;
    }
    
    .mobile-user-modal-buttons a:hover {
        background: #f5f5f5 !important;
    }
    
    .mobile-user-modal-buttons a.logout {
        color: #e74c3c !important;
    }
    
    .mobile-user-modal-close {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        background: transparent !important;
        border: none !important;
        font-size: 24px !important;
        color: #666 !important;
        cursor: pointer !important;
        padding: 5px !important;
        line-height: 1 !important;
    }
    
    /* MOBILE FOOTER - Three sections */
    .mobile-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background-color: #2c3e50 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        z-index: 999 !important;
        padding: 0 10px !important;
    }
    
    .mobile-footer-left,
    .mobile-footer-center,
    .mobile-footer-right {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
    }
    
    .mobile-footer-left {
        justify-content: flex-start !important;
    }
    
    .mobile-footer-center {
        justify-content: center !important;
    }
    
    .mobile-footer-right {
        justify-content: flex-end !important;
    }
    
    .mobile-footer-left .section-content,
    .mobile-footer-center .section-content {
        font-size: 12px !important;
        color: white !important;
        line-height: 1.2 !important;
    }
    
    .mobile-footer-left .section-content a,
    .mobile-footer-center .section-content a {
        color: white !important;
        text-decoration: none !important;
        font-size: 12px !important;
    }
    
    .mobile-footer-left .social-buttons,
    .mobile-footer-center .social-buttons {
        display: flex !important;
        gap: 8px !important;
    }
    
    .mobile-footer-left .social-button,
    .mobile-footer-center .social-button {
        width: 24px !important;
        height: 24px !important;
    }
    
    .mobile-footer-left .header-logo,
    .mobile-footer-center .header-logo {
        max-height: 40px !important;
        width: auto !important;
    }
    
    .mobile-footer-left h1,
    .mobile-footer-left h3,
    .mobile-footer-center h1,
    .mobile-footer-center h3 {
        font-size: 14px !important;
        margin: 0 !important;
        color: white !important;
        line-height: 1.2 !important;
    }
    
    .mobile-menu-toggle {
        background: transparent !important;
        border: 2px solid white !important;
        border-radius: 6px !important;
        color: white !important;
        font-size: 24px !important;
        cursor: pointer !important;
        padding: 8px 10px !important;
        line-height: 1 !important;
    }
    
    /* Adjust content for fixed mobile header/footer */
    .theme-main {
        margin-top: 60px !important;
        margin-bottom: 60px !important;
    }
}

/* Mobile Menu Popup - Outside media query so it works properly */
.mobile-menu-popup {
    position: fixed !important;
    bottom: 60px !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    display: none !important;
    z-index: 998 !important;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15) !important;
    padding: 8px !important;
}

.mobile-menu-popup.show {
    display: block !important;
}

.mobile-night-mode-toggle {
    background: transparent !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 4px !important;
    margin-bottom: 8px !important;
    display: inline-block !important;
}

.mobile-menu-popup ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

.mobile-menu-popup li {
    border-bottom: none !important;
}

.mobile-menu-popup a {
    display: block !important;
    padding: 8px 12px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    background: #f5f5f5 !important;
    border-radius: 4px !important;
    white-space: nowrap !important;
}

.mobile-menu-popup a:hover {
    background: #e0e0e0 !important;
}

/* User profile menu - ALWAYS VISIBLE on desktop and mobile */
.user-profile-header-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.user-profile-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-profile-login-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force user profile to show on ALL screen sizes */
@media (max-width: 768px) {
    .user-profile-header-item {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .user-profile-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .user-profile-login-btn {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}


/* User Profile Menu */
.user-profile-header-item {
    position: relative;
    display: flex;
    align-items: center;
}

.user-profile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
}

.user-profile-toggle img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: block;
}

.user-profile-login-btn {
    padding: 8px 10px;
    background: #3498db;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.user-profile-login-btn:hover {
    background: #2980b9 !important;
}

.user-profile-menu {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.user-profile-menu.active {
    display: block;
}

.user-profile-header {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.user-profile-buttons {
    padding: 5px;
}

.user-profile-btn {
    display: block;
    padding: 8px 10px;
    color: #333 !important;
    text-decoration: none !important;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: background 0.2s;
}

.user-profile-btn:hover {
    background: #f5f5f5 !important;
}

.user-profile-btn.logout {
    color: #e74c3c !important;
}

.user-profile-btn.logout:hover {
    background: #fee !important;
}


/* ========================================
   USER MENU - ABSOLUTE PRIORITY - NO CONDITIONS
   ======================================== */
.user-profile-header-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

.user-profile-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-profile-login-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-profile-menu {
    position: absolute !important;
    top: 50px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    min-width: 200px !important;
    z-index: 999999 !important;
    display: none !important;
}

.user-profile-menu.show,
.user-profile-menu.active {
    display: block !important;
}

.user-profile-menu * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* MOBILE - FORCE USER MENU DROPDOWN */
@media (max-width: 768px) {
    .user-profile-menu {
        position: fixed !important;
        top: 60px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: 90% !important;
        z-index: 999999 !important;
    }
}


/* MOBILE HAMBURGER MENU */
.mobile-hamburger {
    position: absolute !important;
    left: 15px !important;
    background: transparent !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: none !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
}

.mobile-hamburger img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: block !important;
}

@media (max-width: 768px) {
    .mobile-hamburger {
        display: flex !important;
    }
}

.mobile-hamburger-dropdown {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    display: none !important;
    z-index: 9998 !important;
}

.mobile-hamburger-dropdown.show {
    display: block !important;
}

.mobile-hamburger-content {
    padding: 8px !important;
}

.mobile-nav-menu,
.mobile-user-links {
    list-style: none !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
}

.mobile-user-links-bottom {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}

.mobile-nav-menu li,
.mobile-user-links li {
    margin-bottom: 4px !important;
}

.mobile-nav-menu li:last-child,
.mobile-user-links li:last-child {
    margin-bottom: 0 !important;
}

.mobile-nav-menu a,
.mobile-user-links a {
    display: block !important;
    padding: 8px 12px !important;
    color: #333 !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-weight: 500 !important;
    transition: background 0.2s, border-color 0.2s !important;
    width: 50% !important;
    margin: 0 auto !important;
}

.mobile-nav-menu a:hover,
.mobile-user-links a:hover {
    background: #e0e0e0 !important;
    border-color: #ccc !important;
}

.mobile-user-links-top a {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    color: white !important;
}

.mobile-user-links-top a:hover {
    background: #229954 !important;
    border-color: #229954 !important;
}

.mobile-user-links .logout-link {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}

.mobile-user-links .logout-link:hover {
    background: #c0392b !important;
    border-color: #c0392b !important;
}

/* Night mode for mobile menu */
body.night-mode .mobile-hamburger-dropdown {
    background: #2a2a2a !important;
}

body.night-mode .mobile-nav-menu a,
body.night-mode .mobile-user-links a {
    color: #e0e0e0 !important;
    background: #3a3a3a !important;
    border-color: #555 !important;
}

body.night-mode .mobile-nav-menu a:hover,
body.night-mode .mobile-user-links a:hover {
    background: #4a4a4a !important;
    border-color: #666 !important;
}

body.night-mode .mobile-user-links-top a {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    color: white !important;
}

body.night-mode .mobile-user-links-top a:hover {
    background: #229954 !important;
    border-color: #229954 !important;
}

body.night-mode .mobile-user-links .logout-link {
    background: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}

body.night-mode .mobile-user-links .logout-link:hover {
    background: #c0392b !important;
    border-color: #c0392b !important;
}

/* Mobile header center section */
.mobile-header-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

/* Night mode for mobile footer */
body.night-mode .mobile-footer {
    background-color: #1a1a1a !important;
}

body.night-mode .mobile-footer-left .section-content,
body.night-mode .mobile-footer-center .section-content {
    color: #e0e0e0 !important;
}

body.night-mode .mobile-footer-left .section-content a,
body.night-mode .mobile-footer-center .section-content a {
    color: #64b5f6 !important;
}

body.night-mode .mobile-footer-left h1,
body.night-mode .mobile-footer-left h3,
body.night-mode .mobile-footer-center h1,
body.night-mode .mobile-footer-center h3 {
    color: #e0e0e0 !important;
}

body.night-mode .mobile-menu-popup {
    background: #2a2a2a !important;
}

body.night-mode .mobile-menu-popup a {
    color: #e0e0e0 !important;
    background: #3a3a3a !important;
}

body.night-mode .mobile-menu-popup a:hover {
    background: #4a4a4a !important;
}

/* Cart Badge on User Menu */
.user-profile-header-item {
    position: relative !important;
}

.cart-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background: #e74c3c !important;
    color: white !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    border: 2px solid white !important;
    z-index: 1000 !important;
}

.user-profile-toggle {
    position: relative !important;
}

.mobile-hamburger {
    position: relative !important;
}

.mobile-hamburger .cart-badge {
    top: -3px !important;
    right: -3px !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
}

body.night-mode .cart-badge {
    border-color: #2c3e50 !important;
}

/* Night mode for user profile dropdown */
body.night-mode .user-profile-menu {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
}

body.night-mode .user-profile-header {
    border-bottom-color: #444 !important;
    color: #e0e0e0 !important;
}

body.night-mode .user-profile-btn {
    color: #e0e0e0 !important;
    border-bottom-color: #444 !important;
}

body.night-mode .user-profile-btn:hover {
    background-color: #3a3a3a !important;
}

body.night-mode .user-profile-btn.logout {
    color: #ff6b6b !important;
}

body.night-mode .user-profile-btn.logout:hover {
    background-color: #4a2a2a !important;
}

/* Cart Icon Styles */
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.cart-icon-toggle {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.cart-icon-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-icon-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    z-index: 1;
}

.cart-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: 400px;
    display: none;
    z-index: 1000;
    color: #333;
}

.cart-dropdown.active {
    display: block;
}

.cart-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.cart-dropdown-items {
    max-height: 400px;
    overflow-y: auto;
}

.cart-dropdown-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-info a {
    color: #333 !important;
    text-decoration: none;
    font-size: 14px;
}

.cart-item-info a:hover {
    color: #0073aa !important;
}

.cart-item-price {
    font-size: 13px;
    color: #666;
    font-weight: bold;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    background: #f5f5f5;
    color: #e74c3c;
}

.cart-dropdown-total {
    padding: 15px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}

.cart-dropdown-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
}

.cart-dropdown-actions a {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.cart-dropdown-actions .cart-btn {
    background: #f5f5f5;
    color: #333 !important;
}

.cart-dropdown-actions .cart-btn:hover {
    background: #e0e0e0;
}

.cart-dropdown-actions .checkout-btn {
    background: #3498db;
    color: white !important;
}

.cart-dropdown-actions .checkout-btn:hover {
    background: #2980b9;
}

.cart-empty {
    padding: 30px 15px;
    text-align: center;
    color: #999;
}

.user-profile-header-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Night Mode - Cart Icon Styles */
body.night-mode .cart-icon-toggle {
    color: #e0e0e0;
}

body.night-mode .cart-icon-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.night-mode .cart-dropdown {
    background: #2a2a2a;
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
}

body.night-mode .cart-dropdown-header {
    border-bottom-color: #444;
}

body.night-mode .cart-dropdown-item {
    border-bottom-color: #333;
}

body.night-mode .cart-item-info a {
    color: #e0e0e0 !important;
}

body.night-mode .cart-item-info a:hover {
    color: #64b5f6 !important;
}

body.night-mode .cart-item-price {
    color: #aaa;
}

body.night-mode .cart-item-remove {
    color: #999;
}

body.night-mode .cart-item-remove:hover {
    background: #333;
    color: #e74c3c;
}

body.night-mode .cart-dropdown-total {
    border-top-color: #444;
}

body.night-mode .cart-dropdown-actions .cart-btn {
    background: #333;
    color: #e0e0e0 !important;
}

body.night-mode .cart-dropdown-actions .cart-btn:hover {
    background: #444;
}

body.night-mode .cart-dropdown-actions .checkout-btn {
    background: #2980b9;
    color: white !important;
}

body.night-mode .cart-dropdown-actions .checkout-btn:hover {
    background: #3498db;
}

body.night-mode .cart-empty {
    color: #666;
}

/* Floating Action Buttons Container */
.scdev-floating-actions {
    position: fixed;
    bottom: 10px;
    right: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99998;
    pointer-events: none;
}

.scdev-floating-actions > * {
    pointer-events: auto;
}

/* Mobile positioning - centered at bottom */
@media (max-width: 768px) {
    .scdev-floating-actions {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row;
        bottom: 10px;
    }
}

/* Social Media Icons - Brand Colors */
.social-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.social-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 4px !important;
    transition: transform 0.2s, opacity 0.2s !important;
    text-decoration: none !important;
}

.social-button:hover {
    transform: scale(1.1) !important;
    opacity: 0.9 !important;
}

.social-button svg {
    width: 20px !important;
    height: 20px !important;
}

/* TikTok - Cyan/Pink gradient colors */
.tiktok-icon {
    fill: #00C4CC;
}

body.night-mode .tiktok-icon {
    fill: #9B59B6;
}

/* X (Twitter) - Black on light mode, White on night mode */
.x-icon {
    fill: #000000;
}

body.night-mode .x-icon {
    fill: #FFFFFF;
}

/* TinyMCE Columns - Frontend Styles */
.scdev-columns {
    display: flex;
    gap: 0; /* No gaps between columns */
    margin: 0; /* No top/bottom margin - use single column for spacing */
}

/* Single column - centered with resizable width */
.scdev-cols-1 {
    justify-content: center;
    gap: 0;
}

.scdev-cols-1 .scdev-col {
    width: 100%; /* Full width */
    resize: both;
    overflow: auto;
    min-width: 200px;
    min-height: 10px; /* Minimum 10px height */
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-2 .scdev-col {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-3 .scdev-col {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-25-75 .scdev-col:first-child {
    flex: 0 0 25%;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-25-75 .scdev-col:last-child {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-75-25 .scdev-col:first-child {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-cols-75-25 .scdev-col:last-child {
    flex: 0 0 25%;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd; /* Visible border for resize handle */
}

.scdev-col {
    padding: 10px;
}

/* Responsive columns - stack on mobile */
@media (max-width: 768px) {
    .scdev-columns {
        flex-direction: column;
    }
    
    .scdev-cols-25-75 .scdev-col:first-child,
    .scdev-cols-75-25 .scdev-col:last-child {
        flex: 1;
    }
}

/* TinyMCE Buttons - Frontend Styles */
.scdev-button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
}

.scdev-btn-primary {
    background: #0073aa;
    color: white;
}

.scdev-btn-primary:hover {
    background: #005a87;
    color: white;
}

.scdev-btn-secondary {
    background: #6c757d;
    color: white;
}

.scdev-btn-secondary:hover {
    background: #545b62;
    color: white;
}

.scdev-btn-success {
    background: #28a745;
    color: white;
}

.scdev-btn-success:hover {
    background: #218838;
    color: white;
}

.scdev-btn-danger {
    background: #dc3545;
    color: white;
}

.scdev-btn-danger:hover {
    background: #c82333;
    color: white;
}

.scdev-btn-warning {
    background: #ffc107;
    color: #333;
}

.scdev-btn-warning:hover {
    background: #e0a800;
    color: #333;
}

.scdev-btn-info {
    background: #17a2b8;
    color: white;
}

.scdev-btn-info:hover {
    background: #138496;
    color: white;
}

.scdev-btn-small {
    padding: 5px 15px;
    font-size: 14px;
}

.scdev-btn-medium {
    padding: 10px 20px;
    font-size: 16px;
}

.scdev-btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* New Column Layouts - Tall + Short combinations */
.scdev-cols-tall-left,
.scdev-cols-tall-right {
    gap: 0;
}

.scdev-col-tall {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd;
}

.scdev-col-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.scdev-col-short {
    flex: 1;
    resize: both;
    overflow: auto;
    min-width: 100px;
    min-height: 20px;
    border: 1px solid #ddd;
}

/* Column Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.scdev-animate-fadeIn { animation: fadeIn 0.8s ease-in-out; }
.scdev-animate-slideUp { animation: slideUp 0.8s ease-out; }
.scdev-animate-slideDown { animation: slideDown 0.8s ease-out; }
.scdev-animate-slideLeft { animation: slideLeft 0.8s ease-out; }
.scdev-animate-slideRight { animation: slideRight 0.8s ease-out; }
.scdev-animate-zoomIn { animation: zoomIn 0.8s ease-out; }
.scdev-animate-bounce { animation: bounce 1s ease-in-out; }
.scdev-animate-pulse { animation: pulse 1.5s ease-in-out infinite; }

/* Text FX Animations */
.scdev-textfx {
    display: inline-block;
}

.scdev-textfx .scdev-letter {
    display: inline-block;
    opacity: 0;
}

/* Speed variations */
.scdev-textfx-slow .scdev-letter { animation-duration: 1.5s !important; }
.scdev-textfx-normal .scdev-letter { animation-duration: 0.8s !important; }
.scdev-textfx-fast .scdev-letter { animation-duration: 0.4s !important; }

/* Split from Sides */
@keyframes splitLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes splitRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.scdev-textfx-split .scdev-split-left {
    animation: splitLeft forwards;
}

.scdev-textfx-split .scdev-split-right {
    animation: splitRight forwards;
}

/* Typewriter */
@keyframes typewriter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scdev-textfx-typewriter .scdev-letter {
    animation: typewriter forwards;
}

/* Wave Bounce */
@keyframes waveBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-20px); }
}

.scdev-textfx-wave .scdev-letter {
    animation: waveBounce forwards;
    opacity: 1;
}

/* Glitch */
@keyframes glitch {
    0% { transform: translate(0); opacity: 0; }
    20% { transform: translate(-2px, 2px); opacity: 0.5; }
    40% { transform: translate(2px, -2px); opacity: 0.7; }
    60% { transform: translate(-1px, 1px); opacity: 0.9; }
    80% { transform: translate(1px, -1px); opacity: 1; }
    100% { transform: translate(0); opacity: 1; }
}

.scdev-textfx-glitch .scdev-letter {
    animation: glitch forwards;
}

/* Fade In Letters */
@keyframes fadeInLetter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scdev-textfx-fadeletters .scdev-letter {
    animation: fadeInLetter forwards;
}

/* Rotate In */
@keyframes rotateIn {
    from { transform: rotate(-180deg) scale(0); opacity: 0; }
    to { transform: rotate(0) scale(1); opacity: 1; }
}

.scdev-textfx-rotate .scdev-letter {
    animation: rotateIn forwards;
}

/* Scale Up */
@keyframes scaleUp {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.scdev-textfx-scale .scdev-letter {
    animation: scaleUp forwards;
}

/* Color Shift */
@keyframes colorShift {
    0% { color: #ff0000; opacity: 0; }
    25% { color: #00ff00; opacity: 0.5; }
    50% { color: #0000ff; opacity: 0.75; }
    75% { color: #ff00ff; opacity: 0.9; }
    100% { color: inherit; opacity: 1; }
}

.scdev-textfx-colorshift .scdev-letter {
    animation: colorShift forwards;
}

/* Blur In */
@keyframes blurIn {
    from { filter: blur(10px); opacity: 0; }
    to { filter: blur(0); opacity: 1; }
}

.scdev-textfx-blur .scdev-letter {
    animation: blurIn forwards;
}

/* Flip In */
@keyframes flipIn {
    from { transform: rotateY(90deg); opacity: 0; }
    to { transform: rotateY(0); opacity: 1; }
}

.scdev-textfx-flip .scdev-letter {
    animation: flipIn forwards;
    transform-style: preserve-3d;
}

/* Responsive Embed Styles */
.scdev-embed {
    margin: 20px auto;
}

.scdev-embed-center {
    margin-left: auto;
    margin-right: auto;
}

.scdev-embed-left {
    margin-right: auto;
}

.scdev-embed-right {
    margin-left: auto;
}

.scdev-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.scdev-embed-container iframe,
.scdev-embed-container object,
.scdev-embed-container embed,
.scdev-embed-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive - stack on mobile */
@media (max-width: 768px) {
    .scdev-embed {
        width: 100% !important;
    }
}
