pragma Singleton
import QtQuick
import Quickshell

QtObject {
    id: theme

    // ── Wallpaper ──────────────────────────────────────────────────────────────
    readonly property string wallpaper: Quickshell.env("HOME") + "/.config/quickshell/wallpapers/wallhaven-yxjm57.jpg"

    // ── Base Backgrounds ───────────────────────────────────────────────────────
    readonly property color bg:      "#660d1326" // Deep twilight blue (60% trans)
    readonly property color bgPanel: "transparent"
    readonly property color bgPopup: "#66090e1c" // Darker star-field navy (60% trans)
    readonly property color bgFrame: bg

    // ── Separators ────────────────────────────────────────────────────────────
    readonly property color separator: "#33a2d2ff"

    // ── Text ──────────────────────────────────────────────────────────────────
    readonly property color textMain:  "#ffe0f2ff" // Brighter starlight white
    readonly property color textDim:   "#997a89ad" // Muted sky blue
    readonly property color todayText: "#ffffffff"

    // ── Accent & Borders ──────────────────────────────────────────────────────
    readonly property color accent:       "#ffbdf0ff" // Comet core (bright cyan-white)
    readonly property color border:       "transparent"
    readonly property color borderPopup:  "#883d4a6d" // Softened nebula blue
    readonly property color borderToday:  accent

    // ── ArchLogo Module ────────────────────────────────────────────────────────
    readonly property color archLogoBg:           bgPanel
    readonly property color archLogoBgHover:      "#22ffffff"
    readonly property color archLogoHover:        accent
    readonly property color archLogoBorder:       border
    readonly property color archLogoBorderActive: accent
    readonly property color archLogoIcon:         textMain
    readonly property color archLogoIconActive:   accent

    // ── Stats Module (Variation: Comet Trail) ──────────────────────────────────
    readonly property color statsBg:          bgPanel
    readonly property color statsBorder:      border
    readonly property color statsText:        "#ffa2d2ff"
    readonly property color statsRingColor:   accent
    readonly property color statsCpuColor:    "#ffbdf0ff" 
    readonly property color statsMemColor:    "#ffcfb3ff" // Nebula purple
    readonly property color statsDiskColor:   "#ffffc2e0" // Horizon pink
    readonly property color statsGpuColor:    accent
    readonly property color statsTrackColor:  "#15ffffff"

    // ── Volume Module (Variation: Nebula Purple) ───────────────────────────────
    readonly property color volBg:           bgPanel
    readonly property color volBgHover:      "#224a527a"
    readonly property color volBorder:       border
    readonly property color volBorderHover:  "#ffcfb3ff"
    readonly property color volPopupBg:      bgPopup
    readonly property color volPopupBorder:  borderPopup
    readonly property color volIcon:         "#ffcfb3ff" 
    readonly property color volIconMuted:    "#ff6e7a9e"
    readonly property color volTrack:        "#22ffffff"
    readonly property color volHandle:       accent
    readonly property color volHandleBorder: "#33ffffff"
    readonly property color volMuteBg:       "#33ffb3d1"
    readonly property color volPickerHover:  "#15bdf0ff"

    // ── Clock Module ───────────────────────────────────────────────────────────
    readonly property color clockBg:          bgPanel
    readonly property color clockBgHover:     "#11ffffff"
    readonly property color clockBorder:      border
    readonly property color clockBorderHover: accent
    readonly property color clockTime:        textMain
    readonly property color clockSeconds:     "#ffffc2e0" // Horizon pink
    readonly property color clockIcon:        accent
    readonly property color clockSeparator:   separator
    readonly property color clockText:        textMain
    readonly property color clockShadow:      "#44000000"

    // ── Calendar Popup ─────────────────────────────────────────────────────────
    readonly property color calCardBg:        bgPopup
    readonly property color calCardBorder:    borderPopup
    readonly property color calSeparator:     separator
    readonly property color calShadow:        "#66000000"
    readonly property color clockPopupHeader: "#ffcfb3ff"
    readonly property color clockPopupText:   textMain
    readonly property color clockPopupDim:    textDim

    // ── Workspace Module ───────────────────────────────────────────────────────
    readonly property color wsPanelBg:      bgPanel
    readonly property color wsPanelBorder:  "transparent"
    readonly property color wsActiveBg:     accent
    readonly property color wsInactiveBg:   "#15ffffff"
    readonly property color wsHoverBg:      "#333d4a6d"
    readonly property color wsActiveText:   "#ff0d1326" 
    readonly property color wsInactiveText: textMain
    readonly property color wsHoverText:    "#ffffffff"

    // ── Tray Module ────────────────────────────────────────────────────────────
    readonly property color trayBg:          bgPanel
    readonly property color trayBgHover:     "#11ffffff"
    readonly property color trayBorder:      border
    readonly property color trayBorderHover: "#22ffffff"
    readonly property color trayIcon:        textMain

    // ── Launcher (Variation: Midnight Starfield) ───────────────────────────────
    readonly property color launcherBg:               bgPopup
    readonly property color launcherBorder:           "#33bdf0ff"
    readonly property color launcherInput:            "#44090e1c"
    readonly property color launcherInputBorderFocus: accent
    readonly property color launcherPill:             "#443d4a6d"
    readonly property color launcherText:             textMain
    readonly property color launcherDim:              textDim
    readonly property color launcherAccent:           accent
    readonly property color launcherHover:            "#22bdf0ff"
    readonly property color launcherSelected:         "#44bdf0ff"
    readonly property color launcherModeActiveText:   "#ffffffff"
    readonly property color launcherModeActiveBg:     accent

    // ── Status Colors ──────────────────────────────────────────────────────────
    readonly property color statusOk:   "#ffb8ebb0" 
    readonly property color statusWarn: "#ffffebc2" 
    readonly property color statusErr:  "#ffffb3d1" 
    readonly property color statusInfo: "#ffbdf0ff"

    // ── Notifications Module ───────────────────────────────────────────────────
    readonly property color notifBg:           bgPanel
    readonly property color notifBgHover:      "#11ffffff"
    readonly property color notifBorder:       border
    readonly property color notifBorderActive: accent
    readonly property color notifIcon:         textMain
    readonly property color notifIconActive:   accent
    readonly property color notifBadgeBg:      statusErr
    readonly property color notifBadgeText:    "#ffffffff"
    readonly property color notifSeparator:    separator
    readonly property color notifDnd:    separator

    // ── Toast cards (Variation: Horizon Dusk) ──────────────────────────────────
    readonly property color notifToastBg:      bgPopup
    readonly property color notifToastBgHover: "#22ffffff"
    readonly property color notifToastBorder:  borderPopup
    readonly property color notifToastShadow:  "#44000000"
    readonly property color notifToastText:    textMain
    readonly property color notifToastDim:     textDim
    readonly property color notifToastAppName: "#ffcfb3ff"

    // ── Urgency colours ────────────────────────────────────────────────────────
    readonly property color notifUrgencyCritical: statusErr
    readonly property color notifUrgencyNormal:   statusInfo
    readonly property color notifUrgencyLow:      textDim

    // ── Progress bar ───────────────────────────────────────────────────────────
    readonly property color notifProgressBg:   "#22ffffff"
    readonly property color notifProgressFill: accent

    // ── History popup ──────────────────────────────────────────────────────────
    readonly property color notifHistoryBg:     bgPopup
    readonly property color notifHistoryBorder: "#33bdf0ff"
    readonly property color notifHistoryShadow: "#55000000"
    readonly property color notifHistoryHover:  "#11bdf0ff"
    readonly property color notifHistoryEmpty:  textDim
}
