html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    cursor: none;
}

a, button, input, [contenteditable="true"], .windowheader, .closebutton, .expandbutton, .note-preview-item, #notesshortcut, #weathershortcut, .weather-grid-item {
    cursor: none !important;
}

.window {
    border: solid #ff831d; 
    margin: 0 auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(560px, calc(100vw - 40px));
    height: min(520px, calc(100vh - 40px));
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
    border-radius: 32px; 
    position: absolute; 
    background-color: #2b1800a8; 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
}


.window-expanded {
    top: 12px !important;
    left: 12px !important;
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    height: calc(100vh - 24px) !important;
    transform: none !important;
    z-index: 10;
}

.window img {
    display: block;
    margin: 14px auto 10px;
    object-fit: cover;
}

.header-container {
    position: relative;
    width: 100%;
    padding: 12px 16px 0 16px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.windowheader {
    width: min(100%, 280px);
    display: flex;
    align-items: center;
    cursor: none;
    justify-content: center;
    margin: 0;
    padding: 2px 18px;
    border: 1px solid rgba(255, 131, 29, 0.5);
    border-radius: 14px;
    box-sizing: border-box;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    user-select: none; 
}

.windowheader:active {
    cursor: none;
}

.headertext {
    margin: 0px;
    color: #fff;
    font-weight: 500;
}

.closebutton {
    width: 16px;
    height: 16px;
    cursor: none;
    background-color: #fa7900;
    border-radius: 16px;
    border: solid 1px rgba(0, 0, 0, 0.25);
    margin: 0;
    padding: 0;
    position: absolute;
    top: 16px;      
    right: 16px;   
    z-index: 2;    
}

.expandbutton {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 16px;
    right: 40px;
    z-index: 2;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    background: rgba(255, 131, 29, 0.8);
}

.expandbutton::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid #2b1800;
}

.toolbar {
    display: flex; 
    border: medium solid #000000; 
    background-color: rgba(0, 0, 0, 0.507); 
    border-radius: 25px; 
    justify-content: space-between; 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    margin-left: 16px; 
    font-weight: 700; 
    padding: 2px 12px; 
    border-radius: 16px;
    align-items: center;
}

.desktop-shortcuts-grid {
    display: flex; 
    flex-direction: row; 
    gap: 32px; 
    padding-top: 64px; 
    padding-left: 24px;
}

.hackclub-shortcut {
    color: #fff;
    text-align: center;
    width: 80px;
    user-select: none;
}

.hackclub-shortcut-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border: 1px solid rgba(255, 131, 29, 0.85);
    border-radius: 14px;
    color: #ff831d;
    background: rgba(43, 24, 0, 0.8);
    box-shadow: 0 0 18px rgba(255, 131, 29, 0.2);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hackclub-shortcut p {
    margin: 0;
    color: #fff;
    font-size: 13px;
}

#notesshortcut, #weathershortcut {
    cursor: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    user-select: none;
    width: 80px;
}

#notesshortcut p, #weathershortcut p {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
}

.data-container {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    flex-grow: 1; 
    color: #fff; 
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.stats-row {
    display: flex; 
    flex-direction: row; 
    gap: 16px; 
    background: rgba(255, 255, 255, 0.08); 
    padding: 12px 16px; 
    border-radius: 16px; 
    font-size: 11px; 
    width: 90%; 
    justify-content: space-around;
    border: 1px solid rgba(255, 131, 29, 0.2);
}

.weather-grid-item span {
    color: #ff831d;
    font-weight: 700;
}

.note-preview-item {
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: none;
    transition: background-color 0.2s ease;
}

.note-preview-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.note-preview-item.active {
    background-color: rgba(255, 131, 29, 0.4); 
}

.note-preview-item p {
    color: #ffffff;
}

.selected {
    cursor: none;
}

.selected * {
    cursor: none;
}

#cursorIndicator {
    width: 18px;
    height: 18px;
    position: fixed;
    z-index: 1000;
    pointer-events: none; 
    display: none;
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: #914600;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 90ms ease-out, background-color 0.15s ease;
}

#cursorIndicator.visible {
    display: block;
}

#cursorIndicator.hovering {
    cursor: none !important;
    background: #fa7900 !important;
    transform: translate(-50%, -50%) scale(1.3);
}

#cursorIndicator.clicked {
    transform: translate(-50%, -50%) scale(0.6) !important;
}

@keyframes blink {
    0% { opacity: 0.3; text-shadow: 0 0 2px rgba(161, 89, 30, 0.2); }
    50% { opacity: 1; text-shadow: 0 0 8px #a15d1e; }
    100% { opacity: 0.3; text-shadow: 0 0 2px rgba(161, 104, 30, 0.2); }
}

.widget {
    padding: 16px;
    width: 436px;
    max-width: calc(100vw - 40px);
    color: #fff;
    border: solid #ff831d;
    border-radius: 32px;
    background-color: rgba(43, 24, 0, 0.66);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-sizing: border-box;
    overflow: hidden;
}

.widget-grid {
    position: fixed;
    top: 80px;
    right: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    justify-items: end;
    z-index: 5;
}

#weatherwidget {
    grid-row: 1;
}

#calendarwidget {
    grid-row: 2;
    min-height: 300px;
}

#musicwidget {
    grid-row: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 150px;
}


.vinyl {
    width: 120px;
    height: 120px;
    border-radius: 100%;
    border: none;
    position: relative;
    animation: vinyl-spin 10s linear infinite;
    animation-play-state: paused;
}

.vinyl.playing {
    animation-play-state: running;
}

.vinyl::before {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 100%;
    background: rgba(0,0,0,0.25);
    border: none;
}

.vinyl img {
    position: absolute;
    inset: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 100%;
    object-fit: cover;
    border: none;
}

.music-widget-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #fff;
}

#musicWidgetStatus {
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ff831d;
    opacity: 0.9;
}

#musicWidgetTrack {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

#musicWidgetArtist {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

.hackclub-window {
    min-height: 520px;
}

.hackclub-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    padding: 20px 28px 24px;
    box-sizing: border-box;
    color: #fff;
    overflow-y: auto;
}

.hackclub-controls label,
.hackclub-section-title {
    display: block;
    margin-bottom: 8px;
    color: #ff831d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.hackclub-input-row {
    display: flex;
    gap: 8px;
}

.hackclub-input-row input {
    flex: 1;
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid rgba(255, 131, 29, 0.45);
    border-radius: 8px;
    outline: none;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    font: inherit;
    font-size: 12px;
}

.hackclub-input-row button {
    padding: 0 14px;
    border: 1px solid #ff831d;
    border-radius: 8px;
    color: #2b1800;
    background: #ff831d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hackclub-status,
.hackclub-last-sync {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.hackclub-status[data-state="ready"] { color: #8ddc9f; }
.hackclub-status[data-state="error"] { color: #ff9d76; }

.hackclub-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.hackclub-summary > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 131, 29, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.hackclub-summary span {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.hackclub-summary strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hackclub-day {
    display: grid;
    grid-template-columns: 58px 1fr 48px;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    font-size: 10px;
}

.hackclub-day-label {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.65);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hackclub-day-track {
    height: 7px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
}

.hackclub-day-track span {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: #ff831d;
}

.hackclub-day strong {
    color: #ffb36f;
    font-size: 10px;
    text-align: right;
}

.music-range-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

.music-range-picker select {
    appearance: none;
    background: rgba(255, 131, 29, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 131, 29, 0.5);
    border-radius: 999px;
    padding: 6px 28px 6px 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    outline: none;
}

@keyframes vinyl-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#hear-along-btn {
    cursor: none !important;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.simple-calendar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.simple-calendar .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 131, 29, 0.35);
}

.simple-calendar h3 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    flex: 1;
}

.simple-calendar .calendar-nav {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 131, 29, 0.6);
    border-radius: 50%;
    background: rgba(255, 131, 29, 0.15);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-calendar .calendar-weekdays,
.simple-calendar .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.simple-calendar .calendar-weekdays {
    font-size: 0.71rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.simple-calendar .calendar-grid {
    min-height: 260px;
}

.simple-calendar .day {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
    color: #fff;
}

.simple-calendar .day.empty {
    background: transparent;
    border-color: transparent;
}

.simple-calendar .day.today {
    background: rgba(255, 131, 29, 0.8);
    color: #2b1800;
    font-weight: 700;
    border-color: rgba(255, 131, 29, 0.8);
    box-shadow: 0 0 0 1px rgba(255, 131, 29, 0.3);
}

@media (max-width: 900px) {
    #weatherwidget,
    #calendarwidget {
        right: 10px !important;
        width: min(420px, calc(100vw - 20px)) !important;
    }

    #calendarwidget {
        top: 440px !important;
    }
}

#hear-along-btn:hover {
    background-color: #ffa453 !important;
    transform: scale(1.05);
}

