* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4ade80;
    --secondary-color: #22c55e;
    --bg-dark: rgba(0, 0, 0, 0.5);
    --bg-card: rgba(255, 255, 255, 0.15);
    --bg-card-hover: rgba(255, 255, 255, 0.25);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-primary);
    position: relative;
}

.wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&q=80');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -2;
    transition: all 1s ease-in-out;
}

.wallpaper.gradient {
    background-image: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: -1;
}



.settings-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.settings-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}

.clock {
    font-size: 72px;
    font-weight: 300;
    letter-spacing: -3px;
    margin-bottom: 40px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 600;
}

.search-box-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.search-box-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.search-engine-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 16px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-engine-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.engine-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--text-primary);
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 16px;
    color: var(--text-primary);
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 999;
}

.search-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    display: none;
    padding: 8px;
}

.dropdown-content.show {
    display: flex;
    flex-direction: column;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.dropdown-item span {
    font-size: 14px;
}

.suggestions-container {
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.suggestion-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.suggestion-icon-wrapper .lucide {
    width: 16px;
    height: 16px;
}

.suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suggestion-title {
    font-size: 14px;
    color: var(--text-primary);
}

.suggestion-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.suggestion-shortcut {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.search-history {
    padding: 8px 16px;
    border-top: 1px solid var(--border-color);
}

.search-history-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding: 4px 0;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 16px;
    margin-top: 60px;
    max-width: 1200px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.app-item:hover {
    transform: translateY(-4px);
}

.app-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.app-item:hover .app-icon-wrapper {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.app-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.add-icon {
    color: var(--text-secondary);
}

.add-app:hover .add-icon {
    color: var(--primary-color);
}

.app-name {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
}

.taskbar-center {
    display: flex;
    gap: 16px;
}

.taskbar-item {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.taskbar-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.taskbar-item img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.taskbar-item::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.taskbar-item:hover::before {
    width: 20px;
}

.context-menu {
    position: fixed;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 6px;
    min-width: 180px;
    display: none;
    z-index: 10000;
}

.context-menu.show {
    display: block;
}

.context-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
}

.context-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ctx-icon {
    width: 16px;
    text-align: center;
}

.context-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 2000;
}

.settings-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.modal-sidebar {
    width: 200px;
    background: rgba(20, 20, 20, 0.8);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(74, 222, 128, 0.15);
    color: var(--primary-color);
    border-left: 2px solid var(--primary-color);
}

.modal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.main-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.main-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.section-content {
    display: none;
}

.section-content.active {
    display: block;
}

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

.setting-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 3px solid var(--primary-color);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.setting-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.setting-row label {
    font-size: 14px;
}

.setting-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.setting-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.setting-select:focus {
    border-color: var(--primary-color);
}

.setting-select option {
    background: #2a2a2a;
    color: var(--text-primary);
}

.setting-toggle {
    display: flex;
    align-items: center;
}

.setting-toggle input[type="checkbox"] {
    display: none;
}

.setting-toggle .toggle-switch {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s ease;
}

.setting-toggle .toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.setting-toggle input[type="checkbox"]:checked + .toggle-switch {
    background: var(--primary-color);
}

.setting-toggle input[type="checkbox"]:checked + .toggle-switch::after {
    transform: translateX(16px);
}

.setting-slider {
    flex-shrink: 0;
    width: 150px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.setting-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.wallpaper-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallpaper-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.wallpaper-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.wallpaper-option.active {
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.wallpaper-option span:last-child {
    font-size: 14px;
}

.engine-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.engine-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.engine-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.engine-item img {
    width: 22px;
    height: 22px;
    border-radius: 5px;
}

.engine-item span {
    flex: 1;
    font-size: 14px;
}

.btn-change-wallpaper,
.btn-add-shortcut {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 12px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-change-wallpaper:hover,
.btn-add-shortcut:hover {
    background: rgba(74, 222, 128, 0.25);
    border-color: rgba(74, 222, 128, 0.5);
}

.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.shortcut-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.shortcut-item:hover .shortcut-delete {
    opacity: 1;
}

.shortcut-item img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.shortcut-item span {
    flex: 1;
    font-size: 14px;
}

.shortcut-delete {
    opacity: 0;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #ef4444;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shortcut-delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

.about-content {
    text-align: center;
    padding: 40px 20px;
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(74, 222, 128, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.about-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px;
}

.about-version {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.about-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px;
    line-height: 1.6;
}

.about-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.about-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.about-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.engine-item input[type="checkbox"] {
    display: none;
}

.engine-item .toggle-switch {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s ease;
}

.engine-item .toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.engine-item input[type="checkbox"]:checked + .toggle-switch {
    background: var(--primary-color);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.btn-save {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: #000;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
}

.btn-reset {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lucide {
    display: inline-block;
    line-height: 1;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    vertical-align: middle;
}

.wallpaper-halo {
    position: fixed;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.3) 0%, rgba(74, 222, 128, 0.1) 40%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translate(-50%, -50%) scale(0.5);
}

.wallpaper-halo.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.wallpaper-halo.updating {
    animation: pulse 0.5s ease-out;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.immersive-mode {
    overflow: hidden;
}

.immersive-mode .settings-icon,
.immersive-mode .clock,
.immersive-mode .apps-grid,
.immersive-mode .taskbar {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.immersive-mode .context-menu {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.immersive-mode .settings-modal {
    z-index: 3000 !important;
}

.immersive-mode .settings-modal .modal-container {
    z-index: 3001 !important;
}

.immersive-mode .search-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
}

.immersive-mode .search-box-wrapper {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
}

.immersive-exit {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.immersive-exit:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 768px) {
    .clock {
        font-size: 48px;
        margin-bottom: 30px;
    }

    .search-container {
        max-width: 400px;
    }

    .apps-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        margin-top: 40px;
    }

    .app-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .app-icon {
        width: 30px;
        height: 30px;
    }

    .taskbar-center {
        gap: 12px;
    }

    .taskbar-item {
        width: 36px;
        height: 36px;
    }

    .taskbar-item img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .clock {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .search-container {
        max-width: 320px;
    }

    .search-input {
        font-size: 14px;
    }

    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 30px;
    }

    .app-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .app-icon {
        width: 24px;
        height: 24px;
    }

    .app-name {
        font-size: 11px;
    }

    .taskbar-center {
        gap: 8px;
    }

    .taskbar-item {
        width: 32px;
        height: 32px;
    }

    .taskbar-item img {
        width: 18px;
        height: 18px;
    }

    .modal-content {
        width: 95%;
    }
}

.add-shortcut-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4000;
    align-items: center;
    justify-content: center;
}

.add-shortcut-modal.show {
    display: flex;
}

.add-shortcut-container {
    position: relative;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: modalFadeIn 0.25s ease;
}

.add-shortcut-container .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.add-shortcut-container .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.add-shortcut-container .modal-body {
    padding: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-hint {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
}

.preview-section {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.preview-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 12px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.preview-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
}

.preview-item img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.preview-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.add-shortcut-container .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.add-shortcut-container .btn {
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.add-shortcut-container .btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.add-shortcut-container .btn-primary:hover:not(:disabled) {
    background: var(--primary-color-hover);
    transform: translateY(-1px);
}

.add-shortcut-container .btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.add-shortcut-container .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.add-shortcut-container .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.site-repo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

.site-repo-modal.show {
    display: flex;
}

.site-repo-container {
    position: relative;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: modalFadeIn 0.25s ease;
}

.repo-sidebar {
    width: 200px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.repo-sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.repo-sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.repo-nav {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

.repo-nav-item {
    width: 100%;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.repo-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.repo-nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-color);
}

.repo-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.repo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.repo-search {
    flex: 1;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.5);
}

.repo-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
}

.repo-search input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.repo-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.repo-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.repo-category-tags {
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.repo-category-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.repo-category-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.repo-category-tag.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.repo-site-list {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.repo-site-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.repo-site-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color);
    transform: translateY(-2px);
}

.repo-site-card.added {
    opacity: 0.6;
    border-color: var(--primary-color);
}

.repo-site-card.added::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.repo-site-card.added::after i {
    color: #ffffff;
    font-size: 10px;
}

.repo-site-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.repo-site-icon img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.repo-site-fallback {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

.repo-site-name {
    font-size: 12px;
    color: var(--text-primary);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repo-site-desc {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.add-dropdown {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.add-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    min-width: 140px;
    box-shadow: var(--shadow);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.square-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.square-panel-overlay.show {
    opacity: 1;
    visibility: visible;
}

.square-panel {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 1388px;
    height: 630px;
    max-height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(30px);
    border-radius: 24px 24px 0 0;
    display: flex;
    z-index: 1000;
    overflow: hidden;
    transition: transform 0.3s ease-out;
}

.square-panel.show {
    transform: translateX(-50%) translateY(0);
}

.square-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.15s ease;
}

.square-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.square-close:active {
    transform: scale(0.9);
}

.square-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 208px;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.5);
    padding-top: 60px;
}

.sidebar-title {
    padding: 0 20px 20px;
    font-size: 16px;
    color: white;
    font-weight: 500;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    margin-bottom: 4px;
    border-radius: 12px;
    font-size: 14px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav-item.active {
    background: white;
    color: black;
}

.square-content {
    flex: 1;
    padding-left: 208px;
    transition: padding-left 0.5s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.square-tab-content {
    display: none;
    flex: 1;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.square-tab-content.active {
    display: flex;
}

.square-tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    padding-right: 60px;
    border-bottom: 1px solid var(--border-color);
}

.header-title {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    min-width: 168px;
}

.tab-search input {
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 13px;
    flex: 1;
}

.tab-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.square-tab-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.square-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.square-category-tag {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
}

.square-category-tag:hover {
    background: rgba(255, 255, 255, 0.1);
}

.square-category-tag.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.square-site-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.square-site-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.square-site-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color);
}

.square-site-card.added {
    opacity: 0.6;
    border-color: var(--primary-color);
}

.square-site-card.added::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.square-site-card.added::after i {
    color: #ffffff;
    font-size: 10px;
}

.square-site-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.square-site-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.square-site-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

.square-site-name {
    font-size: 13px;
    color: white;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.square-site-desc {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-website-body {
    flex: 1;
    display: flex;
    padding: 20px;
    gap: 40px;
    overflow-y: auto;
}

.custom-preview {
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    min-width: 400px;
}

.preview-title {
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 16px;
    justify-content: center;
}

.preview-slot {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-slot.active-slot {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.custom-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

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

.form-group label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.form-group input[type="text"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus {
    border-color: var(--primary-color);
}

.form-group input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.url-input-group {
    display: flex;
    gap: 10px;
}

.url-input-group input {
    flex: 1;
}

.btn-fetch-info {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-fetch-info:hover {
    background: rgba(255, 255, 255, 0.2);
}

.icon-source-options {
    display: flex;
    gap: 8px;
}

.source-option {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.source-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.source-option.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-group input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}

.form-group input[type="range"] {
    width: 100%;
}

.form-actions {
    flex-direction: row;
    gap: 12px;
    margin-top: 20px;
}

.btn-save, .btn-save-continue {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-save {
    background: var(--primary-color);
    color: white;
}

.btn-save:hover {
    opacity: 0.9;
}

.btn-save-continue {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: white;
}

.btn-save-continue:hover {
    background: rgba(255, 255, 255, 0.2);
}

.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.widget-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.widget-card:hover {
    border-color: var(--primary-color);
}

.widget-preview {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
}

.widget-preview-content {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.calendar-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.calendar-header {
    font-size: 10px;
    opacity: 0.8;
}

.calendar-date {
    font-size: 28px;
    font-weight: bold;
}

.weather-widget {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.weather-icon {
    font-size: 24px;
}

.weather-temp {
    font-size: 18px;
    font-weight: bold;
}

.quote-widget {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.quote-icon {
    font-size: 24px;
}

.quote-text {
    font-size: 10px;
}

.clock-widget {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.clock-time {
    font-size: 16px;
    font-weight: bold;
}

.notes-widget {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.notes-icon {
    font-size: 24px;
}

.notes-title {
    font-size: 10px;
}

.countdown-widget {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.countdown-title {
    font-size: 10px;
}

.countdown-time {
    font-size: 14px;
    font-weight: bold;
}

.widget-info {
    padding: 12px;
}

.widget-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 4px;
}

.widget-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.widget-users {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.widget-add-btn {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.widget-add-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.add-script-dropdown {
    position: relative;
}

.add-script-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-script-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.add-script-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    min-width: 160px;
    box-shadow: var(--shadow);
    z-index: 10;
    display: none;
}

.add-script-dropdown.show .add-script-menu {
    display: block;
}

.menu-option {
    padding: 10px 12px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.menu-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.script-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.script-category {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 6px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.script-category:hover {
    background: rgba(255, 255, 255, 0.1);
}

.script-category.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.script-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.script-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.script-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 24px;
    flex-shrink: 0;
}

.script-info {
    flex: 1;
    min-width: 0;
}

.script-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 4px;
}

.script-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.script-author {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
}

.script-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.script-sites {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.script-actions {
    display: flex;
    align-items: flex-start;
}

.script-toggle {
    position: relative;
    width: 36px;
    height: 20px;
    cursor: pointer;
}

.script-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: background 0.25s ease;
}

.toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.script-toggle input:checked + .toggle-track {
    background: var(--primary-color);
}

.script-toggle input:checked + .toggle-track::after {
    transform: translateX(16px);
}

.wallpaper-tabs {
    display: flex;
    gap: 8px;
}

.wallpaper-tab {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 6px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallpaper-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wallpaper-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.wallpaper-body {
    padding: 16px;
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(192px, 1fr));
    grid-auto-rows: 110px;
    gap: 12px;
}