/* * ====================================================
 * Global Styles and CSS Variables (Unified)
 * ====================================================
 */

/* 1. CSS Variables for Theming (from Color Picker CSS) */
:root {
    /* Core Background/Text (Based on original body styles) */
    --primary-bg-transparent: rgba(0, 0, 0, 0.85); 
    --text-color: white; 
    
    /* Accent Color (Controlled by the picker) */
    --accent-color: #fde047; /* Default Yellow Accent */
    --accent-color-rgb: 253, 224, 71; /* Default RGB for shadows/effects */
    
    /* Glows */
    --container-glow: 0px 0px 10px rgba(255, 255, 255, 0.5);
    --focus-glow: 0 0 10px rgba(var(--accent-color-rgb), 0.8);

    font-family: Consolas, monospace;
}

/* 2. Global HTML & Body Setup (Fixed Syntax & Merged) */
html {
    overflow: scroll; /*enable scroll*/
    scrollbar-width: none; /* Firefox: Hides the scrollbar */
    overflow-x: hidden; /* Prevent horizontal scrolling */
} /* <-- FIXED: Added missing closing brace */

body {
    margin: 0;
    padding: 0;
    /* --- CRITICAL FIX: Removed conflicting display: flex/justify-content/align-items rules --- */
    font-family: Consolas, monospace;
    color: var(--text-color); /* Now uses variable for color */
    position: relative;
    height: 100vh;
    padding-bottom: 50px;
    transition: overflow 0.5s ease;
    overflow: scroll;
    scrollbar-width: none;
    overflow-x: hidden;
}

/* Hide scrollbar in Webkit browsers (Chrome, Safari, etc.) */
body::-webkit-scrollbar {
    display: none; /* Hides the scrollbar */
}

/* * ====================================================
 * Application Components (Original styles.css)
 * ====================================================
 */

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: background 0.5s ease-in-out;
    background-image: url('images/stars21.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Main Content Container */
.container {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
    transition: margin-left 0.3s ease-in-out;
}

/* Clock Styles */
#clock-container {
    background-color: rgba(0, 0, 0, 0.5);
    border: 0px solid rgba(255, 255, 0.5);
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    margin-top: 75px;
}

#clock {
    font-size: 3rem;
}

#date {
    font-size: 1.5rem;
}

/* Menu Styles */
.menu {
    background-color: var(--primary-bg-transparent); /* Used variable */
    border: 0px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    width: auto;
    min-width: 40%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    box-shadow: var(--container-glow); /* Used variable */
}

/* Textbox Styling */
textarea {
    background-color: transparent;
    color: var(--text-color);
    border: 0px;
    border-radius: 0px;
    padding: 0px;
    font-family: Consolas, monospace;
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    height: 350px;
    resize: vertical;
    box-sizing: border-box;
}

textarea:focus {
    outline: none;
    border: 0px;
}

/* New container for Toggle Wallpaper Button */
.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

/* Toggle Button */
#toggle-wallpaper-btn {
    background-color: var(--primary-bg-transparent);
    color: var(--text-color);
    font-size: 16px;
    font-family: Consolas, monospace;
    padding: 12px 24px;
    border: 0px;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 20px;
    transition: background-color 0.3s ease-in-out, transform 0.2s;
    box-shadow: 0px 0px 0px rgba(255, 255, 255, 0.5);
}

#toggle-wallpaper-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Heading */
h1 {
    font-size: 12px;
}

/* Password Input Field */
#passwordInput {
    background-color: var(--primary-bg-transparent);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 10px;
    font-family: Consolas, monospace;
    font-size: 1rem;
    width: 100%;
    max-width: 250px;
    box-sizing: border-box;
    margin-bottom: 15px;
    text-align: center;
}

#passwordInput:focus {
    outline: none;
    border-color: white;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.75);
}

/* Go Button */
button[type="submit"] {
    background-color: var(--primary-bg-transparent);
    color: var(--text-color);
    font-size: 1rem;
    font-family: Consolas, monospace;
    padding: 7px 7px;
    border: 0px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease-in-out, transform 0.2s;
    box-shadow: var(--container-glow);
    margin-left: 10px;
    margin-top: 15px;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 30px;
    left: 0;
    width: 25px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-color);
    padding: 20px;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    transform: translateX(-100%);
}

/* Sidebar Links - Initially Hidden */
.sidebar a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    margin: 10px 0 10px;
    padding-top: 50px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Hover Effect */
.sidebar a:hover {
    font-family: Consolas;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
    transition: background-color 0.1s ease-in-out, transform 0.1s;
    color: #f1f1f1;
}

/* Sidebar Open State - Make Links Visible */
.sidebar.expanded a {
    opacity: 1;
}

/* Sidebar Open State */
.sidebar.expanded {
    transform: translateX(0);
}

/* Ensure the hamburger menu is at the top-left */
.hamburger-wrapper {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
}

.hamburger-menu {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 30px;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1100;
}

/* Adjust Main Content */
.container {
    margin-left: 0;
    transition: margin-left 0.3s ease-in-out;
}

.sidebar.expanded + .container {
    margin-left: 250px;
}

.search-container {
    /* Set a specific, non-100% width so the centering is visible */
    display: flex;
	justify-content: center;
    padding: 20px; 
}

input[type="text"] {
	background-color: #000000;
	color: #ffffff;
	padding: 21px;
	border: none;
	margin-top: 40px;
	box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
	
	

/* On-Screen Keyboard Styles */
#keyboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Keyboard Row Layout - Stacked */
#keyboard .row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-direction: row;
}

/* Uniform Key Sizes */
.key {
    padding: 15px;
    font-size: 1.5rem;
    background-color: var(--primary-bg-transparent);
    color: var(--text-color);
    border: 0px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--container-glow);
    flex: 1;
    min-width: 60px;
    height: 60px;
}

.key:active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Adjustments for Specific Keys in Bottom Row */
#keyboard .row:last-child {
    justify-content: space-between;
}

/* Backspace, 0, and Submit keys will now have the same size */
#keyboard .row:last-child .key[data-key="backspace"],
#keyboard .row:last-child .key[data-key="0"],
#keyboard .row:last-child .key[data-key="submit"] {
    flex-basis: 30%;
}


/* Calendar iframe */
iframe {
    width: 1000px;
    height: 550px;
    border: none;
    border-radius: 8px;
}

/* Checklist Main Container */
.checklist-container {
    width: 77%;
    max-width: 800px;
    text-align: center;
    margin: 100px auto 40px auto;
    background-color: var(--primary-bg-transparent);
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: var(--container-glow);
    color: var(--text-color);
}

/* Checklist Heading */
.checklist-container h2 {
    margin-bottom: 30px;
    margin-top: 20px;
    font-family: Consolas, monospace;
    font-size: 1.5rem;
}

/* Input Box */
#inputBox {
    width: 100%;
    padding: 20px;
    font-size: 16px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    background-color: rgba(0,0,0,0.6);
    color: var(--text-color);
    font-family: Consolas, monospace;
    box-sizing: border-box;
}

#inputBox:focus {
    outline: none;
    border-color: white;
    box-shadow: 0px 0px 8px rgba(255,255,255,0.75);
}

/* Checklist List */
#checklist {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

/* Checklist Items */
#checklist li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    background: rgba(0,0,0,0.6);
    word-break: break-word;
    transition: transform 0.2s, box-shadow 0.3s;
    color: var(--text-color);
}

#checklist li:hover {
    transform: scale(1.02);
    box-shadow: 0px 0px 10px rgba(255,255,255,0.6);
}

/* Text Inside Items */
.item-left {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.item-text {
    margin-left: 8px;
    font-size: 16px;
}

/* Completed Items */
.completed {
    text-decoration: none;
    color: rgba(200,200,200,0.7);
}

.completed .item-text {
    text-decoration: line-through;
    color: gray;
}

/* Delete Button */
.delete-btn {
    display: none;
    border: none;
    background: white;
    color: black;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
}

.delete-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.8);
}

/* Show delete button only on completed items */
li.completed .delete-btn {
    display: inline;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .checklist-container {
        width: 95%;
    }
    .item-text {
        font-size: 14px;
    }
}

input[type="checkbox"] {
    transform: scale(1.5);
}

/* Calendar Styles */
.calendar {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    width: 90%;
    height: 95%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    font-family: Consolas, monospace;
    color: var(--text-color);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(5, 1fr);
    gap: 8px;
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

.weekdays {
    display: contents;
}

.weekdays span {
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    color: #ddd;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

.day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px;
    box-sizing: border-box;
    min-height: 90px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1.1rem;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    position: relative;
}

.day:hover {
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.day span {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #eee;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}

.day textarea {
    width: 100%;
    padding: 6px;
    margin-top: 5px;
    box-sizing: border-box;
    font-size: 0.85rem;
    font-family: Consolas, monospace;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-color);
    border: none;
    border-radius: 6px;
    resize: vertical;
    min-height: 50px;
    max-height: 60px;
    overflow-y: auto;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
}

.day textarea:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    color: var(--text-color);
}

/* Navigation Buttons */

.nav-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 0 10px 10px;
}

.nav-buttons button {
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--text-color);
    border: none;
    cursor: pointer;
    font-family: Consolas, monospace;
    font-size: 1rem;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-buttons button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.today-highlight {
    background-color: white !important;
    color: black !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}


/* * ====================================================
 * Color Selector Module Styles (from color_picker_styles.css)
 * ====================================================
 */

/* Styling for the Color Selector Container */
.color-picker-container {
    background-color: var(--primary-bg-transparent);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--container-glow);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.color-picker-container h1 {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.color-selector-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.color-selector-group label {
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Custom styling for the native color picker input */
#accentColorPicker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 80px;
    height: 80px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
}

/* Customize the color swatch to match the glow aesthetic */
#accentColorPicker::-webkit-color-swatch-wrapper { padding: 0; }
#accentColorPicker::-webkit-color-swatch {
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    box-shadow: var(--focus-glow);
    transition: all 0.3s;
}
#accentColorPicker::-moz-color-swatch-wrapper { padding: 0; }
#accentColorPicker::-moz-color-swatch {
    border: 4px solid var(--accent-color);
    border-radius: 50%;
    box-shadow: var(--focus-glow);
    transition: all 0.3s;
}

.info-text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--text-color);
}

#hexDisplay {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent-color);
    transition: color 0.3s;
}