/* Sethflix Dark Theme for Gitea */
/* Primary: #D35400 (Orange), Background: #1a1a1a, Sidebar: #000000 */

/* ===== Global Background & Text ===== */
body {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

/* ===== Navbar / Header ===== */
.ui.secondary.pointing.menu,
.ui.top.attached.header,
.navbar,
#navbar,
.ui.container > .bar,
nav.navbar,
.home-nav-bar {
    background-color: #000000 !important;
    border-bottom: 2px solid #D35400 !important;
}

.full.height > .column:first-child,
.left-sidebar,
.ui.sidebar {
    background-color: #000000 !important;
}

/* ===== Main Content Area ===== */
.page-content,
.repository,
.user,
.dashboard,
.explore {
    background-color: #1a1a1a !important;
}

/* ===== Segments / Cards / Panels ===== */
.ui.segment,
.ui.segments .segment,
.ui.attached.segment,
.ui.raised.segment,
.ui.piled.segment,
.ui.stacked.segment,
.ui.secondary.segment,
.ui.tertiary.segment,
.ui.basic.segment {
    background-color: #252525 !important;
    border-color: #333333 !important;
    color: #e0e0e0 !important;
}

/* ===== Tables ===== */
.ui.table,
.ui.table thead th,
.ui.table tbody td,
.ui.table tfoot th,
.ui.celled.table tr td,
.ui.celled.table tr th {
    background-color: #252525 !important;
    color: #e0e0e0 !important;
    border-color: #333333 !important;
}

.ui.table tr:hover td,
.ui.selectable.table tbody tr:hover,
.ui.table tbody tr:hover {
    background-color: #2a2a2a !important;
}

.ui.table thead th {
    background-color: #1a1a1a !important;
    color: #D35400 !important;
}

/* ===== Repository File List ===== */
#repo-files-table .name a,
.file-list .name a,
.repository .repo-file-list .name a {
    color: #D35400 !important;
}

#repo-files-table .message a {
    color: #cccccc !important;
}

#repo-files-table .message a:hover {
    color: #D35400 !important;
}

/* ===== Links & Text ===== */
a {
    color: #D35400 !important;
}

a:hover {
    color: #e65c00 !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #e0e0e0 !important;
}

strong, b {
    color: #D35400 !important;
}

p, span, div, label, .text {
    color: #e0e0e0;
}

/* ===== Buttons ===== */
.ui.primary.button,
.ui.primary.buttons .button {
    background-color: #D35400 !important;
    color: #fff !important;
    border: none !important;
}

.ui.primary.button:hover,
.ui.primary.buttons .button:hover {
    background-color: #e65c00 !important;
}

.ui.basic.button,
.ui.basic.buttons .button {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border: 1px solid #444 !important;
}

.ui.basic.button:hover {
    background-color: #333333 !important;
    color: #D35400 !important;
}

.ui.green.button,
.ui.positive.button {
    background-color: #D35400 !important;
    color: #fff !important;
}

.ui.green.button:hover,
.ui.positive.button:hover {
    background-color: #e65c00 !important;
}

.ui.button {
    background-color: #333333 !important;
    color: #e0e0e0 !important;
}

.ui.button:hover {
    background-color: #444444 !important;
    color: #D35400 !important;
}

/* ===== Forms & Inputs ===== */
.ui.input input,
.ui.form input,
.ui.form textarea,
.ui.form select,
.ui.selection.dropdown,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
textarea,
select {
    background-color: #2a2a2a !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}

.ui.input input:focus,
.ui.form input:focus,
.ui.form textarea:focus,
input:focus,
textarea:focus {
    border-color: #D35400 !important;
    box-shadow: 0 0 5px rgba(211, 84, 0, 0.5) !important;
}

/* ===== Dropdown Menus ===== */
.ui.dropdown .menu,
.ui.selection.dropdown .menu,
.ui.floating.dropdown .menu,
.ui.pointing.dropdown .menu,
.menu.transition {
    background-color: #1a1a1a !important;
    border-color: #333 !important;
}

.ui.dropdown .menu > .item,
.ui.dropdown .menu > .header {
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

.ui.dropdown .menu > .item:hover,
.ui.dropdown .menu > .active.item {
    background-color: #333333 !important;
    color: #D35400 !important;
}

/* ===== Menu Items / Tabs ===== */
.ui.secondary.pointing.menu .item {
    color: #e0e0e0 !important;
}

.ui.secondary.pointing.menu .active.item {
    color: #D35400 !important;
    border-color: #D35400 !important;
}

.ui.secondary.pointing.menu .item:hover {
    color: #D35400 !important;
}

.ui.tabular.menu .item {
    background-color: #252525 !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

.ui.tabular.menu .active.item {
    background-color: #1a1a1a !important;
    color: #D35400 !important;
    border-bottom-color: #1a1a1a !important;
}

/* ===== Labels / Tags ===== */
.ui.label {
    background-color: #333333 !important;
    color: #e0e0e0 !important;
}

.ui.orange.label {
    background-color: #D35400 !important;
    color: #fff !important;
}

/* ===== Repository Header ===== */
.repository .header-wrapper {
    background-color: #000000 !important;
    border-bottom: 1px solid #D35400 !important;
}

/* ===== Footer ===== */
footer, .footer, .ui.footer.segment {
    background-color: #000000 !important;
    border-top: 1px solid #333 !important;
    color: #cccccc !important;
}

/* ===== Modals ===== */
.ui.modal,
.ui.modal > .header,
.ui.modal > .content,
.ui.modal > .actions {
    background-color: #252525 !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

/* ===== Message boxes ===== */
.ui.message {
    background-color: #252525 !important;
    color: #e0e0e0 !important;
    border-left: 3px solid #D35400 !important;
}

.ui.info.message {
    border-left-color: #D35400 !important;
}

/* ===== Code / Markdown Rendering ===== */
.markdown code,
code,
pre {
    background-color: #2a2a2a !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

.highlight,
.code-view,
.CodeMirror {
    background-color: #1a1a1a !important;
}

.code-view .lines-num span,
.code-view .lines-code .code-inner {
    color: #e0e0e0 !important;
}

/* ===== Diff View ===== */
.diff-file-box .diff-file-header {
    background-color: #252525 !important;
    border-color: #333 !important;
}

/* ===== Pagination ===== */
.ui.pagination.menu {
    background-color: #252525 !important;
    border-color: #333 !important;
}

.ui.pagination.menu .item {
    background-color: #252525 !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

.ui.pagination.menu .active.item {
    background-color: #D35400 !important;
    color: #fff !important;
}

/* ===== Tooltip ===== */
.tippy-box {
    background-color: #252525 !important;
    color: #e0e0e0 !important;
    border: 1px solid #333 !important;
}

/* ===== Empty States ===== */
.empty-placeholder {
    color: #cccccc !important;
}

/* ===== Sidebar / Issue Lists ===== */
.issue.list > .item,
.milestone-list > .item,
.release-list > .item {
    border-color: #333 !important;
}

/* ===== Sign-in page ===== */
.ui.middle.aligned.center.aligned.grid,
.page-content.user.signin,
.page-content.user.signup {
    background-color: #1a1a1a !important;
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D35400;
}

/* ===== Misc Overrides ===== */
.ui.divider {
    border-color: #333 !important;
}

.ui.list .item,
.ui.list .item a {
    color: #e0e0e0 !important;
}

.ui.list .item a:hover {
    color: #D35400 !important;
}

/* Activity graph / heatmap */
.activity-bar {
    background-color: #D35400 !important;
}

/* Brand color consistency */
.gitea-themed,
.brand-color {
    color: #D35400 !important;
}

/* ===== Override Gitea's built-in dark theme vars ===== */
:root {
    --color-primary: #D35400 !important;
    --color-primary-dark-1: #a84300 !important;
    --color-primary-light-1: #e65c00 !important;
    --color-primary-light-2: #f07800 !important;
    --color-primary-alpha-40: rgba(211, 84, 0, 0.4) !important;
    --color-secondary: #252525 !important;
    --color-body: #1a1a1a !important;
    --color-box-body: #252525 !important;
    --color-text: #e0e0e0 !important;
    --color-text-light: #cccccc !important;
    --color-text-dark: #ffffff !important;
    --color-nav-bg: #000000 !important;
    --color-nav-text: #e0e0e0 !important;
    --color-nav-hover-bg: #333333 !important;
    --color-header-bg: #000000 !important;
    --color-header-text: #e0e0e0 !important;
    --color-input-background: #2a2a2a !important;
    --color-input-text: #ffffff !important;
    --color-input-border: #444444 !important;
    --color-input-border-hover: #D35400 !important;
    --color-shadow: rgba(0, 0, 0, 0.5) !important;
    --color-border: #333333 !important;
    --color-box-header: #1a1a1a !important;
    --color-footer: #000000 !important;
    --color-card: #252525 !important;
    --color-card-header: #1a1a1a !important;
    --color-hover: rgba(211, 84, 0, 0.1) !important;
    --color-active: rgba(211, 84, 0, 0.2) !important;
    --color-accent: #D35400 !important;
    --color-code-bg: #2a2a2a !important;
    --color-button-bg: #D35400 !important;
}
