:root {
    /* Forgejo Theme Control Flags */
    --is-dark-theme: true !important;

    /* Base Layout Backgrounds */
    --color-body: #1b4332 !important;          /* Deep Forest Green */
    --color-box-body: #2d6a4f !important;      /* Medium Forest Green */
    --color-navbar: #081c15 !important;        /* Near-Black Green Header */
    --color-footer: #081c15 !important;
    --color-card: #2d6a4f !important;

    /* Base Layout Typography (Main Body Text) */
    --color-text: #b7e4c7 !important;          /* Light Mint Green */

    /* Global Semantic Text Variants (Fixes the black text in your image) */
    --color-text-light: #d8f3dc !important;    /* For secondary descriptions */
    --color-text-light-2: #d8f3dc !important;
    --color-text-light-3: #d8f3dc !important;
    --color-text-dark: #ffffff !important;     /* Headings and explicit bold text */

    /* Semantic Component Text Variables (Fixes the menus, forms, and hints) */
    --color-header-text: #ffffff !important;
    --color-body-text: #b7e4c7 !important;
    --color-label-text: #b7e4c7 !important;
    --color-input-text: #ffffff !important;    /* Text inside drop-downs and inputs */

    /* Active States & Navigation */
    --color-link: #95d5b2 !important;          /* Clickable text links */
    --color-link-hover: #ffffff !important;
    --color-primary: #40916c !important;       /* Buttons and Active tabs */
    --color-primary-hover: #52b788 !important;
    --color-border: #40916c !important;        /* Structural Lines */

    /* Input Controls */
    --color-input-background: #1b4332 !important;
    --color-input-border: #40916c !important;
    --color-button: #40916c !important;
}

/* Force global element overrides across stubborn UI components */
body, .ui.segment, .ui.menu, .ui.input, .ui.dropdown, .ui.form label {
    background-color: #1b4332 !important;
    color: #b7e4c7 !important;
}

/* Fix sidebar menu items and settings header labels */
.ui.vertical.menu .item, .ui.menu .item, .ui.form .field > label, .help {
    color: #b7e4c7 !important;
}

/* Keep current active tabs distinct and highlighted */
.ui.vertical.menu .active.item, .ui.menu .active.item {
    background-color: #40916c !important;
    color: #ffffff !important;
}

/* --- DROPDOWN OPACITY & STYLING FIX --- */
/* Target the expanded dropdown menu panel specifically to force non-transparency */
.ui.dropdown .menu, 
.ui.dropdown .menu .item {
    background-color: #1b4332 !important; /* Forces solid Deep Forest Green */
    opacity: 1 !important;                 /* Removes any transparency layer */
    color: #b7e4c7 !important;             /* Ensures text stays light mint */
}

/* Fix text and background color when hovering over dropdown choices */
.ui.dropdown .menu .item:hover {
    background-color: #2d6a4f !important; /* Highlights with Medium Forest Green */
    color: #ffffff !important;             /* Turns text white on hover */
}
