* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 12px;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-image: url("./johnpolitics.webp");
  background-repeat: no-repeat;
  background-size: cover;
  color: #e4e7eb;
  overflow: hidden;
  user-select: none;
}

.top-bar {
  position: relative;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(253, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  padding: 8px 24px;
  border: 1px solid rgba(0, 0, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.os-name {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #0015ff;
  transition: color 0.2s ease;
}

.active-note-badge {
  font-size: 12px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(225, 0, 0, 0.4);
  color: #160076;
  padding: 3px 10px;
  border-radius: 20px;
}

.welcome-open {
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.15s ease;
}

.welcome-open:hover {
  transform: scale(1.08);
}

.time-element {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #0015ff;
}


.desktop-icons {
  position: relative;
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  gap: 36px;
  z-index: 1;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.notes-icon {
  width: 64px;
  height: 64px;
  cursor: pointer;
  object-fit: contain;
  transition: all 0.2s ease;
}

.app-label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #f1f5f9;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.welcome-window {
  position: absolute;
  top: 100px;
  left: calc(50% - 190px);
  width: 380px;
  background-color: #1a1b2e;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.close {
  background-color: #f43f5e;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.15s ease;
}

.close:hover {
  opacity: 0.85;
}


.welcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: move;
}

.welcome-text {
  margin: 0 0 0 12px;
  color: #5bc0ff;
  font-weight: 600;
  font-size: 14px;
}

.inside-welcome {
  background-color: #120077;
  margin: 0 10px 10px 10px;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(198, 0, 0, 0.06);
  color: #cbd5e1;
}

.welcome-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.inside-text {
  color: #f1f5f9;
  margin: 8px 0;
  font-size: 20px;
}


.notes-window {
  position: absolute;
  top: 90px;
  left: calc(50% - 320px);
  width: 640px;
  background-color: #001233;
  border: 1px solid rgba(204, 0, 0, 0.4);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #ffffff;
  cursor: move;
}

.header-text {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

.header-spacer {
  width: 18px;
}

.notes-body {
  background-color: #00082e;
  margin: 0 10px 10px 10px;
  border-radius: 12px;
  height: 440px;
  padding: 12px;
  display: flex;
  gap: 12px;
  border: 1px solid rgba(204, 0, 0, 0.15);
}

.notes-sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 190px;
  flex-shrink: 0;
}

.notes-sidebar {
  background-color: #001845;
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(204, 0, 0, 0.1);
  flex: 1;
}

.note-item {
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  background-color: #002266;
  border: 1px solid rgba(204, 0, 0, 0.25);
  transition: all 0.15s ease;
}

.note-item:hover {
  background-color: #003399;
  border-color: #cc0000;
}

.note-item.active {
  background-color: #cc0000;
  border-color: #ff4d4d;
}

.sidebar-title {
  margin: 0 0 4px 0;
  font-weight: 600;
  font-size: 13px;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-date {
  font-size: 11px;
  color: #b8c4e0;
  margin: 0 0 4px 0;
}

.sidebar-snippet {
  font-size: 11px;
  color: #93a5cc;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.newnotebtn {
  background: linear-gradient(135deg, #cc0000, #001845);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
}

.notes-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: #001845;
  border-radius: 10px;
  border: 1px solid rgba(204, 0, 0, 0.1);
  overflow: hidden;
}

.notes-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background-color: #002266;
  border-bottom: 1px solid rgba(204, 0, 0, 0.25);
}

.toolbar-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #001233;
  color: #f1f5f9;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.toolbar-btn:hover {
  background: #cc0000;
  border-color: #ff4d4d;
}

.note-title-input {
  border: none;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  padding: 14px 16px 0 16px;
}

.note-title-input::placeholder {
  color: #6b7fa8;
}

.note-date-label {
  margin: 2px 16px 8px 16px;
  font-size: 11px;
  color: #93a5cc;
  border-bottom: 1px solid rgba(204, 0, 0, 0.2);
  padding-bottom: 10px;
}

.notes-editor {
  flex: 1;
  overflow-y: auto;
  padding: 4px 16px 16px 16px;
  outline: none;
  color: #e2e8f0;
  line-height: 1.6;
  font-size: 14px;
}

.notes-editor blockquote {
  background-color: #002266;
  margin: 14px 0;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid #cc0000;
  color: #cbd5e1;
}

.notes-editor strong {
  color: #ff4d4d;
}

.notes-editor ul {
  padding-left: 20px;
  margin: 8px 0;
}



.calc-window {
  position: absolute;
  top: 140px;
  left: calc(50% - 130px);
  width: 260px;
  background-color: #00134d;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.calc-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #0033cc;
  margin: 0 10px 10px 10px;
  border-radius: 12px;
}

#calcDisplay {
  width: 100%;
  height: 46px;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 8px;
  color: #0033cc;
  font-size: 20px;
  font-family: monospace;
  text-align: right;
  padding: 0 10px;
  outline: none;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.calc-btn {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #0033cc;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calc-btn:hover {
  background: #dbe4ff;
}

.calc-btn.func {
  background: #e6ecff;
  color: #0033cc;
}

.calc-btn.func:hover {
  background: #c7d4ff;
}

.calc-btn.op {
  background: #cc0000;
  color: #ffffff;
}

.calc-btn.op:hover {
  background: #a30000;
}

.calc-btn.eq {
  background: #cc0000;
  color: #ffffff;
}

.calc-btn.eq:hover {
  background: #a30000;
}

.calc-btn.zero {
  grid-column: span 2;
  border-radius: 24px;
  text-align: left;
  padding-left: 24px;
}



.anthem-window {
  position: absolute;
  top: 160px;
  left: calc(50% - 150px);
  width: 300px;
  background-color: #1a1b2e;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.anthem-body {
  background-color: #0f1021;
  margin: 0 10px 10px 10px;
  border-radius: 12px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.anthem-status {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
  text-align: center;
}

.anthem-btn {
  background: #0033cc;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.anthem-btn:hover {
  background: #002499;
}
