/* Windows 11 Style CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: #000;
    user-select: none;
}

/* Desktop Hintergrund */
.desktop-background {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.wallpaper {
    width: 100%;
    height: 100%;
    background: url('image/1.jpg') center center / cover no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, 80px);
    gap: 20px;
}

.desktop-icon {
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: white;
    text-align: center;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform: scale(1.05);
}

.desktop-icon.dragging {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.desktop-icon i {
    font-size: 32px;
    margin-bottom: 8px;
}

.desktop-icon span {
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.file-name {
    outline: none;
    border: none;
    padding: 2px 4px;
    border-radius: 3px;
    background: transparent;
    min-width: 60px;
    display: inline-block;
}

.file-name.editing {
    background: rgba(255, 255, 255, 0.1);
}

.file-icon {
    cursor: pointer;
}

.desktop-icon-img {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    border-radius: 4px;
}

/* Taskleiste */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
}

.taskbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.start-button {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.start-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-button i {
    font-size: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    gap: 8px;
    color: white;
}

.search-box input {
    background: none;
    border: none;
    color: white;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.taskbar-center {
    display: flex;
    align-items: center;
}

.taskbar-apps {
    display: flex;
    gap: 4px;
}

.taskbar-app {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    position: relative;
}

.taskbar-app:hover {
    background: rgba(255, 255, 255, 0.1);
}

.taskbar-app.active {
    background: rgba(255, 255, 255, 0.2);
}

.taskbar-app.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.taskbar-app-img {
    width: 20px;
    height: 20px;
    border-radius: 2px;
}

.taskbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.taskbar-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 14px;
}

.taskbar-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Start Menü */
.start-menu {
    position: fixed;
    bottom: 60px;
    left: 16px;
    width: 400px;
    background: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
    overflow: hidden;
}

.start-menu.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.start-menu-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.start-menu-content {
    padding: 20px;
}

.start-menu-section {
    margin-bottom: 24px;
}

.start-menu-section h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.start-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.start-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    text-align: center;
}

.start-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-menu-item i {
    font-size: 24px;
    margin-bottom: 8px;
}

.start-menu-item span {
    font-size: 12px;
}

.start-menu-icon-img {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.start-menu-apps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.start-menu-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    text-align: center;
}

.start-menu-app:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-menu-app i {
    font-size: 20px;
    margin-bottom: 8px;
}

.start-menu-app span {
    font-size: 11px;
}

.start-menu-app-img {
    width: 20px;
    height: 20px;
    margin-bottom: 8px;
    border-radius: 4px;
}

/* Fenster */
.windows-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

.window {
    position: absolute;
    background: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    min-height: 300px;
    pointer-events: all;
    display: none;
}

.window.show {
    display: block;
    animation: windowOpen 0.3s ease;
}

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.window-header {
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    cursor: move;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.window-title-img {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.window-controls {
    display: flex;
    gap: 4px;
}

.window-control {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 12px;
}

.window-control:hover {
    background: rgba(255, 255, 255, 0.1);
}

.window-control.close:hover {
    background: #e81123;
}

.window-content {
    padding: 20px;
    color: white;
    height: calc(100% - 48px);
    overflow-y: auto;
}

/* Datei Explorer */
.explorer-sidebar {
    width: 200px;
    float: left;
    margin-right: 20px;
}

.explorer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.explorer-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.explorer-item.active {
    background: rgba(0, 120, 212, 0.3);
}

.explorer-main {
    margin-left: 220px;
}

.explorer-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.toolbar-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.explorer-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.file-item i {
    font-size: 32px;
    margin-bottom: 8px;
    color: #0078d4;
}

/* Browser */
.browser-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.browser-nav {
    display: flex;
    gap: 4px;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.browser-address {
    flex: 1;
}

.browser-address input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    outline: none;
}

.browser-address input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.browser-actions {
    display: flex;
    gap: 4px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.browser-content {
    text-align: center;
    padding: 40px 20px;
}

.browser-welcome h1 {
    font-size: 32px;
    margin-bottom: 16px;
    color: white;
}

.browser-welcome p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.search-box-large {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 16px 24px;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.search-box-large input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    outline: none;
}

.search-box-large input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box-large button {
    padding: 8px 24px;
    border: none;
    border-radius: 20px;
    background: #0078d4;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-box-large button:hover {
    background: #106ebe;
}

/* Store */
.store-header {
    text-align: center;
    margin-bottom: 32px;
}

.store-header h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

.store-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px 20px;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.store-search input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    outline: none;
}

.store-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.store-categories {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    justify-content: center;
}

.category-item {
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.category-item.active {
    background: #0078d4;
    color: white;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.app-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.app-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.app-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.app-info h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

.app-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 16px;
}

.install-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 20px;
    background: #0078d4;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.install-btn:hover {
    background: #106ebe;
}

/* Einstellungen */
.settings-sidebar {
    width: 200px;
    float: left;
    margin-right: 20px;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.settings-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-item.active {
    background: rgba(0, 120, 212, 0.3);
}

.settings-main {
    margin-left: 220px;
}

.settings-main h1 {
    font-size: 28px;
    margin-bottom: 24px;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-item label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.setting-item input[type="range"] {
    width: 200px;
}

.setting-item select {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    outline: none;
}

.storage-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.storage-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.storage-used {
    height: 100%;
    background: #0078d4;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Benachrichtigungen */
.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.notification {
    background: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Kontext Menü */
.context-menu {
    position: fixed;
    background: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 160px;
    z-index: 1002;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.context-menu.show {
    display: block;
}

.context-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 14px;
}

.context-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Elvenar Fenster */
.elvenar-content {
    padding: 0;
    height: calc(100% - 48px);
    overflow: hidden;
}

.elvenar-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 12px 12px;
}

/* Heroes of History Fenster */
.heroes-history-content {
    padding: 0;
    height: calc(100% - 48px);
    overflow: hidden;
}

.heroes-history-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 12px 12px;
}

/* Notepad Fenster */
.notepad-content {
    padding: 0;
    height: calc(100% - 48px);
    display: flex;
    flex-direction: column;
}

.notepad-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notepad-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.notepad-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.notepad-btn i {
    font-size: 12px;
}

.file-name-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    outline: none;
}

.file-name-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#notepadTextarea {
    flex: 1;
    width: 100%;
    padding: 16px;
    background: transparent;
    border: none;
    color: white;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: none;
}

#notepadTextarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-icons {
        grid-template-columns: repeat(auto-fit, 60px);
        gap: 15px;
    }
    
    .desktop-icon {
        width: 60px;
        height: 60px;
    }
    
    .desktop-icon i {
        font-size: 24px;
    }
    
    .desktop-icon span {
        font-size: 10px;
    }
    
    .start-menu {
        width: 90vw;
        left: 5vw;
    }
    
    .window {
        min-width: 90vw;
        min-height: 80vh;
        left: 5vw;
        top: 10vh;
    }
}
