/* Windows 11 Desktop Styles */
.win11-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url('../images/win11-wallpaper.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Taskbar Styles */
.win11-taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 1000;
}

.taskbar-start {
    display: flex;
    align-items: center;
}

#start-button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#start-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

#start-button img.windows-logo {
    width: 20px;
    height: 20px;
}

.taskbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.taskbar-apps {
    display: flex;
    gap: 4px;
    height: 100%;
    align-items: center;
}

.taskbar-icon {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
    color: var(--win11-text);
}

.taskbar-icon::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: transparent;
    transition: background-color 0.2s;
}

.taskbar-icon.active::after {
    background: var(--win11-primary);
}

.taskbar-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.taskbar-icon i {
    font-size: 20px;
}

.taskbar-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    pointer-events: none;
    margin-bottom: 8px;
}

.taskbar-icon:hover .taskbar-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Dark mode adjustments */
[data-theme="dark"] .taskbar-icon {
    color: #fff;
}

[data-theme="dark"] .taskbar-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Desktop Icons */
.win11-desktop {
    padding: 20px;
    height: calc(100vh - 48px);
}

.desktop-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    gap: 20px;
    padding: 20px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80px;
    text-decoration: none;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.icon-wrapper i {
    font-size: 32px;
}

.icon-label {
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
    max-width: 100%;
}

/* System Tray */
.system-tray {
    display: flex;
    align-items: center;
    gap: 16px;
}

.time-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
    line-height: 1.2;
}

/* Dark Mode */
[data-theme="dark"] .win11-taskbar {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .desktop-icon {
    color: #fff;
}

/* Start Menu Styles */
.win11-start-menu {
    position: fixed;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 600px;
    height: 650px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.win11-start-menu.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.start-menu-header {
    flex: 1;
    overflow-y: auto;
}

.pinned-section,
.all-apps-section {
    margin-bottom: 24px;
}

.pinned-section h3,
.all-apps-section h3 {
    font-size: 14px;
    color: var(--win11-text);
    margin-bottom: 16px;
}

.start-menu-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.start-menu-grid li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--win11-text);
    transition: background-color 0.2s;
}

.start-menu-grid li a:hover {
    background: rgba(0, 0, 0, 0.05);
}

.start-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.start-menu-list li a {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--win11-text);
    transition: background-color 0.2s;
}

.start-menu-list li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.start-menu-list li a:hover {
    background: rgba(0, 0, 0, 0.05);
}

.start-menu-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

#power-button {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--win11-text);
    border-radius: 4px;
    transition: background-color 0.2s;
}

#power-button:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Dark mode styles for start menu */
[data-theme="dark"] .win11-start-menu {
    background: rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .start-menu-grid li a:hover,
[data-theme="dark"] .start-menu-list li a:hover,
[data-theme="dark"] #power-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .start-menu-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Add debug styles to check if menu is visible */
.win11-start-menu.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Start Menu Search */
.start-menu-search {
    margin-bottom: 20px;
}

.search-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--win11-text);
    width: 100%;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
}

/* Pinned Apps */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.all-apps-button {
    background: transparent;
    border: none;
    color: var(--win11-text);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pinned-apps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--win11-text);
    padding: 12px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.app-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.app-icon i {
    font-size: 24px;
    margin-bottom: 8px;
}

.app-icon span {
    font-size: 12px;
    line-height: 1.2;
}

/* Recommended Section */
.recommended-section {
    margin-top: 24px;
}

.recommended-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recommended-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--win11-text);
    transition: background-color 0.2s;
}

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

.item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 14px;
    font-weight: 500;
}

.item-date {
    font-size: 12px;
    opacity: 0.7;
}

/* System Buttons */
.system-buttons {
    display: flex;
    gap: 8px;
}

.system-buttons button {
    background: transparent;
    border: none;
    color: var(--win11-text);
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.system-buttons button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dark Mode Styles */
[data-theme="dark"] .search-box {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .search-box input {
    color: #fff;
}

[data-theme="dark"] .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .app-icon,
[data-theme="dark"] .recommended-item {
    color: #fff;
}

[data-theme="dark"] .app-icon:hover,
[data-theme="dark"] .recommended-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Windows and File Manager Styles */
.win11-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.window-controls {
    display: flex;
    gap: 4px;
}

.window-control {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.window-control:hover {
    background: rgba(0, 0, 0, 0.05);
}

.window-control.close:hover {
    background: #e81123;
    color: white;
}

.window-toolbar {
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.toolbar-buttons {
    display: flex;
    gap: 4px;
}

.toolbar-buttons button {
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
}

.toolbar-buttons button:hover {
    background: rgba(0, 0, 0, 0.05);
}

.address-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    margin: 0 8px;
    padding: 4px;
    display: flex;
    align-items: center;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.breadcrumb-home {
    background: transparent;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.breadcrumb-home:hover {
    background: rgba(0, 0, 0, 0.05);
}

.breadcrumb-items {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.breadcrumb-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.breadcrumb-separator {
    color: #666;
    margin: 0 4px;
}

/* Search Box Styles */
.search-container {
    position: relative;
    min-width: 200px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    padding: 4px 8px;
    transition: background-color 0.2s;
}

.search-box:focus-within {
    background: #fff;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 4px;
    width: 100%;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
}

.search-filters {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
}

.search-filters:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Sidebar Styles */
.sidebar {
    width: 240px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 16px;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
    padding: 0 8px;
}

.quick-access-list,
.navigation-list,
.recent-pages-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-item,
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quick-item:hover,
.nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.quick-item i,
.nav-item i {
    width: 16px;
    text-align: center;
    font-size: 16px;
}

/* Dark mode adjustments */
[data-theme="dark"] .search-box,
[data-theme="dark"] .address-bar {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .search-box:focus-within {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .sidebar {
    background: rgba(0, 0, 0, 0.3);
}

.window-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.content-area {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.window-statusbar {
    padding: 8px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: #666;
}

/* Dark mode styles for file manager */
[data-theme="dark"] .win11-window {
    background: rgba(32, 32, 32, 0.95);
    color: #fff;
}

[data-theme="dark"] .window-header {
    background: rgba(32, 32, 32, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .window-control:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .address-bar {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .sidebar-section li:hover {
    background: rgba(255, 255, 255, 0.1);
} 