/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Moderustic', sans-serif;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Light Mode (Default) */
body.light {
    background-color: #f0f0f0;
    color: #000000;
}

/* Dark Mode */
body.dark {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Menu Bar */
.menu-bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 10px;
    z-index: 1000;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

body.dark .menu-bar {
    background-color: rgba(30, 30, 30, 0.9);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}

.menu-logo {
    height: 20px;
    margin-right: 20px;
}

.menu-item {
    margin-right: 20px;
    color: black;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Moderustic', sans-serif;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 5px;
    border-radius: 5px;
}

body.dark .menu-item {
    color: #ffffff;
}

.menu-item:hover {
    transform: scale(1.1);
}

body.light .menu-item:hover {
    color: black;
}

body.dark .menu-item:hover {
    color: #bbbbbb;
}

.menu-item:active {
    transform: scale(1);
}

body.light .menu-item:active {
    color: #aaa;
}

body.dark .menu-item:active {
    color: #777;
}

/* Adjust desktop position to accommodate menu bar */
.desktop {
    position: relative;
    width: 100%;
    height: calc(100vh - 30px);
    background: url('images/desktop-background.png') no-repeat center center fixed;
    background-size: cover;
    overflow: hidden;
    top: 30px;
}

/* Dock */
.dock {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    width: calc(100% - 40px);
    max-width: 1000px;
    box-shadow: 0px 2px 5px rgba(79, 79, 79, 0.2);
    transition: background-color 0.3s ease;
}

body.dark .dock {
    background-color: rgba(30, 30, 30, 0.9);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}

.dock-icons {
    display: flex;
    align-items: center;
    flex: 1;
}

.dock-icon {
    width: 40px;
    height: 40px;
    margin: 0 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.dock-icon:hover {
    transform: scale(1.2);
}

.dock-icon-container {
    display: flex;
    align-items: center;
    position: relative;
}

/* Separator Line */
.dock-icon-container:nth-child(2)::before {
    content: "";
    display: block;
    width: 2px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    margin-right: 10px;
    margin-left: 10px;
}

/* Container for clock and separator line */
.taskbar-clock-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Separator Line */
.taskbar-clock-container::before {
    content: "";
    display: block;
    width: 2px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.2);
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
}

/* Clock */
.taskbar-clock {
    margin-left: auto;
}

.app-name {
    margin-top: 5px;
    color: white;
    text-shadow: 1px 1px 2px black;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none;
}

/* Remove taskbar */
.taskbar {
    display: none;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.icon img {
    width: 50px;
    height: 50px;
}

.icon span {
    margin-top: 5px;
    color: white;
    text-shadow: 1px 1px 2px black;
}

/* Windows */
.window {
    position: absolute;
    top: 36.5%;
    left: 36%;
    width: 500px;
    height: 350px;
    background-color: #f5f5f5;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    resize: both;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark .window {
    background-color: #2a2a2a;
    color: #e0e0e0;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.8);
}

/* Terminal Window - Taller for commands */
#terminal-window {
    width: 600px;
    height: 450px;
}

/* Notes Window - Larger for writing */
#notes-window {
    width: 650px;
    height: 500px;
}

/* Files Window - Wide for file listings */
#files-window {
    width: 550px;
    height: 400px;
}

/* Calendar Window - Square layout */
#calendar-window {
    width: 450px;
    height: 450px;
}

/* Settings Window - Medium size */
#settings-window {
    width: 500px;
    height: 400px;
}

/* Bin Window - Smaller */
#bin-window {
    width: 450px;
    height: 350px;
}

/* Launcher Window */
.launcher-window {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 350px;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    display: none;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.5);
    animation-duration: 0.5s;
    animation-fill-mode: both;
    transition: background-color 0.3s ease;
}

body.dark .launcher-window {
    background-color: rgba(30, 30, 30, 0.95);
}

.launcher-header {
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark .launcher-header {
    background-color: rgba(40, 40, 40, 0.95);
    color: #ffffff;
}

/* Launcher Search Bar */
.launcher-search {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark .launcher-search {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border-color: #555;
}

/* Search Results */
.search-results {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results li {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-results li:hover {
    background-color: #f0f0f0;
}

body.dark .search-results li:hover {
    background-color: #444;
}

.window-header {
    background-color: #ddd;
    color: #333;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark .window-header {
    background-color: #3a3a3a;
    color: #e0e0e0;
}

.window-title {
    font-weight: bold;
    font-size: 16px;
}

.close-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.close-button:hover {
    color: #000;
}

.window-body {
    padding: 15px;
    flex: 1;
    background-color: #fafafa;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark .window-body {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.launcher-body {
    padding: 15px;
    flex: 1;
    background-color: rgba(255, 255, 255, 0.5);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: background-color 0.3s ease;
}

body.dark .launcher-body {
    background-color: rgba(30, 30, 30, 0.95);
}

.launcher-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px; /* Add space between the icon and text */
}

#terminal-output {
    height: 80%;
    overflow-y: auto;
    background-color: #202020; /* Dark grey for a clean and elegant look */
    color: #f0f0f0; /* Soft white text for clear readability */
    padding: 15px;
    border-radius: 12px; /* Slightly more rounded for a modern touch */
    font-family: "Courier New", Courier, monospace;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6); /* Enhanced floating effect */
    border: 1px solid #2b2b2b; /* Subtle border for separation */
}

#terminal-input {
    width: 95%;
    padding: 14px;
    border: 1px solid #555; /* Darker border for structure */
    border-radius: 10px; /* Smooth corners for consistency */
    font-family: "Courier New", Courier, monospace;
    background-color: #2a2a2a; /* Neutral grey for the input field */
    color: #ffffff; /* Bright white for text clarity */
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), /* Depth inside the field */
                0 8px 16px rgba(0, 0, 0, 0.6); /* Floating effect */
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth animations */
}

#terminal-input:focus {
    border-color: #0078d4; /* Subtle blue for focus (modern and professional) */
    box-shadow: 0 0 10px rgba(0, 120, 212, 0.8); /* Soft blue glow on focus */
    outline: none; /* Remove default outline */
}

/* Status Dot */
.dock-icon-container .terminal-status-dot {
    position: absolute;
    bottom: -3px;
    left: 63%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: grey;
    border-radius: 50%;
    display: none;
}

.dock-icon-container .launcher-status-dot {
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: grey;
    border-radius: 50%;
    display: none;
}

.dock-icon-container .notes-status-dot {
    position: absolute;
    bottom: -3px;
    left: 48%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: grey;
    border-radius: 50%;
    display: none;
}

.dock-icon-container .files-status-dot {
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: grey;
    border-radius: 50%;
    display: none;
}

.dock-icon-container .settings-status-dot {
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: grey;
    border-radius: 50%;
    display: none;
}

.dock-icon-container .calendar-status-dot {
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: grey;
    border-radius: 50%;
    display: none;
}

/* Notes Window */
.notes-title-input, .notes-content-input {
    width: 95%;
    margin-bottom: 10px;
    padding: 10px;
    border: 5px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark .notes-title-input, body.dark .notes-content-input {
    background-color: #3a3a3a;
    color: #e0e0e0;
    border-color: #555;
}

.notes-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.button-3d {
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: 2px solid #555;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 4px 0px rgba(0, 0, 0, 0.5), 0px 8px 15px rgba(0, 0, 0, 0.3);
}

body.dark .button-3d {
    background-color: #444;
    border-color: #666;
}

.button-3d:hover {
    background-color: #555;
    border-color: #777;
    box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.3), 0px 6px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
}

body.dark .button-3d:hover {
    background-color: #555;
    border-color: #888;
}

.button-3d:active {
    background-color: #444;
    border-color: #666;
    box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(4px);
}

/* Light Mode */
body.light {
    background-color: #ffffff; /* White background */
    color: #000000; /* Black text */
}

.window.light {
    background-color: #f5f5f5; /* Light gray window background */
    color: #333333; /* Dark text inside windows */
}

.button-3d.light {
    background-color: #dddddd; /* Light button background */
    color: #333333; /* Dark text on buttons */
    border-color: #cccccc;
}

/* Dark Mode */
body.dark {
    background-color: #1a1a1a; /* Black background */
    color: #ffffff; /* White text */
}

.window.dark {
    background-color: #2a2a2a; /* Dark window background */
    color: #e0e0e0; /* Light text inside windows */
}

#notes-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 200px; /* Adjust the height as needed */
    overflow-y: auto;  /* Enables vertical scrolling */
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark #notes-list {
    border-color: #555;
    background-color: #2a2a2a;
}

#notes-list li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark #notes-list li {
    background-color: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

body.dark #notes-list li:hover {
    background-color: #444;
}

/*Files*/
.button-clear {
    border: none;
    background: none;
    padding: 0;
}

.button-icon {
    width: 20px;
    height: 20px;
}

/* Files List Styling */
#files-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    max-height: 300px;
    overflow-y: auto;
}

#files-list li {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.dark #files-list li {
    background-color: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

#files-list li:hover {
    background-color: #e8e8e8;
    border-color: #ccc;
}

body.dark #files-list li:hover {
    background-color: #444;
    border-color: #666;
}

.file-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

#files-list li span {
    flex-grow: 1;
    margin-left: 0;
}

/* Bin List Styling */
#bin-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    max-height: 300px;
    overflow-y: auto;
}

#bin-list li {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.dark #bin-list li {
    background-color: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

#bin-list li:hover {
    background-color: #e8e8e8;
    border-color: #ccc;
}

body.dark #bin-list li:hover {
    background-color: #444;
    border-color: #666;
}

.restore-button {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 5px;
}

.restore-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
}

.restore-button:active {
    transform: translateY(1px);
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.2);
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-option label {
    font-size: 14px;
    color: #333;
    transition: color 0.3s ease;
}

body.dark .settings-option label {
    color: #e0e0e0;
}

body.light {
    background-color: #ffffff;
    color: #ffffff;
}

body.dark {
    background-color: #1a1a1a;
    color: #ffffff;
}

.window.light {
    background-color: #f5f5f5;
}

.window.dark {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

.delete-button {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 5px;
}

.delete-button:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
}

.delete-button:active {
    transform: translateY(1px);
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.2);
}

.file-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.back-button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 5px;
}

.back-button:hover {
    background-color: #555;
    transform: translateY(-2px);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.3);
}

.back-button:active {
    transform: translateY(1px);
    box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.2);
}

/* Calendar */
.calendar-header {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

body.dark .calendar-header {
    color: #ffffff;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark .calendar-day {
    background-color: #3a3a3a;
    color: #e0e0e0;
}

.calendar-day.empty {
    background-color: transparent;
    cursor: default;
}

body.dark .calendar-day.empty {
    background-color: transparent;
}

.calendar-day:hover {
    background-color: #ddd;
}

body.dark .calendar-day:hover {
    background-color: #4a4a4a;
}

.calendar-day.current-day {
    background-color: #337ab7; /* Highlight color for the current day */
    color: white;
    font-weight: bold;
}

body.dark .calendar-day.current-day {
    background-color: #4a90e2; /* Brighter blue for dark mode */
    color: white;
}

/* File Editor Modal */
.file-editor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.file-editor-modal.active {
    display: flex;
}

.file-editor-content {
    width: 600px;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.dark .file-editor-content {
    background-color: #2a2a2a;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.7);
}

.file-editor-header {
    background: linear-gradient(to bottom, #e0e0e0, #c0c0c0);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #999;
}

body.dark .file-editor-header {
    background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
    border-bottom: 1px solid #1a1a1a;
}

.file-editor-title {
    font-weight: bold;
    font-size: 14px;
}

.file-editor-body {
    flex: 1;
    padding: 15px;
    overflow: auto;
}

#file-content-editor {
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: none;
    background-color: white;
    color: #000;
}

body.dark #file-content-editor {
    background-color: #1a1a1a;
    color: #e0e0e0;
    border-color: #444;
}

#file-content-editor:focus {
    outline: none;
    border-color: #337ab7;
}

body.dark #file-content-editor:focus {
    border-color: #4a90e2;
}

.file-editor-footer {
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #ccc;
}

body.dark .file-editor-footer {
    border-top-color: #444;
}
