pragma Singleton
import QtQuick
import Quickshell

QtObject {
    id: theme

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

    // ── Base Backgrounds ───────────────────────────────────────────────────────
    readonly property color bg:      "#661a212e" // Muted deep sea blue (60% trans)
    readonly property color bgPanel: "transparent"
    readonly property color bgPopup: "#66141a24" // Darker coastal navy (60% trans)
    readonly property color bgFrame: bg

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

    // ── Text ──────────────────────────────────────────────────────────────────
    readonly property color textMain:  "#ffeef2f5" // Soft cloud white
    readonly property color textDim:   "#99a5b9c4" // Muted horizon gray
    readonly property color todayText: "#ffffffff"

    // ── Accent & Borders ──────────────────────────────────────────────────────
    readonly property color accent:       "#ffebc6a0" // Warm sunset reflection
    readonly property color border:       "transparent"
    readonly property color borderPopup:  "#884a5d6e" // Slate blue border
    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: Shoreline Tones) ──────────────────────────────
    readonly property color statsBg:          bgPanel
    readonly property color statsBorder:      border
    readonly property color statsText:        "#ffa5b9c4"
    readonly property color statsRingColor:   accent
    readonly property color statsCpuColor:    "#ffebc6a0" // Sunset gold
    readonly property color statsMemColor:    "#ff8fa3b0" // Ocean mist
    readonly property color statsDiskColor:   "#ffc2d1d9" // Bright sky blue
    readonly property color statsGpuColor:    "#ffd9a385" // Sand tan
    readonly property color statsTrackColor:  "#15ffffff"

    // ── Volume Module (Variation: Deep Water) ──────────────────────────────────
    readonly property color volBg:           bgPanel
    readonly property color volBgHover:      "#224a5d6e"
    readonly property color volBorder:       border
    readonly property color volBorderHover:  "#ff8fa3b0"
    readonly property color volPopupBg:      bgPopup
    readonly property color volPopupBorder:  borderPopup
    readonly property color volIcon:         "#ff8fa3b0" 
    readonly property color volIconMuted:    "#ff5a6b78"
    readonly property color volTrack:        "#22ffffff"
    readonly property color volHandle:       accent
    readonly property color volHandleBorder: "#33ffffff"
    readonly property color volMuteBg:       "#33d9a385"
    readonly property color volPickerHover:  "#15ebc6a0"

    // ── 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:     "#ffd9a385" // Sun-glow orange
    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: "#ffebc6a0"
    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:      "#334a5d6e"
    readonly property color wsActiveText:   "#ff1a212e" 
    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: Morning Mist) ─────────────────────────────────────
    readonly property color launcherBg:               bgPopup
    readonly property color launcherBorder:           "#33ebc6a0"
    readonly property color launcherInput:            "#44141a24"
    readonly property color launcherInputBorderFocus: accent
    readonly property color launcherPill:             "#444a5d6e"
    readonly property color launcherText:             textMain
    readonly property color launcherDim:              textDim
    readonly property color launcherAccent:           accent
    readonly property color launcherHover:            "#22ebc6a0"
    readonly property color launcherSelected:         "#44ebc6a0"
    readonly property color launcherModeActiveText:   "#ffffffff"
    readonly property color launcherModeActiveBg:     accent

    // ── Status Colors ──────────────────────────────────────────────────────────
    readonly property color statusOk:   "#ffb4c9a1" 
    readonly property color statusWarn: "#ffebc6a0" 
    readonly property color statusErr:  "#ffd9a385" 
    readonly property color statusInfo: "#ff8fa3b0"

    // ── 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: 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: "#ff8fa3b0"

    // ── 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: "#33ebc6a0"
    readonly property color notifHistoryShadow: "#55000000"
    readonly property color notifHistoryHover:  "#11ebc6a0"
    readonly property color notifHistoryEmpty:  textDim
}
