* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --window-bg: #ffffff;
    --taskbar-bg: rgba(255, 255, 255, 0.95);
    --shadow: rgba(0, 0, 0, 0.1);
    --accent: #000000;
    --business-accent: #000000; /* Fallback */
    --app-store-accent: var(--accent); /* Default to theme accent */
    --success: #22c55e;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Mobile Toast Colors (Inverted for contrast) */
    --toast-mobile-bg: rgba(30, 30, 30, 0.9);
    --toast-mobile-text: #ffffff;
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --border-color: #333333;
    --window-bg: #1a1a1a;
    --taskbar-bg: rgba(0, 0, 0, 0.95);
    --shadow: rgba(255, 255, 255, 0.1);
    --accent: #ffffff;
    --app-store-accent: var(--accent); /* Default to theme accent */
    --info: #fff;
    
    /* Mobile Toast Colors (Inverted for contrast) */
    --toast-mobile-bg: rgba(255, 255, 255, 0.9);
    --toast-mobile-text: #000000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    transition: background-color 0.3s ease;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeOut 0.5s ease 2s forwards;
}

#splash-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 40px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-bar-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, #cccccc 100%);
    animation: loadingProgress 2s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes loadingProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Background */
#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
    z-index: 0;
}

/* Taskbar */
#taskbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--taskbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 50;
    transition: transform 0.3s ease, background 0.3s ease;
}

.taskbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.taskbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.taskbar-logo {
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.taskbar-logo:hover {
    transform: rotate(360deg);
}

.taskbar-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.taskbar-link:hover {
    background: var(--bg-secondary);
}

.taskbar-icon {
    font-size: 20px;
    color: var(--text-primary);
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding-top: 6px;
    border-radius: 6px;
    transition: background 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.taskbar-icon:hover {
    background: var(--bg-secondary);
}

/* Mobile Visibility Utilities */
.mobile-only-icon {
    display: none;
}

.desktop-only-text {
    display: inline;
}

.mobile-hidden {
    display: flex;
}

@media (max-width: 768px) {
    .mobile-only-icon {
        display: inline-block;
        font-size: 18px;
    }
    .desktop-only-text {
        display: none;
    }
    .taskbar-link {
        padding: 8px;
    }
    .mobile-hidden {
        display: none !important;
    }
}


/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--border-color);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.theme-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle-slider {
    transform: translateX(24px);
}

/* Main Content */
#main-content {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
    z-index: 1;
    transition: top 0.3s ease;
}

/* Mobile Taskbar Hiding Logic */
body.taskbar-hidden #taskbar {
    transform: translateY(-100%);
}

body.taskbar-hidden #main-content {
    top: 0;
}

/* Homescreen */
#homescreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 50px);
    padding: 40px 20px;
    text-align: center;
}

.home-logo {
    width: 80%;
    max-width: 500px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.home-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.business-status-label {
    background: #f44336;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.search-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    margin-bottom: 1.0px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.search-bar {
    width: 100%;
    padding: 18px 60px 18px 25px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--window-bg);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.search-bar:focus {
    border-color: color-mix(in srgb, var(--accent), transparent);
    box-shadow: 0 0 0 3px var(--shadow);
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 30px;
    max-width: 900px;
    width: 100%;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative; /* For context menu positioning */
    max-width: 130px;
    border: 1px solid transparent;
}

.app-icon:hover {
    background: var(--bg-secondary);
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--accent), transparent);
}

.app-icon > i {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--accent);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon span {
    font-size: 14px;
    color: var(--text-primary);
    display: block;
}

.app-icon-menu-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.app-icon:hover .app-icon-menu-btn {
    display: flex;
}

.app-icon-context-menu {
    position: absolute;
    top: 30px;
    right: 10px;
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow);
    z-index: 20;
    padding: 5px 0;
    min-width: 150px;
    display: none; /* Controlled by JS */
    animation: context-menu-in 0.2s ease;
}

.app-icon-context-menu.show {
    display: block;
}

.app-icon-context-menu-item {
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-icon-context-menu-item:hover {
    background: var(--bg-secondary);
}

.app-icon-context-menu-item i {
    width: 16px;
}

.app-icon-context-menu-item.danger {
    color: #f44336;
}

@keyframes context-menu-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


@keyframes app-store-glow {
    0% {
        box-shadow: 0 0 0px transparent;
    }
    50% {
        box-shadow: 0 0 25px var(--app-store-accent);
    }
    100% {
        box-shadow: 0 0 0px transparent;
    }
}

.app-store-btn {
    padding: 15px 35px;
    font-size: 16px;
    background: var(--app-store-accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.8s both, app-store-glow 2s infinite ease-in-out;
}

.app-store-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px var(--shadow);
}

[data-theme="dark"] .app-store-btn {
    color: var(--bg-primary); /* Ensures text is black when button is white */
}

.home-section-heading {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-top: 50px;
    margin-bottom: 15px;
}

.home-section-divider {
    width: 100px;
    border: none;
    border-top: 1px solid var(--business-accent);
    margin: 0 auto 40px auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Windows */
.window {
    position: fixed;
    background: var(--window-bg);
    border-radius: 12px;
    box-shadow: 0 20px 60px var(--shadow);
    overflow: hidden;
    z-index: 100;
    display: none;
    min-width: 300px;
    min-height: 200px;
    border: 1px solid var(--border-color);
    transition: width 0.3s ease, height 0.3s ease, top 0.3s ease, left 0.3s ease, border-radius 0.3s ease;
}

.window.active {
    display: flex;
    flex-direction: column;
    animation: windowOpen 0.3s ease;
}

.window.minimized {
    display: none;
}

.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0;
}

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.window-header {
    height: 45px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 15px;
    cursor: move;
    user-select: none;
    flex-shrink: 0;
}

.window-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.window-controls {
    display: flex;
    gap: 10px;
}

.window-control-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    font-size: 16px;
}

.window-control-btn:hover {
    background: var(--border-color);
}

.window-control-btn.close:hover {
    background: #ff4444;
    color: white;
}

.window-content {
    flex: 1;
    overflow: auto;
    position: relative;
}

.window-content iframe {
    background-color: var(--window-bg);
}

.window-content i {
    vertical-align: middle;
    margin-right: 5px;
}

.window-manage-btn {
    padding: 8px 15px;
    font-size: 13px;
    background: var(--business-accent);
    color: var(--text-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: auto;
    transition: opacity 0.3s ease;
}

.window-manage-btn:hover {
    opacity: 0.8;
}

/* iFrame Loader */
.iframe-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--business-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.resize-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
}


@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


/* Minimized Bubbles */
#minimized-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 8000;
    flex-wrap: wrap;
    max-width: calc(100% - 40px);
}

.minimized-bubble {
    padding: 10px 40px 10px 20px;
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    animation: bubbleIn 0.3s ease;
    position: relative;
    z-index: 1;
}

.minimized-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow);
    border-color: color-mix(in srgb, var(--accent), transparent);
}

.bubble-close-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    font-size: 12px;
}

.bubble-close-btn:hover {
    background: #ff4444;
    color: white;
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.minimized-bubble::before {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    border-radius: 28px;
    box-shadow: 0 0 10px 3px var(--business-accent);
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}

.minimized-bubble.glow::before {
    animation: smooth-glow 1.5s ease-in-out;
}

@keyframes smooth-glow {
    0% { opacity: 0; }
    50% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 5px 15px var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    animation: slideInFromRight 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Mobile Toast Styles */
@media (max-width: 768px) {
    #toast-container {
        top: auto;
        bottom: 80px; /* Above bottom nav area */
        right: 50%;
        transform: translateX(50%);
        width: auto;
        align-items: center;
    }
    .toast {
        min-width: auto;
        width: max-content;
        max-width: 80vw;
        background: var(--toast-mobile-bg); /* Theme aware background */
        color: var(--toast-mobile-text);    /* Theme aware text */
        border: none;
        border-radius: 25px;
        padding: 8px 16px;
        font-size: 13px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        backdrop-filter: blur(4px);
        animation: slideUpFade 0.3s ease-out;
    }
    .toast-icon { font-size: 14px; margin-right: 5px; color: inherit !important; }
    .toast-close-btn { display: none; }
    .toast-title { display: none; }
    .toast-content { text-align: center; flex: none; }
    .toast-message { font-size: 13px; color: var(--toast-mobile-text) !important; opacity:1 !important; margin: 0; }
    .toast-progress { display: none; }
    
    @keyframes slideUpFade {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

.toast.closing {
    animation: slideOutToRight 0.5s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

@media (max-width: 768px) {
    .toast.closing {
        animation: fadeOutDown 0.3s ease-in forwards;
    }
    @keyframes fadeOutDown {
        to { opacity: 0; transform: translateY(20px); }
    }
}

@keyframes slideInFromRight { from { transform: translateX(120%); } to { transform: translateX(0); } }
@keyframes slideOutToRight { from { transform: translateX(0); } to { transform: translateX(120%); } }

.toast-icon { font-size: 20px; }
.toast-content { flex: 1; text-align: left; }
.toast-title { font-weight: 600; }
.toast-message { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.toast-close-btn { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 18px; }
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.info .toast-icon { color: var(--info); }
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: var(--accent);
    animation: progress linear;
}
@keyframes progress { from { width: 100%; } to { width: 0%; } }


/* Tabs */
.tabs-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    gap: 5px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
    display: none;
}

.tab-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 30px;
    height: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.tab-scroll-arrow.visible {
    opacity: 1;
    visibility: visible;
}
.tab-scroll-arrow.left {
    left: -15px;
}
.tab-scroll-arrow.right {
    right: -15px;
}
.tab-scroll-arrow > i {
    font-size: 16px;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.tab.active {
    color: var(--business-accent);
    border-bottom-color: var(--business-accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Settings Page */
.settings-section {
    margin-bottom: 30px;
}

.settings-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.settings-item:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--accent), transparent);
    box-shadow: 0 10px 20px var(--shadow);
}

.settings-item > i {
    color: var(--business-accent);
    width: 30px;
    display: flex;
    align-items: center;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    #taskbar {
        height: 60px;
        padding: 0 15px;
    }
    
    #main-content {
        top: 60px;
    }

    .taskbar-left, .taskbar-right {
        gap: 10px;
    }

    .taskbar-link {
        font-size: 12px;
        padding: 6px 10px;
    }

    .home-logo {
        width: 90%;
    }

    .home-subtitle {
        font-size: 16px;
    }

    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .app-icon > i {
        font-size: 28px;
        width: 32px;
        height: 32px;
    }

    .app-icon span {
        font-size: 12px;
    }

    .window.maximized {
        top: 0 !important;
        height: 100vh !important;
    }

    .window.active {
        width: 100vw !important;
        height: 100vh !important;
        top: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
    }

    .window.active.shrunk {
        width: 50vw !important;
        height: 50vh !important;
        top: var(--y, 25vh) !important;
        left: var(--x, 25vw) !important;
        border-radius: 12px !important;
    }
    
    .window.active.shrunk.dragging {
        transition: none !important;
        top: var(--y, 25vh) !important;
        left: var(--x, 25vw) !important;
    }

    .minimized-bubble {
        font-size: 12px;
        padding: 8px 15px;
    }
}

.window.dragging,
.window.resizing {
transition: none !important;
}

/* App Store Grid */
.app-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.store-app-card {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.store-app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
    border-color: color-mix(in srgb, var(--accent), transparent);
}

.store-app-card i {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--business-accent);
    height: 40px;
    display: inline-block;
}

.store-app-card h4 {
    margin-bottom: 8px;
}

.store-app-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Search Results */
.search-result-item {
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-result-item:hover {
    transform: translateX(5px);
    border-color: color-mix(in srgb, var(--accent), transparent);
}

.search-result-item h4 {
    margin-bottom: 5px;
}

.search-result-item p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Sign In Form */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.auth-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.auth-input:focus {
    border-color: color-mix(in srgb, var(--accent), transparent);
    outline: none;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background: var(--business-accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-button:hover {
    opacity: 0.9;
}

.auth-button > i {
    font-size: 16px;
}

.google-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.google-signin > i {
     font-size: 18px;
}

.google-signin:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: color-mix(in srgb, var(--accent), transparent);
}

/* PWA Install Link on Homescreen */
.pwa-install-link {
    display: none;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.5s both;
    cursor: pointer;
}

.pwa-install-link:hover {
    background: var(--business-accent);
    color: var(--bg-primary);
    border-color: var(--business-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.pwa-install-link img {
    height: 15px;
    margin-right: 8px;
    vertical-align: middle;
}