/*
 * vim: ft=less
 */

@import '../../.cache/wallust/colors-waybar.css';

@define-color cc-bg               alpha(@color1, 0.8); /* Entire control center background color */

@define-color noti-border-color   alpha(@color10, 0.4); /* Border color for popup notifications */
@define-color noti-bg             rgba(0, 0, 0, 0.4);   /* Background for popup notification */
@define-color noti-bg-darker      rgba(0, 0, 0, 0.6);   /* Idk yet */
@define-color noti-bg-hover       alpha(@color10, 0.7); /* Main color for popup notifications */
@define-color noti-bg-focus       rgba(0, 0, 0, 0.0);   /* Background for selected notification in CC */
@define-color noti-close-bg       rgba(0, 0, 0, 0.1);
@define-color noti-close-bg-hover rgba(0, 0, 0, 0.15);

@define-color text-color          rgb(255, 255, 255);
@define-color text-color-disabled rgb(150, 150, 150);

@define-color dnd-switch          @color11;
@define-color dnd-switch-bg       alpha(@color10, 0.5);

* {
    
    font-family: neuropolitical;    
}

.notification-row {
  outline: none;
  margin: 3px -2px 3px 0px;
}

.notification-row:focus,
.notification-row:hover {
  background: @noti-bg-focus;
}

.notification {
  border-radius: 12px;
  margin: 3px -2px 3px 0px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7),
    0 2px 6px 2px rgba(0, 0, 0, 0.3);
  padding: 0;
}

/* Uncomment to enable specific urgency colors
.low {
  background: yellow;
  padding: 6px;
  border-radius: 12px;
}

.normal {
  background: green;
  padding: 6px;
  border-radius: 12px;
}

.critical {
  background: red;
  padding: 6px;
  border-radius: 12px;
}
*/

.notification-content {
  background: transparent;
  padding: 6px;
  border-radius: 12px;
}

.close-button {
  background: @noti-close-bg;
  color: @text-color;
  text-shadow: none;
  padding: 0;
  border-radius: 100%;
  margin-top: 0px;
  margin-right: -2px;
  box-shadow: none;
  border: none;
  min-width: 24px;
  min-height: 24px;
}

.close-button:hover {
  box-shadow: none;
  background: @noti-close-bg-hover;
  transition: all 0.15s ease-in-out;
  border: none;
  margin-top: 0px;
  margin-right: -2px;
}

.notification-default-action,
.notification-action {
  margin: 0;
  padding: 0;
  box-shadow: none;
  background: @noti-bg;
  border: 1px solid @noti-border-color;
  color: @text-color;
  transition: all 0.15s ease-in-out;
}

.notification-default-action:hover,
.notification-action:hover {
  -gtk-icon-effect: none;
  background: @noti-bg-hover;
}

.notification-default-action {
  border-radius: 12px;
}

/* When alternative actions are visible */
.notification-default-action:not(:only-child) {
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.notification-action {
  border-radius: 0px;
  border-top: none;
  border-right: none;
}

/* add bottom border radius to eliminate clipping */
.notification-action:first-child {
  border-bottom-left-radius: 10px;
}

.notification-action:last-child {
  border-bottom-right-radius: 10px;
  border-right: 1px solid @noti-border-color;
}

.inline-reply {
  margin-top: 8px;
}
.inline-reply-entry {
  background: @noti-bg-darker;
  color: @text-color;
  caret-color: @text-color;
  border: 1px solid @noti-border-color;
  border-radius: 12px;
}
.inline-reply-button {
  margin-left: 4px;
  background: @noti-bg;
  border: 1px solid @noti-border-color;
  border-radius: 12px;
  color: @text-color;
}
.inline-reply-button:disabled {
  background: initial;
  color: @text-color-disabled;
  border: 1px solid transparent;
}
.inline-reply-button:hover {
  background: @noti-bg-hover;
}

.image {
}

.body-image {
  margin-top: 6px;
  background-color: white;
  border-radius: 12px;
}

.summary {
  font-size: 12px;
  font-weight: bold;
  background: transparent;
  color: @text-color;
  text-shadow: none;
}

.time {
  font-size: 12px;
  font-weight: bold;
  background: transparent;
  color: @text-color;
  text-shadow: none;
  margin-right: 18px;
}

.body {
  font-size: 10px;
  font-weight: normal;
  background: transparent;
  color: @text-color;
  text-shadow: none;
}

.control-center {
  background: @cc-bg;
  border:2px solid @color10;
}

.control-center-list {
  background: transparent;
}

.control-center-list-placeholder {
  opacity: 0.5;
}

.floating-notifications {
  background: transparent;
}

/* Window behind control center and on all other monitors */
.blank-window {
  background: alpha(black, 0.0);
}

/*** Widgets ***/

/* Title widget */
.widget-title {
  margin: 8px;
  font-size: 1.0rem;
}
.widget-title > button {
  font-size: 10px;
  color: @text-color;
  text-shadow: none;
  background: @noti-bg;
  border: 1px solid @noti-border-color;
  box-shadow: none;
  border-radius: 12px;
}
.widget-title > button:hover {
  background: @noti-bg-hover;
}

/* DND widget */
.widget-dnd {
  margin: 8px;
  font-size: 0.85rem;
}
.widget-dnd > switch {
  font-size: initial;
  border-radius: 12px;
  background: @noti-bg;
  border: 1px solid @noti-border-color;
  box-shadow: none;
}
.widget-dnd > switch:checked {
  background: @dnd-switch-bg;
}
.widget-dnd > switch slider {
  background: @dnd-switch;
  border-radius: 12px;
}

/* Label widget */
.widget-label {
  margin: 8px;
}
.widget-label > label {
  font-size: 0.5rem;
}

/* Mpris widget */
.widget-mpris {
  /* The parent to all players */
}
.widget-mpris-player {
  padding: 8px;
  margin: 16px 8px 16px 8px;
}
.widget-mpris-title {
  font-weight: bold;
  font-size: 1.2rem;
}
.widget-mpris-subtitle {
  font-size: 1.0rem;
}

/* Buttons widget */
.widget-buttons-grid {
  padding: 8px;
  margin: 8px;
  border-radius: 12px;
  background-color: @noti-bg;
}

.widget-buttons-grid>flowbox>flowboxchild>button{
  background: @noti-bg;
  border-radius: 12px;
}

.widget-buttons-grid>flowbox>flowboxchild>button:hover {
  background: @noti-bg-hover;
}

/* Menubar widget */
.widget-menubar>box>.menu-button-bar>button {
  border: none;
  background: transparent;
}

/* .AnyName { Name defined in config after #
  background-color: @noti-bg;
  padding: 8px;
  margin: 8px;
  border-radius: 12px;
}

.AnyName>button {
  background: transparent;
  border: none;
}

.AnyName>button:hover {
  background-color: @noti-bg-hover;
} */

.topbar-buttons>button { /* Name defined in config after # */
  border: none;
  background: transparent;
}

/* Volume widget */

.widget-volume {
  background-color: @noti-bg;
  padding: 8px 8px 4px 8px;
  margin: 0px 8px 0px 8px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.widget-volume>box>button {
  background: transparent;
  border: none;
}

.per-app-volume {
  background-color: @noti-bg-alt;
  padding: 4px 8px 8px 8px;
  margin: 0px 8px 8px 8px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

/* Backlight widget */
.widget-backlight {
  background-color: @noti-bg;
  padding: 4px 8px 8px 8px;
  margin: 0px 8px 0px 8px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
}

.power-buttons{
  background-color: @noti-bg;
  padding: 8px;
  margin: 8px;
  border-radius: 12px;
  font-size: 12px;
}

.power-buttons>button {
  background: transparent;
  border: none;
}

.power-buttons>button:hover {
  background: @noti-bg-hover;
}

.widget-menubar>box>.menu-button-bar>button {
  border: none;
  background: transparent;
  font-size: 14px;
}

.widget-menubar>box>.menu-button-bar>button:hover {
  color: @color11;
}

.topbar-buttons>button {
  border: none;
  background: transparent;
  font-size: 14px;
}

.topbar-buttons>button:hover {
  color: @color11;
} 

.widget-buttons-grid {
  font-size: 14px;
  padding: 4px 8px 8px 8px;
  margin: 8px 8px 0px 8px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background: @noti-bg;
}

.widget-buttons-grid>flowbox>flowboxchild>button {
  margin: 3px;
  background: @dnd-switch-bg;
  border-radius: 5px;
  color: @text-color;
}

.widget-buttons-grid>flowbox>flowboxchild>button:hover {
  background: @dnd-switch;
  color: @text-color;
}

/* Title widget */
.widget-inhibitors {
  margin: 8px;
  font-size: 0.65rem;
}
.widget-inhibitors > button {
  font-size: initial;
  color: @text-color;
  text-shadow: none;
  background: @noti-bg;
  border: 1px solid @noti-border-color;
  box-shadow: none;
  border-radius: 12px;
}
.widget-inhibitors > button:hover {
  background: @noti-bg-hover;
}
