/*
@palette Window = #1f2329
@palette WindowText = #f2f5f8
@palette Base = #23282f
@palette AlternateBase = #343a44
@palette Text = #f2f5f8
@palette Button = #343a44
@palette ButtonText = #f2f5f8
@palette Highlight = #6aa9ff
@palette HighlightedText = #ffffff
@palette Disabled.Text = #7e8894
@palette Disabled.ButtonText = #7e8894
*/

QWidget {
    font-family: "Segoe UI", "Microsoft YaHei UI";
    font-size: 10pt;
    color: #f2f5f8;
    background: #1f2329;
}

#windowFrame {
    background: #1f2329;
    border: 1px solid #48505c;
}

#appTitleBar {
    background: #2a2f37;
    border-top: 1px solid #48505c;
    border-left: 1px solid #48505c;
    border-right: 1px solid #48505c;
    border-bottom: 1px solid #48505c;
}

#appTitleLabel {
    color: #f2f5f8;
    font-weight: 600;
    background: transparent;
}

#appWindowButton {
    border: none;
    background: transparent;
    color: #f2f5f8;
    min-width: 42px;
    min-height: 32px;
}

#appWindowButton:hover {
    background: #343a44;
}

#appCloseButton {
    border: none;
    background: transparent;
    color: #f2f5f8;
    min-width: 42px;
    min-height: 32px;
}

#appCloseButton:hover {
    background: #d94141;
    color: white;
}

QGroupBox {
    background: #2a2f37;
    border: 1px solid #48505c;
    border-radius: 6px;
    margin-top: 18px;
    padding-top: 10px;
}

QGroupBox::title {
    subcontrol-origin: margin;
    left: 10px;
    padding: 0 4px;
    color: #aeb8c4;
}

QLineEdit, QComboBox, QDateTimeEdit, QSpinBox, QTextEdit, QPlainTextEdit,
QTableWidget, QTreeWidget, QListWidget {
    background: #2a2f37;
    border: 1px solid #48505c;
    border-radius: 4px;
    selection-background-color: #6aa9ff;
    selection-color: white;
}

QTableView, QTableWidget {
    background: #23282f;
    alternate-background-color: #2f3540;
    gridline-color: #48505c;
    color: #f2f5f8;
}

QTableView::item, QTableWidget::item {
    background: transparent;
    border: none;
    padding: 4px 6px;
}

QTableView::item:selected, QTableWidget::item:selected {
    background: #6aa9ff;
    color: #ffffff;
}

QPushButton {
    background: #343a44;
    border: 1px solid #48505c;
    border-radius: 4px;
    padding: 5px 12px;
}

QPushButton:hover {
    border-color: #6aa9ff;
}

QPushButton:pressed, QPushButton:checked {
    background: #6aa9ff;
    color: white;
}

QTabWidget::pane {
    border: 1px solid #48505c;
    background: #2a2f37;
    border-radius: 4px;
}

QTabBar::tab {
    background: #343a44;
    border: 1px solid #48505c;
    padding: 6px 14px;
}

QTabBar::tab:selected {
    background: #2a2f37;
    color: #6aa9ff;
}

QHeaderView::section, QMenuBar, QToolBar, QStatusBar {
    background: #343a44;
    border: 0;
}

QMenu {
    background: #2a2f37;
    border: 1px solid #48505c;
}

QMenu::item:selected {
    background: #6aa9ff;
    color: white;
}

QProgressBar {
    border: 1px solid #48505c;
    border-radius: 4px;
    text-align: center;
    background: #343a44;
}

QProgressBar::chunk {
    background: #6aa9ff;
    border-radius: 3px;
}

QPushButton[variant="default"], QToolButton[variant="default"] {
    background: #2f3540;
    border-color: #647080;
    color: #f2f5f8;
}

QPushButton[variant="primary"], QToolButton[variant="primary"] {
    background: #6aa9ff;
    border-color: #6aa9ff;
    color: #ffffff;
}

QPushButton[variant="success"], QToolButton[variant="success"] {
    background: #3fc78c;
    border-color: #3fc78c;
    color: #ffffff;
}

QPushButton[variant="info"], QToolButton[variant="info"] {
    background: #48c2e6;
    border-color: #48c2e6;
    color: #ffffff;
}

QPushButton[variant="warning"], QToolButton[variant="warning"] {
    background: #f4b84a;
    border-color: #f4b84a;
    color: #ffffff;
}

QPushButton[variant="error"], QToolButton[variant="error"] {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #ffffff;
}

QPushButton[variant]:hover, QToolButton[variant]:hover {
    border-color: #f2f5f8;
}

QCheckBox[variant="default"], QRadioButton[variant="default"],
QLineEdit[variant="default"], QTextEdit[variant="default"], QPlainTextEdit[variant="default"] {
    color: #f2f5f8;
    border-color: #647080;
}

QCheckBox[variant="primary"], QRadioButton[variant="primary"],
QLineEdit[variant="primary"], QTextEdit[variant="primary"], QPlainTextEdit[variant="primary"] {
    color: #8dc0ff;
    border-color: #6aa9ff;
}

QCheckBox[variant="success"], QRadioButton[variant="success"],
QLineEdit[variant="success"], QTextEdit[variant="success"], QPlainTextEdit[variant="success"] {
    color: #66dca5;
    border-color: #3fc78c;
}

QCheckBox[variant="info"], QRadioButton[variant="info"],
QLineEdit[variant="info"], QTextEdit[variant="info"], QPlainTextEdit[variant="info"] {
    color: #75d5ef;
    border-color: #48c2e6;
}

QCheckBox[variant="warning"], QRadioButton[variant="warning"],
QLineEdit[variant="warning"], QTextEdit[variant="warning"], QPlainTextEdit[variant="warning"] {
    color: #ffd075;
    border-color: #f4b84a;
}

QCheckBox[variant="error"], QRadioButton[variant="error"],
QLineEdit[variant="error"], QTextEdit[variant="error"], QPlainTextEdit[variant="error"] {
    color: #ff8c8c;
    border-color: #ff6b6b;
}

QCheckBox[variant]::indicator, QRadioButton[variant]::indicator {
    width: 15px;
    height: 15px;
    border: 1px solid #647080;
    background: #23282f;
}

QCheckBox[variant]::indicator {
    border-radius: 3px;
}

QRadioButton[variant]::indicator {
    border-radius: 8px;
}

QCheckBox[variant="primary"]::indicator:checked, QRadioButton[variant="primary"]::indicator:checked,
QProgressBar[variant="primary"]::chunk, QSlider[variant="primary"]::sub-page:horizontal, QSlider[variant="primary"]::handle:horizontal {
    background: #6aa9ff;
    border-color: #6aa9ff;
}

QCheckBox[variant="success"]::indicator:checked, QRadioButton[variant="success"]::indicator:checked,
QProgressBar[variant="success"]::chunk, QSlider[variant="success"]::sub-page:horizontal, QSlider[variant="success"]::handle:horizontal {
    background: #3fc78c;
    border-color: #3fc78c;
}

QCheckBox[variant="info"]::indicator:checked, QRadioButton[variant="info"]::indicator:checked,
QProgressBar[variant="info"]::chunk, QSlider[variant="info"]::sub-page:horizontal, QSlider[variant="info"]::handle:horizontal {
    background: #48c2e6;
    border-color: #48c2e6;
}

QCheckBox[variant="warning"]::indicator:checked, QRadioButton[variant="warning"]::indicator:checked,
QProgressBar[variant="warning"]::chunk, QSlider[variant="warning"]::sub-page:horizontal, QSlider[variant="warning"]::handle:horizontal {
    background: #f4b84a;
    border-color: #f4b84a;
}

QCheckBox[variant="error"]::indicator:checked, QRadioButton[variant="error"]::indicator:checked,
QProgressBar[variant="error"]::chunk, QSlider[variant="error"]::sub-page:horizontal, QSlider[variant="error"]::handle:horizontal {
    background: #ff6b6b;
    border-color: #ff6b6b;
}

QCheckBox[variant="default"]::indicator:checked, QRadioButton[variant="default"]::indicator:checked,
QProgressBar[variant="default"]::chunk, QSlider[variant="default"]::sub-page:horizontal, QSlider[variant="default"]::handle:horizontal {
    background: #aeb8c4;
    border-color: #aeb8c4;
}

QSlider[variant]::groove:horizontal {
    height: 6px;
    background: #343a44;
    border-radius: 3px;
}

QSlider[variant]::handle:horizontal {
    width: 16px;
    height: 16px;
    margin: -5px 0;
    border-radius: 8px;
}

QProgressBar[variant] {
    background: #343a44;
}
QScrollBar:vertical {
    background: #343a44;
    border: none;
    width: 12px;
    margin: 0;
    border-radius: 6px;
}

QScrollBar::handle:vertical {
    background: #7e8894;
    min-height: 32px;
    border-radius: 5px;
    margin: 2px;
}

QScrollBar::handle:vertical:hover {
    background: #6aa9ff;
}

QScrollBar::handle:vertical:pressed {
    background: #6aa9ff;
}

QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical {
    height: 0;
    border: none;
    background: transparent;
}

QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
    background: transparent;
}

QScrollBar:horizontal {
    background: #343a44;
    border: none;
    height: 12px;
    margin: 0;
    border-radius: 6px;
}

QScrollBar::handle:horizontal {
    background: #7e8894;
    min-width: 32px;
    border-radius: 5px;
    margin: 2px;
}

QScrollBar::handle:horizontal:hover {
    background: #6aa9ff;
}

QScrollBar::handle:horizontal:pressed {
    background: #6aa9ff;
}

QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal {
    width: 0;
    border: none;
    background: transparent;
}

QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
    background: transparent;
}

QScrollBar::corner, QAbstractScrollArea::corner {
    background: #23282f;
}

