/* "I feed the darkness
 * And the darkness feeds me"
 * NightStalker theme for
 * freeciv-qt by mir3x
 */


QMainWindow {
  border-image:url(LittleFingerpattern.png);
}

*[doomed="true"] {
  background-color: transparent;
  border: none;
}

/* shortcut dialog */
*[shortcuts="true"] {
  background-color: #485261;
}

*[city_name_button="true"] {
  font-weight: bold italic;
  border: 0px;
  background: transparent;
  text-align: right;
}

*[doomchat="true"] {
  background-color: #121212;
  color: white;
  border: 1px solid gray;
}

*[themed_choice="true"] {
  background-color: #121212;
  color: white;
  border: 1px solid gray;
}

*[themed_border="true"] {
  border: 2px solid #3399FF;
}

chat_widget, message_widget {
  background-color: #00002f;
  border: 1px solid #00002f;
  border-radius: 3px;
}

/* color of border only - set the same as background */
*[messagewindow="true"] {
  color: #00002f;
}

/* color of border only*/
*[top_bar="true"] {
  color: #000000;
}

/* Help dialog tile output 3 labels */
*[foodlab="true"] {
  background:#00ee01;
  color: black;
}

*[shieldlab="true"] {
  background: #e4e4e4;
  color: black;
}

*[ecolab="true"] {
  background: #eeee12;
  color: black;
}

*[city_scroll="true"] {
  border: none;
  border-radius: none;
}

*[unit_wait_table="true"] {
  border: 1px solid #1d5994;
  background-color: rgb(0,0,25);
}

*[civstatus="true"] {
  color: white;
}

*[civstatus_bg="true"] {
   background-color: rgb(0,0,0,125);
}

close_widget {
  background: #1155BB;
}

resize_widget {
  background: #1155BB;
}

QPushButton[main_pagebt="true"] {
  color: white;
  font-size: 1.5em;
  padding: 0.2em 1em;
  min-height: 32px;
  min-width: 200px;
  background: #000330;
  border: 2px solid #1237FF;
  border-radius: 4px;
  padding: 4px;
}

QPushButton:hover[main_pagebt="true"] {
  color: white;
  background: #000330;
  border: 4px solid #3399FF;
}

QPushButton, QToolButton {
  color: #FFFFFF;
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #474747, stop: 1 #323232);
  border: 2px solid #12375c;
  border-radius: 10px;
  padding: 2px;
}

QPushButton:hover, QToolButton:hover, QPushButton:checked, QToolButton:checked {
  color: white;
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #565656, stop: 1 #414141);
  border: 2px solid #3399FF;
}

QPushButton:disabled, QToolButton:disabled {
  background: #696969;
  border: 2px solid #164471;
}

QDialogButtonBox {
  button-layout: 3;
}

hud_input_box QDialogButtonBox QPushButton {
  color: #FFFFFF;
  background: #323843;
  border: 2px solid #47515f;
  border-radius: 0px;
  padding: 0px;
  min-width: 160px;
}

unit_hud_selector {
  color: white;
  background-color: #3d4552;
  border: 2px solid #0000AA;
}

unit_hud_selector, national_budget_dialog QPushButton {
  color: #FFFFFF;
  background: #323843;
  border: 2px solid #47515f;
  border-radius: 0px;
  padding: 0px;
  min-width: 160px;
}

qfc_dialog::title {
    font-weight: bold;
    background-color: #002165;
}

unit_hud_selector, national_budget_dialog QPushButton:hover {
  color: white;
  background: #414a57;
  border: 2px solid #3399FF;
}

unit_hud_selector QGroupBox {
  color: white;
  background-color: #3d4552;
  border: 1px solid #2e2e2e;
  border-radius: 5px;
}

hud_input_box QDialogButtonBox QPushButton:disabled {
  background: #696969;
  border: none;
}

hud_input_box QDialogButtonBox QPushButton:hover {
  color: white;
  background: #414a57;
  border: 2px solid #3399FF;
}

hud_message_box QDialogButtonBox QPushButton {
  color: #FFFFFF;
  background: #323843;
  border: 2px solid #47515f;
  border-radius: 0px;
  padding: 0px;
  min-width: 160px;
}

hud_message_box QDialogButtonBox QPushButton:disabled {
  background: #696969;
  border: none;
}

hud_message_box QDialogButtonBox QPushButton:hover {
  color: white;
  background: #414a57;
  border: 2px solid #3399FF;
}

hud_message_box QDialogButtonBox QPushButton:default {
  color: white;
  background: #414a57;
  border: 2px solid #3399FF;
  padding: 2px;
}

QLabel {
 color: #ececec;
}

QTableWidget {
  alternate-background-color: #475060;
  background-color: #3d4552;
  border-top: 1px solid #3399FF;
  border-left: 1px solid #3399FF;
  border-bottom: 1px solid #3399FF;
  border-right: 1px solid #3399FF;
  border-radius: 1px;
  padding: 2 3px;
  color: white;
  selection-color: yellow;
  selection-background-color:  #3399FF;
}

QTableWidget::item:selected {
  border: none;
  padding: 0 0;
  background: #3399FF;
}

QHeaderView::section {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #474747, stop: 1 #323232);
  color: #FFFFFF;
  border: 1px solid #1d5994;
}

QLineEdit {
  background-color: #343434;
  border: 1px solid rgb(60,60,60);
  border-radius: 2px;
  color: rgb( 210, 210, 210);
}

QLineEdit:focus {
  border: 1px solid #3399FF;
}

QSpinBox {
  background: #343434;
  color: #ffffff;
  selection-background-color: none;
}

QComboBox {
  color: rgb( 240, 240, 240);
  background-color: rgb(65, 65, 65);
  text-align: left;
  padding-left: 10px;
  padding-top: 0px;
  padding-bottom: 2px;
  border: none;
  border-radius: 2px;
  margin-top: .1em;
  margin-bottom: 0em;
}

QComboBox::drop-down {
  subcontrol-origin: padding;
  subcontrol-position: top right;
  width: 15px;
  border-left-width: 1px;
  border-left-color: black;
  border-left-style: solid;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}

QComboBox::down-arrow {
  image: url(LittleFingercombo-arrow.png);
}

QSlider::groove:horizontal {
  background: transparent;
  height: 16px;
  position: absolute;
  left: 4px; right: 4px;
}

QSlider::handle:horizontal {
  height: 16px;
  width: 16px;
  background:url(LittleFingerwheel.png);
  margin: 0 0px;
}

QSlider::add-page:horizontal {
  background: qlineargradient(x1:0, y1:0, x2:0, y2:1,stop:0 rgba(0,0,0,0) ,stop:0.3 rgba(0,0,0,0), stop:0.4 rgba(0,0,0,255) stop: 0.6 rgba(0,0,0,255) , stop:0.7 rgba(0,0,0,0), stop: 1 rgba(0,0,0,0));
}

QSlider::sub-page:horizontal {
  background: qlineargradient(x1:0, y1:0, x2:0, y2:1,stop:0 rgba(0,0,0,0) ,stop:0.3 rgba(0,0,0,0), stop:0.4 rgba(50,151,255,255) stop: 0.6 rgba(50,151,255,255) , stop:0.7 rgba(0,0,0,0), stop: 1 rgba(0,0,0,0));
}

QSplitter::handle {
  background: transparent;
}

QSplitter::handle:vertical {
  image: url(LittleFingersplitter-horizontal.png);
  height: 8px;
}

QSplitter::handle:horizontal {
  image: url(LittleFingersplitter-vertical.png);
  width: 8px;
}

QMenuBar {
  background-color: #3A3A3A;
}

QMenuBar::item {
  spacing: 3px;
  padding: 1px 4px;
  color: #FFFFFF;
  background: transparent;
  border-radius: none
}

QMenuBar::item:selected {
  color: #3399FF;
  background: qlineargradient(x1:0, y1:0, x2:0, y2:1,stop:0 #111111,stop:0.89 #111111 stop: 0.9 #3399FF,stop: 1 #3399FF);
}

QMenuBar::item:pressed {
  background: #111111;
}

QMenu {
  background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,stop:0 rgba(84, 85, 86, 225), stop:1 rgba(55, 55, 54, 255));
  border:none;
}

QMenu::item {
  color: #FFFFFF;
  padding: 3px 20px 3px 25px;
  border: 2px solid transparent;
}

QMenu::item:disabled {
  color: #999999;
}

QMenu::item:selected {
  color: #3399FF;
  background-color: rgba(55, 55, 54, 255);
  border: 2px solid grey;
  border-radius: 9px;
}

QMenu::icon:checkable {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 2px;
  margin-left: 1px;
}

QMenu::icon:checked {
  border-color: #143c63;
  background-color: rgba(51, 153, 255, 112);
}

minimap_view {
  selection-background-color: #1155BB;
}

QTreeWidget {
  color: white;
  background-color: #353b47;
  border: none;
}

QTreeWidget::item:selected {
  border: none;
  background: #3399FF;
}

QComboBox QAbstractItemView {
  color: #3399FF;
  background: #111111;
  border: 1px outset #1f5d9c;
  border-radius: 3px;
  selection-background-color: #3399FF;
}

QComboBox:editable {
  background: #333333;
}

QComboBox:!editable, QComboBox::drop-down:editable {
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #474747, stop: 1 #323232);
  selection-background-color: #3399FF;
}

QLineEdit:disabled, QComboBox:disabled, QSpinBox:disabled {
	background: #696969;
}

unit_item, impr_item {
  selection-background-color: #3399FF;
}

info_tile {
  color: white;
  background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,stop:0 rgb(0, 0, 125) stop:1 rgb(25, 25, 95));
  border: 2px solid #0000AA;
}

freeciv--report_widget {
  color: white;
  background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,stop:0 rgb(0, 0, 75) stop:1 rgb(25, 25, 45));
  border: 2px solid #0000AA;
}

QProgressBar {
  color: white;
  background: #4a5464;
  selection-background-color: #3399FF;
}

QRadioButton {
  color: yellow;
}

QRadioButton::indicator {
  width: 16px;
  height: 16px;
}

QRadioButton::indicator::unchecked {
  image: url(LittleFingerradio-unchecked.png);
}

QRadioButton::indicator:unchecked:hover {
  image: url(LittleFingerradio-unchecked.png);
}

QRadioButton::indicator:unchecked:pressed {
  image: url(LittleFingerradio-unchecked.png);
}

QRadioButton::indicator::checked {
  image: url(LittleFingerradio-checked.png);
}

QRadioButton::indicator:checked:hover {
  image: url(LittleFingerradio-checked.png);
}

QRadioButton::indicator:checked:pressed {
  image: url(LittleFingerradio-checked.png);
}

QListView {
  background-color: #414a57;
  border: none;
  color: white;
}

QListView:item::hover {
  background-color: #3399FF;
}

QDialog {
  color: #3399FF;
  background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #485261, stop: 1 #444d5b);
  border: 3px solid #3399FF;
}

QTabWidget {
  background: #343446;
}

QTabWidget::pane {
  margin: 1px, 1px, 1px, 1px;
  border-left: 1px solid #3399FF;
  border-top: 1px solid #3399FF;
  border-bottom: 1px solid #1f5d9c;
  border-right: 1px solid #1f5d9c;
  border-radius: 5px;
  padding: 5px;
  top: -2px;
}

QTabBar::tab {
  background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                    stop: 0   #485261,
                                    stop: 0.6 #262b33,
                                    stop: 1.0 #38404c);
  border-left: 1px solid #3399FF;
  border-top: 1px solid #3399FF;
  border-bottom: 1px solid #3399FF;
  border-right: 1px solid #1f5d9c;
  border-top-right-radius: 5;
  border-top-left-radius: 5;
  color: white;
  margin-left: -1px;
  padding: 5px;
  min-width: 80px;
}

QTabBar::tab:!selected {
  margin-top: 5px;
}

QTabBar::tab:hover {
  background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                    stop: 0   #00000055,
                                    stop: 0.6 black,
                                    stop: 1.0 #00000055);
}

QTabBar::tab::selected {
  background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                    stop: 0   transparent,
                                    stop: 0.6 #38404c,
                                    stop: 0.9 #424b57);
  border-left: 1px solid #3399FF;
  border-top: 1px solid #3399FF;
  border-right: 1px solid #2c84dc;
  border-bottom: 1px solid #424b57;
  border-top-right-radius: 5;
  border-top-left-radius: 5;
  color:white;
  margin-bottom: -3px;
  margin-top: 2px;
  padding: 5px;
}

QTabWidget QTabBar[documentMode=false]::tab::first {
  margin-left: 0;
}

QTabWidget QTabBar[documentMode=true]::tab::first {
  margin-left: 3px;
}

QTabWidget::tab-bar {
  left: 5px;
}

QTabWidget[documentMode=true]::tab-bar {
  left: 0px;
}

QTabBar {
  border-bottom: 1px solid #3399FF;
}

QTabBar QToolButton {
  background: #474747;
}

QTabBar QToolButton::left-arrow {
  image: url(LittleFingerarrow-left);
}

QTabBar QToolButton::right-arrow {
  image: url(LittleFingerarrow-right);
}

QTreeView {
  alternate-background-color: #475060;
  background-color: #3d4552;
  border-top: 1px solid #3399FF;
  border-left: 1px solid #3399FF;
  border-bottom: 1px solid #3399FF;
  border-right: 1px solid #3399FF;
  border-radius: 1px;
  padding: 2 3px;
  color: white;
  selection-color: yellow;
  selection-background-color:  #3399FF;
}

QTreeView::item:selected {
  border: none;
  padding: 0 0;
  background: #3399FF;
}

QItemDelegate:selected {
  border: none;
  padding: 0 0;
  background-color: #3399FF;
}

QToolTip {
  border: 1px solid #3399FF;
  padding: 1px;
  border-radius: 3px;
  background: black;
  color: white;
  opacity: 200;
}

QCheckBox {
  color: rgb(240,240,240);
  spacing: 5px;
}

QCheckBox:disabled, QRadioButton:disabled {
  background-color: transparent;
  color: #696969;
}

QCheckBox::indicator {
  width: 16px;
  height: 16px;
}

QCheckBox::indicator:unchecked {
  image: url(LittleFingercheckbox-unchecked.png);
}


QCheckBox::indicator:unchecked:pressed {
  image: url(LittleFingercheckbox-unchecked_pressed.png);
}

QCheckBox::indicator:checked {
  image: url(LittleFingercheckbox-checked.png);
}

QCheckBox::indicator:checked:pressed {
  image: url(LittleFingercheckbox-checked-pressed.png);
}

QCheckBox::indicator:unchecked:hover {
  image: url(LittleFingercheckbox-unchecked.png);
}

QCheckBox::indicator:checked:hover {
  image: url(LittleFingercheckbox-checked.png);
}

QGroupBox {
  color: yellow;
  background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #3d4552, stop: 1 #383f4c);
  border: 1px solid #454545;
  border-radius: 5px;
  margin-top: 2ex;
}

QComboBox:hover {
  color: #3399FF;
}

city_dialog QTabWidget::pane {
  margin: 1px, 1px, 1px, 1px;
  border-left: 4px solid #485261;
  border-top: 2px solid #485261;
  border-bottom: 2px solid #485261;
  border-right: 4px solid #485261;
  border-radius: 2px;
  border-top-left-radius: 0px;
  padding: 0px;
}

city_dialog QScrollArea QWidget {
  background: #414a57;
}

city_dialog QScrollArea QFrame {
  background: #414a57;
}

city_dialog QScrollArea {
  background: #414a57;
}

city_dialog QPushButton {
  color: #FFFFFF;
  background: #414a57;
  border: 2px solid #47515f;
  border-radius: 0px;
  padding: 0px;
}

city_dialog QPushButton:disabled {
  background: #696969;
  border: none;
}

city_dialog QPushButton:hover {
  color: white;
  background: #414a57;
  border: 2px solid #3399FF;
}

city_dialog QGroupBox {
  color: yellow;
  background-color: #414a57;
  border: 1px solid #4f5a6a;
  border-radius: 5px;
}

city_dialog QTableWidget {
  background-color: #414a57;
  border-top: none;
  border-left: none;
  border-bottom: none;
  border-right: none;
  border-radius: 1px;
  padding: 2 3px;
  color: white;
  selection-color: yellow;
  selection-background-color:  #3399FF;
}

units_reports QScrollArea {
  background: rgba(0,0,0,45);
}

units_reports QScrollArea QWidget{
  background: rgba(0,0,0,45);
}

unittype_item {
  border: none;
  background-color: rgba(0,0,0,95);
  selection-background-color: rgba(50, 150, 250,220);
}

units_reports {
  border: 1px solid #1d5994;
  background-color: rgba(0,0,75,95);
}

science_report QScrollArea {
  background-image:url(LittleFingersun.png);
}

science_report QScrollArea QWidget {
  background-image:url(LittleFingersun.png);
}

QTextEdit#scenarios_view {
  color: white;
  background-color: #3d4552
}

QTextEdit {
  background-color: #232323;
  color: #f8f8f8;
}

QFontListView {
  color: white;
  background-color: #3d4552;
}

QScrollBar:vertical {
  border: 1px solid #246db6;
}

QScrollBar:horizontal {
  border: 1px solid #246db6;
}

QScrollBar::sub-line:vertical {
  width: 0px;height: 0px
}

QScrollBar::sub-page:vertical {
  background: #232323;
width: 0px;height: 0px
}

QScrollBar::add-line:vertical {
  width: 0px;height: 0px
}

QScrollBar::add-page:vertical {
  background: #232323;
  width: 0px;height: 0px
}

QScrollBar::handle:vertical {
  background: #3399FF; min-height: 20px
}

QScrollBar::sub-line:horizontal {
  width: 0px;height: 0px
}

QScrollBar::sub-page:horizontal {
  background: #232323;
  width: 0px;height: 0px
}

QScrollBar::add-line:horizontal {
  width: 0px;height: 0px
}

QScrollBar::add-page:horizontal {
  background: #232323;
  width: 0px;height: 0px
}

QScrollBar::handle:horizontal {
  background: #3399FF; min-width: 20px
}

fc_game_tab_widget {
  background-image:url(LittleFingerpattern-game.png);
}

help_widget QTextBrowser {
  background-color: #414a57;
  color: white;
}

help_widget QWidget {
  background-color: #414a57;
  color: white;
}

help_widget QTreeWidget {
  background-color: #414a57;
  color: white;
}

help_widget QScrollArea QFrame {
  background-color: #414a57;
  color: white;
}

help_widget QScrollArea {
  background-color: #414a57;
  color: white;
}

units_select {
  background-color: rgba(0, 0, 0, 135);
  color: white;
  selection-color: #3399FF;
  border: 2px solid #0000AA;
}

chatwdg QTextBrowser {
  background-color: transparent;
  border: none;
  color: rgb( 240, 240, 240);
}

chatwdg QLineEdit {
  background-color: black;
  border: 1px solid #13395f;
  color: rgb( 240, 240, 240);
}

chatwdg QScrollBar:vertical {
  background: transparent;
}

messagewdg QListWidget {
  border: none;
  background-color: transparent;
}

messagewdg QListWidget::item:hover {
  color: white;
  background-color: rgb(35, 110, 215);
}

xvote QPushButton {
  background-color: transparent;
  color: #038713;
  min-width: 80px;
  border: none;
}

xvote QPushButton:enabled {
  color: #038713;
}

xvote QPushButton:hover {
  background-color: blue;
}

hud_message_box {
  background-color: transparent;
  color: white;
  selection-background-color: rgb(50, 150, 250);
  alternate-background-color: rgb(0, 0, 60);
  border: 2px solid #3399FF;
}

hud_input_box {
  background-color: transparent;
  color: white;
  selection-background-color: rgb(50, 150, 250);
  alternate-background-color: rgb(0, 0, 60);
  border: 2px solid #3399FF;
}

hud_message_box QLineEdit {
  text: white;
  background: #2704b2;
}

hud_unit_loader::item:hover {
  border: none;
  padding: 0 0;
  background: #3399FF;
}

top_bar_widget {
  color: white;
  /* Box around current widget */
  selection-background-color: rgb(100, 30, 30);
  /* Hover effect */
  alternate-background-color: rgba(75, 0, 75, 125);
  /* blink */
  selection-color: rgba(85, 25, 25, 185);
}

/* Negative income */
/* TODO Qt6:
 * https://doc.qt.io/qt-6/widgets-changes-qt6.html#style-sheet-changes
 */
gold_widget[current_warning="1"] {
  color: red;
}

/* Out of gold */
gold_widget[current_warning="2"] {
  color: red;
  border-color: red;
}

hud_action {
  selection-background-color: rgba(75, 75, 75, 125);
  color: white;
}

hud_units {
  background: black;
}

hud_units QLabel {
  color: white;
}

hud_unit_combat {
  selection-background-color: rgb(0, 0, 75);
  alternate-background-color: #0000AA;
}

national_budget_dialog {
  color: white;
  background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,stop:0 rgba(0, 0, 75,195) stop:1 rgba(25, 25, 45, 225));
  border: 2px solid #0000AA;
}

message_dlg QTableWidget {
  background-color: #525d6e;
  alternate-background-color: #4b5565;
}
