.systembar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 1rem;
  background: var(--muted-bg);
  color: var(--text);
}
.head-title {
  margin: 0;
}

.taskbar {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  height: 48px;
  padding: 0 1rem;
  background: var(--muted-bg);
  color: var(--text);
  position: relative;
}
.time {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.popup {
  position: absolute;
  bottom: 60px;
  right: 1rem;
  background: var(--muted-bg);
  color: var(--text);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 1rem;
  width: 240px;
  z-index: 1000;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.popup.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.menu-icon, .menu-btn {
  width: 48px;
  height: 48px;
  background: transparent;
  justify-content: center;
  border: none;
}

.menu-btn:hover {
  background: var(--card-bg);
}

.menu-btn {
    display: flex;             
    justify-content: center;   
    align-items: center;       
}

/* Start Menu Panel */
.start-menu {
  position: fixed;
  bottom: 56px; /* sits above the button */
  left: 8px;
  width: 260px;
  background: var(--card-bg);
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  padding: 1rem;
  display: none;
  animation: slideUp 0.2s ease;
  z-index: 100;
}

/* Inner Content */
.start-menu .menu-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Animation */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Visible State */
.start-menu.active {
  display: block;
}

.menu-list {
    list-style: none;
    display: contents;
}

.menu-list button {
    background-color: transparent;
    border: none;
    font-size: 20px;
    color: var(--text);
}

.menu-list button:hover {
    background-color: #222222;
    border: black 2px;
    font-size: 24px;
}

.homescreen {
    background-image: url('/MyOS/assets/wallpaper.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.center-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.search-bar {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 0.25rem 0.75rem;
  display: flex;
  align-items: center;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  padding: 0.25rem 0.5rem;
  width: 180px;
}

.search-bar input::placeholder {
  color: var(--text-muted, #aaa);
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.right-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.carot-menu button {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.calendar {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 0.9rem;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.calendar-day {
  padding: 0.25rem;
  border-radius: 4px;
}

.calendar-day.today {
  background: linear-gradient(135deg, var(--accent), #0077ff);
  color: #12b3aa;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0, 120, 255, 0.5);
}

.calendar-day.other-month {
  opacity: 0.3;
}

#currentTime {
  font-size: 0.9rem;
  font-weight: 600;
}

#currentDate {
  font-size: 0.7rem;
  opacity: 0.8;
}

.time button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;  
}

.month-btn {
  background-color: var(--muted-bg); /* base background */
  border: none;
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.month-btn svg,
.month-btn img {
  width: 16px;
  height: 16px;
  display: block;
}

.month-btn:hover {
  background-color: var(--accent, #4ea1f3); 
  transform: scale(1.1); 
}


#app-list {
  display: flex;
  gap: 8px;
  padding: 8px;
}

.app-icon {
  background: none;
  border: none;
  cursor: pointer;
}

.app-icon img {
  width: 32px;
  height: 32px;
}


.window {
  position: absolute;
  top: 80px;
  left: 100px;
  width: 400px;
  height: 300px;
  background-color: var(--window-bg, rgba(255, 255, 255, 0.9));
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.window-header {
  background: var(--header-bg, #222);
  color: #fff;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
  user-select: none;
}

.window-content {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.window-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.hidden {
  display: none;
}

.apps-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  gap: 6px;
}

.apps-grid-item img {
  width: 48px;
  height: 48px;
  transition: transform 0.2s ease;
}

.apps-grid-item:hover img {
  transform: scale(1.1);
}

.app-name {
  font-size: 0.85rem;
  color: var(--text-color, #fff);
  opacity: 0.85;
  user-select: none;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  padding: 1rem;
  justify-items: center;
}

.apps-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.apps-grid-item:hover {
  transform: scale(1.05);
}

.apps-grid-item img {
  width: 48px;
  height: 48px;
  transition: transform 0.2s ease;
}

.app-name {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.9;
}
