/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */

/**
 *
 * LICENSE: GNU Affero General Public License, version 3 (AGPL-3.0-or-later)
 * Copyright Ampache.org, 2001-2024
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 */

/* --------------------------
   General style rules
   -------------------------- */

:root {
    color-scheme: light;
    --amp-surface: #f5f5f5;
    --amp-raised: #eee;
    --amp-border: #d8d8d8;
    --amp-muted: #555;
    --amp-accent: #1990db;
    --amp-accent-ink: #1a1a1a;
    accent-color: #1990db;
    --amp-text: #000;
    --amp-bg: #fff;
    --amp-accent-hover: #52aae4;
    --amp-accent-dark: #1473af;
    --amp-header-bg: #eee;
    --amp-panel-bg: #f8f8f8;
    --amp-panel-text: #777;
    --amp-row-hover-start: #bfe1f6;
    --amp-row-hover-end: #82caf8;
    --amp-field-grad-top: #eee;
    --amp-field-grad-bottom: #fff;
    --amp-webplayer-bg: #f8f8f8;
    --amp-webplayer-raised: #d4d4d4;
    --amp-login-focus-border: #6aaffa;
    --amp-sidebar-link: #333;
}

select option {
    background-color: #fff;
    color: #000;
}

select option:hover {
    background-color: #eee;
    color: #000;
}

select option:checked,
select:focus option:checked {
    background-color: var(--amp-accent);
    color: #fff;
}

.playlistdialogstyle.ui-dialog,
.playlistdialogstyle.ui-dialog .ui-dialog-content,
.sharedialogstyle.ui-dialog .ui-dialog-content,
.playlistdialogstyle.ui-widget-content a,
.editdialogstyle.ui-dialog.ui-widget-content a,
.broadcastsdialogstyle.ui-dialog .ui-dialog-content,
.broadcastsdialogstyle.ui-widget-content a,
.sharedialogstyle.ui-widget-content a {
    background-color: var(--amp-panel-bg);
    color: var(--amp-text);
}

/* ------------------------
   Main
   ------------------------ */
#ajax-loading {
    color: var(--amp-accent);
    background-image: url('../images/ajax-loader-light.gif');
}

/* ------------------------
   Login
   ------------------------ */

#loginPage #maincontainer,
#registerPage #maincontainer {
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
}

#loginPage #footer a {
    color: #000;
}

/* ------------------------
   Sidebar
   ------------------------ */

#sidebar-header {
    background-color: #f8f8f8;
    border-color: #d8d8d8;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
    color: var(--amp-panel-text);
}

#sidebar-content,
#sidebar-content-light,
#sidebar-light {
    border-color: #d8d8d8;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
    background-color: #fcfcfc;
}

#sidebar-light-default {
    border-color: var(--amp-border);
    background: #f8f8f8;
}

/* Tabs content */
#sidebar-page {
    background-color: #f8f8f8;
    border-color: #d8d8d8;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
}

#sidebar-tabs .sb2 li ul li a:hover {
    color: var(--amp-accent-hover);
}

/* ------------------------
   Rightbar
   ------------------------ */
#rightbar {
    background-color: #f8f8f8;
    border-color: #d8d8d8;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
    color: var(--amp-text);
}

#rightbar .submenu {
    background-color: var(--amp-raised);
    border-color: silver;
}

#rightbar .submenu a {
    border-bottom-color: #eee;
    color: #111;
}

/* ------------------------
   Content
   ------------------------ */
#content {
    background-color: #f8f8f8;
    border-color: #d8d8d8;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
    color: var(--amp-text);
}

.list-header a:hover,
.list-header a:focus {
    color: var(--amp-accent-hover);
}

span.page-text,
table.tabledata {
    color: var(--amp-text);
}

table.tabledata a {
    color: var(--amp-text);
}

table.tabledata .followbtn a {
    color: #fff;
}

table.tabledata th a {
    color: var(--amp-text);
}

table.tabledata .th-top:hover,
table.tabledata .th-bottom:hover,
table.tabledata .th-top:focus,
table.tabledata .th-bottom:focus {
    color: var(--amp-panel-text);
    background-color: var(--amp-raised);
}

/* outranks both the striped-row background and the tr:hover gradient, so a selected row always reads as selected */
table.tabledata tbody tr.selected,
table.tabledata tbody tr.selected:hover {
    background-color: rgba(25, 144, 219, 0.22);
    background-image: none;
}

/* ------------------------
   Footer
   ------------------------ */

#ampache_link {
    color: #000;
}

/* ------------------------
   Web Player
   ------------------------ */
div.jp-audio,
div.jp-audio-stream,
div.jp-video {
    color: var(--amp-text);
}

div.jp-title,
div.jp-playlist {
    color: var(--amp-text);
    background-color: var(--amp-webplayer-raised);
    border-top: 1px solid var(--amp-webplayer-bg);
}

#equalizer {
    background-color: rgba(240, 240, 240, 0.97);
}

div.jp-playlist li {
    border-bottom: 1px solid #bfbfbf;
}

/* ------------------------
   Wunderbaum tree
   ------------------------ */
.wunderbaum {
    --wb-node-text-color: var(--amp-text);
    --wb-background-color: var(--amp-bg);
    --wb-alternate-row-color: var(--amp-raised);
    --wb-alternate-row-color-hover: var(--wb-hover-color);
    --wb-focus-border-color: var(--wb-active-color);
    --wb-drop-source-color: var(--wb-hover-color);
    --wb-drop-target-color: var(--wb-active-color);
    --wb-hover-color: hsl(203, 80%, 90%);
    --wb-active-color: hsl(203, 80%, 80%);
    --wb-active-hover-color: var(--wb-active-color);
    --wb-active-color-grayscale: var(--wb-active-color);
    --wb-active-hover-color-grayscale: var(--wb-active-color);
}

/* ------------------------
   Other
   ------------------------ */

.followbtn {
    background-color: #167fc2;
}

.followbtn a,
.list-header-navmenu-border {
    border-color: #fff;
    color: #fff;
}

a.option-list:hover {
    border-color: #fff;
}

.editdialogstyle.ui-dialog {
    background-image: url('../../../images/background.light.png') !important;
}

/* Mobile off-canvas drawers need a solid (opaque) panel background so the
   dim backdrop behind them doesn't show through. See the off-canvas block in default.css.
   @see //REBORN_MEDIA and keep in sync with default.css (portrait phones + short landscape phones). */
@media (max-width: 768px), (orientation: landscape) and (max-height: 540px) and (max-width: 1024px) {
    #sidebar,
    #rightbar {
        background-color: var(--amp-bg);
    }

    /* Loading toast blends into the header (matches #header bg). */
    #ajax-loading {
        background-color: var(--amp-header-bg);
    }
}

/* The confirm dialog is plain text and two buttons, so it owns its whole surface here. Light
   analogue of dark.css's block, same structure with an inverted grayscale ramp. Structure lives
   in default.css, colours only here. */
.confirmdialogstyle.ui-dialog {
    background-color: hsl(0, 0%, 96%);
    border-color: hsl(0, 0%, 80%);
}

.confirmdialogstyle.ui-dialog .ui-dialog-titlebar {
    background: hsl(0, 0%, 91%);
    border-bottom-color: hsl(0, 0%, 83%);
    color: #000;
}

.confirmdialogstyle.ui-dialog .ui-dialog-content {
    background-color: hsl(0, 0%, 96%);
    color: #222;
}

.confirmdialogstyle.ui-dialog .ui-dialog-buttonpane {
    background-color: hsl(0, 0%, 96%);
    border-top-color: hsl(0, 0%, 83%);
}

/* Both buttons are set outright rather than left to whatever jQuery UI puts on them. */
.confirmdialogstyle.ui-dialog .ui-dialog-buttonset button {
    background: hsl(0, 0%, 88%);
    background-image: none;
    border: 1px solid hsl(0, 0%, 70%);
    color: #000;
    text-shadow: none;
}

.confirmdialogstyle.ui-dialog .ui-dialog-buttonset button:hover,
.confirmdialogstyle.ui-dialog .ui-dialog-buttonset button:focus {
    background: hsl(0, 0%, 80%);
    border-color: hsl(0, 0%, 55%);
}

/* accept is the primary action, so it keeps the theme's accent color */
.confirmdialogstyle.ui-dialog .ui-dialog-buttonset button:first-child {
    background-image: linear-gradient(to top, var(--amp-accent), var(--amp-accent-dark));
    border-color: var(--amp-accent-dark);
    color: #fff;
}

