/* Hephaestos default stylesheet */
/* Important: active/preset cue row colors are painted in code (ClipDelegate + Utility palettes).
   This QSS must not override those runtime colors. */

/* ============================================================
   GLOBAL WIDGETS
   ============================================================ */

QWidget,
HephWidget,
HephContainer,
MainWindow,
MixerWidget {
    background-color: #1a1f2a;
    color: #d8d8d8;
    selection-background-color: #2f76c2;
    selection-color: #ffffff;
}

QMainWindow#MainWindow,
#centralwidget {
    background-color: #151a24;
}

/* ============================================================
   STATUS BAR & TOOLTIPS
   ============================================================ */

QStatusBar,
QStatusBar QLabel,
QToolTip {
    background-color: #0f1420;
    color: #deebff;
    border: 1px solid #2f4666;
}

/* ============================================================
   MENUS
   ============================================================ */

QMenuBar,
QMenu {
    background-color: #1a2435;
    color: #e9eef9;
    border: 1px solid #2a3f5d;
}

QMenuBar::item,
QMenu::item {
    padding: 4px 10px;
}

QMenuBar::item:selected,
QMenu::item:selected {
    background-color: #304a6e;
    color: #ffffff;
}

/* ============================================================
   DOCK WIDGETS
   ============================================================ */

QDockWidget,
HephDockWidget {
    background-color: #111722;
    color: #e9eef9;
    border: 1px solid #2f4666;
}

QDockWidget::title,
HephDockWidget::title {
    background: qlineargradient(x1:0, y1:0, x2:1, y2:0,
                                stop:0 #24354e, stop:1 #2d4768);
    color: #f7fbff;
    text-align: left;
    padding: 5px 8px;
    border-bottom: 1px solid #3f628f;
}

/* ============================================================
   TABS
   ============================================================ */

QTabWidget::pane {
    border: 1px solid #334e73;
    background-color: #182131;
}

QTabBar::tab {
    background-color: #223147;
    color: #dbe7fa;
    border: 1px solid #37567c;
    padding: 5px 10px;
    margin-right: 1px;
}

QTabBar::tab:selected {
    background-color: #345780;
    color: #ffffff;
}

/* ============================================================
   TABLECUE (main cue table)
   ============================================================ */

#tableCue,
TableauCue {
    background-color: #121a28;
    alternate-background-color: #172338;
    border: 1px solid #35557b;
    gridline-color: #273a55;
    selection-background-color: #2f76c2;
    selection-color: #ffffff;
}

#tableCue::item,
TableauCue::item {
    padding: 2px;
    border: 1px solid #21324a;
}

#tableCue QHeaderView::section,
TableauCue QHeaderView::section {
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                                stop:0 #2f486a, stop:1 #223751);
    color: #f3f8ff;
    border: 1px solid #446489;
    padding: 4px;
}

#tableCue QHeaderView::section:checked,
TableauCue QHeaderView::section:checked {
    background-color: #345a83;
}

/* ============================================================
   GENERIC ITEM VIEWS (all trees, tables, lists)
   ============================================================ */

QAbstractItemView {
    background-color: #162018;
    alternate-background-color: #26412f;
    color: #d8d8d8;
    selection-background-color: #4a7a55;
    selection-color: #f4f7f2;
    outline: none;
}

/* ============================================================
   TREE VIEWS & TREE WIDGETS
   ============================================================ */

QTreeView,
QTreeWidget {
    background-color: #162018;
    alternate-background-color: #26412f;
    color: #d8d8d8;
    selection-background-color: #4a7a55;
    selection-color: #f4f7f2;
    outline: none;
}

QTreeView::item,
QTreeWidget::item {
    padding: 2px 4px;
    border: none;
}

QTreeView::item:alternate,
QTreeWidget::item:alternate {
    background-color: #26412f;
}

QTreeView::item:selected,
QTreeWidget::item:selected {
    background-color: #4a7a55;
    color: #f4f7f2;
}

QTreeView::item:hover,
QTreeWidget::item:hover {
    background-color: #31543a;
    color: #d8d8d8;
}

/* ============================================================
   TABLE VIEWS & TABLE WIDGETS
   ============================================================ */

QTableView,
QTableWidget {
    background-color: #162018;
    alternate-background-color: #26412f;
    color: #d8d8d8;
    selection-background-color: #4a7a55;
    selection-color: #f4f7f2;
    gridline-color: #35513b;
    outline: none;
}

QTableView::item,
QTableWidget::item {
    padding: 2px 4px;
    border: none;
}

QTableView::item:alternate,
QTableWidget::item:alternate {
    background-color: #26412f;
}

QTableView::item:selected,
QTableWidget::item:selected {
    background-color: #4a7a55;
    color: #f4f7f2;
}

QTableView::item:hover,
QTableWidget::item:hover {
    background-color: #31543a;
    color: #d8d8d8;
}

/* ============================================================
   LIST VIEWS & LIST WIDGETS
   ============================================================ */

QListView,
QListWidget {
    background-color: #16191d;
    alternate-background-color: #1f2329;
    color: #e8e8e8;
    selection-background-color: #2f6fed;
    selection-color: #ffffff;
    outline: none;
}

QListView::item,
QListWidget::item {
    padding: 2px 4px;
    border: none;
}

QListView::item:alternate,
QListWidget::item:alternate {
    background-color: #1f2329;
}

QListView::item:selected,
QListWidget::item:selected {
    background-color: #2f6fed;
    color: #ffffff;
}

QListView::item:hover,
QListWidget::item:hover {
    background-color: #29313a;
    color: #e8e8e8;
}

/* ============================================================
   HEADERS
   ============================================================ */

QHeaderView::section {
    background-color: #222830;
    color: #e8e8e8;
    border: 1px solid #3a4048;
    padding: 4px;
}

QTableCornerButton::section {
    background-color: #222830;
    color: #e8e8e8;
    border: 1px solid #3a4048;
}

/* ============================================================
   SCROLL BARS
   ============================================================ */

QScrollBar:vertical,
QScrollBar:horizontal {
    background-color: #121a29;
    border: 1px solid #2d4463;
    margin: 0px;
}

QScrollBar::handle:vertical,
QScrollBar::handle:horizontal {
    background: qlineargradient(x1:0, y1:0, x2:1, y2:1,
                                stop:0 #4f7dad, stop:1 #3b628a);
    min-height: 20px;
    min-width: 20px;
    border-radius: 4px;
    border: 1px solid #6791bf;
}

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

/* ============================================================
   MIXER
   ============================================================ */

#mixerDockWidget,
#mixerwidget,
#mixerScroll,
#mixer,
Mixer {
    background: qlineargradient(x1:0, y1:0, x2:1, y2:1,
                                stop:0 #1a2537, stop:1 #17283d);
    border: 1px solid #3c618f;
}

Track,
AudioTrack,
LightTrack,
AutomTrack,
MidiTrack,
OscTrack,
VideoTrack,
ReturnTrack,
MasterTrack,
Masters {
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                                stop:0 #243752, stop:1 #1d2d44);
    color: #eef4ff;
    border: 1px solid #4c72a1;
    border-radius: 4px;
}

/* ============================================================
   LABELS & LINE EDITS (transparent)
   ============================================================ */

QLabel,
LineEdit,
QLineEdit#nameEdit,
QLineEdit#editname {
    color: #e9eef9;
    background: transparent;
}

/* ============================================================
   INPUT WIDGETS
   ============================================================ */

QLineEdit,
LineEdit,
QSpinBox,
QDoubleSpinBox,
QTimeEdit,
QComboBox,
ComboBox {
    background-color: #122037;
    color: #edf3ff;
    border: 1px solid #45658f;
    border-radius: 3px;
    padding: 2px 6px;
}

QLineEdit:focus,
QSpinBox:focus,
QDoubleSpinBox:focus,
QTimeEdit:focus,
QComboBox:focus {
    border: 1px solid #66a5e6;
}

QComboBox::drop-down,
ComboBox::drop-down {
    border-left: 1px solid #45658f;
    width: 18px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

QPushButton,
MainBouton,
QToolButton {
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                                stop:0 #3d5f89, stop:1 #2e4969);
    color: #f7fbff;
    border: 1px solid #5884b7;
    border-radius: 4px;
    padding: 4px 8px;
}

QPushButton:hover,
MainBouton:hover,
QToolButton:hover {
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                                stop:0 #4a75a8, stop:1 #36597f);
}

QPushButton:pressed,
QPushButton:checked,
MainBouton:pressed,
MainBouton:checked,
QToolButton:pressed,
QToolButton:checked {
    background-color: #27649d;
    border-color: #7fb9f2;
}

QPushButton#GoButton {
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                                stop:0 #3cad69, stop:1 #2d7f4c);
    border-color: #6dd79a;
    font-weight: bold;
}

QPushButton#StopAllButton {
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
                                stop:0 #cb4f5a, stop:1 #8b2f38);
    border-color: #e07a83;
    font-weight: bold;
}

QPushButton#FadeAllButton,
QPushButton#PauseButton,
QPushButton#replayButton,
QPushButton#GoBackButton {
    font-weight: bold;
}

/* ============================================================
   CHECKBOXES & RADIO BUTTONS
   ============================================================ */

QCheckBox,
QRadioButton {
    color: #dbe8fe;
}

QCheckBox::indicator,
QRadioButton::indicator {
    width: 14px;
    height: 14px;
    border: 1px solid #6f95c6;
    background-color: #101b2b;
}

QCheckBox::indicator:checked,
QRadioButton::indicator:checked {
    background-color: #39b072;
    border-color: #6ed9a0;
}

/* ============================================================
   PROGRESS BARS
   ============================================================ */

QProgressBar {
    border: 1px solid #496b99;
    background-color: #101a29;
    color: #dce9ff;
    text-align: center;
}

QProgressBar::chunk {
    background: qlineargradient(x1:0, y1:0, x2:1, y2:0,
                                stop:0 #3d7fc0, stop:1 #60b0ec);
}

/* ============================================================
   SLIDERS
   ============================================================ */

QSlider::groove:vertical,
QSlider::groove:horizontal {
    background-color: #101a2a;
    border: 1px solid #42628b;
}

QSlider::handle:vertical,
QSlider::handle:horizontal {
    background: qlineargradient(x1:0, y1:0, x2:1, y2:1,
                                stop:0 #a4c9ef, stop:1 #6e9ecf);
    border: 1px solid #6f9fd0;
    border-radius: 4px;
}

QSlider::add-page:vertical,
QSlider::sub-page:vertical,
QSlider::add-page:horizontal,
QSlider::sub-page:horizontal {
    background-color: #243751;
}

#masterAudioVolume::add-page:vertical {
    background: qlineargradient(x1:0, y1:0, x2:1, y2:0,
                                stop:0 #5b4f7f, stop:1 #be77b3);
}

#LightGrandMaster::add-page:vertical {
    background: qlineargradient(x1:0, y1:0, x2:1, y2:0,
                                stop:0 #607138, stop:1 #b0c56a);
}

/* ============================================================
   SURROUND PAN
   ============================================================ */

#SurroundPan {
    background-color: #1b2739;
    border: 1px solid #3d6392;
}

#panlabel,
#linknumber {
    color: #dce9ff;
}

#panboutton,
#UpDownLink,
#LeftRightLink,
#Surrbutton {
    background-color: #2b4f79;
    color: #f3f8ff;
    border: 1px solid #5f8cc2;
    border-radius: 3px;
}

#panboutton:checked,
#UpDownLink:checked,
#LeftRightLink:checked,
#Surrbutton:checked {
    background-color: #2f76c2;
}
