@define-color bg #0B0E1D;
@define-color selected_bg #1D202F;
@define-color hover_bg #191b27;
@define-color text #D8E2EA;
@define-color selected_text #a6a7ac;
@define-color border #7E01FF;
@define-color error #bd2828;
@define-color success #e89b0b;
@define-color accent #7E01FF;
@define-color unfocused #f85656;

* {
	color: @text;

	all: unset;
	font-size: 14px;
	transition: 200ms;
}

.blank-window {
	background: transparent;
}

/* CONTROL CENTER ------------------------------------------------------------------------ */

.control-center {
	background: @bg;
	border-radius: 15px;
	-gtk-outline-radius: 1.705rem;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.6);
	margin: 18px;
	padding: 12px;
}

/* Notifications  */
.control-center .notification-row .notification-background,
.control-center
	.notification-row
	.notification-background
	.notification.critical {
	background-color: @selected_bg;
	border-radius: 15px;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.6);
	margin: 4px 0px;
	padding: 5px;
}

.control-center
	.notification-row
	.notification-background
	.notification.critical {
	color: @unfocused;
}

.control-center
	.notification-row
	.notification-background
	.notification
	.notification-content {
	margin: 2px;
	padding: 2px;
}

.control-center
	.notification-row
	.notification-background
	.notification
	> *:last-child
	> * {
	min-height: 3.4em;
}

.control-center
	.notification-row
	.notification-background
	.notification
	> *:last-child
	> *
	.notification-action {
	background: @bg;
	color: @text;
	border-radius: 15px;
	margin: 6px;
}

.control-center
	.notification-row
	.notification-background
	.notification
	> *:last-child
	> *
	.notification-action:hover {
	background: alpha(@bg, 0.6);
	border: 0.5px solid @border;
}

.control-center
	.notification-row
	.notification-background
	.notification
	> *:last-child
	> *
	.notification-action:active {
	background: @selected_bg;
	border: 0.5px solid @border;
}

/* Buttons */

.control-center .notification-row .notification-background .close-button {
	background: transparent;
	border-radius: 6px;
	color: @text;
	margin: 0px;
	padding: 4px;
}

.control-center .notification-row .notification-background .close-button:hover {
	background: alpha(@bg, 0.6);
	border: 0.5px solid @border;
}

.control-center
	.notification-row
	.notification-background
	.close-button:active {
	background: alpha(@bg, 0.6);
	border: 0.5px solid @border;
}

/* Notifications expanded-group */

.notification-group {
	margin: 2px 8px 2px 8px;
}
.notification-group-headers {
	font-weight: bold;
	font-size: 1.25rem;
	color: @text;
	letter-spacing: 2px;
}

.notification-group-icon {
	color: @selected_text;
}

.notification-group-collapse-button,
.notification-group-close-all-button {
	background: transparent;
	color: @text;
	margin: 4px;
	border-radius: 6px;
	padding: 4px;
}

.notification-group-collapse-button:hover,
.notification-group-close-all-button:hover {
	background: @selected_bg;
	border: 0.5px solid @border;
}

/* WIDGETS --------------------------------------------------------------------------- */

/* Notification clear button */
.widget-title {
	padding: 0.341rem;
	margin: unset;
}

.widget-title button {
	border: unset;
	background-color: unset;
	border-radius: 1.159rem;
	-gtk-outline-radius: 1.159rem;
	padding: 0.141rem 0.141rem;
	margin-right: 0.841rem;
}


.widget-title button:hover {
	background-color: @selected_bg;
	border: 0.5px solid @border;

}

.widget-title button:active {
	background-color: @selected_bg;
	border: 0.5px solid @border;
}

.widget-dnd > switch {
	background: @selected_bg;
	font-size: initial;
	border-radius: 8px;
	box-shadow: none;
	padding: 2px;
}

.widget-dnd > switch:hover {
	background: @selected_bg;
}

.widget-dnd > switch:checked {
	background: @selected_bg;
}

.widget-dnd > switch:checked:hover {
	background: @selected_bg;
}

.widget-dnd > switch slider {
	background: @selected_text;
	border-radius: 6px;
}

.widget-dnd > switch slider:checked {
	background: @border;
	border-radius: 6px;
}


/* Buttons menu */
.widget-buttons-grid {
	font-size: x-large;
	padding: 6px 2px;
	margin: 6px;
	border-radius: 12px;
	background: alpha(@selected_bg, 0.80);
	font-family: FiraCode Nerd Font;
}

.widget-buttons-grid > flowbox > flowboxchild > button {
	border: none;
	margin: 4px 10px;
	padding: 6px 12px;
	background: transparent;
	border-radius: 8px;
}

.widget-buttons-grid > flowbox > flowboxchild > button:hover {
	background: alpha(@bg, 0.80);
}

/* Music player */
.widget-mpris {
	background: @selected_bg;
	border-radius: 15px;
	color: @text;
	margin: 20px 6px;
}

/* NOTE: Background need *opacity 1* otherwise will turn into the album art blurred  */
.widget-mpris-player {
	background: @selected_bg;
	border-radius: 15px;
	border: 0px;
	padding: 10px;
	margin: 0px;
}

.widget-mpris button {
	color: alpha(@text, 0.9);
}

.widget-mpris button:hover {
	color: alpha(@text, 0.5);
}

.widget-mpris-album-art {
	border-radius: 15px;
}

.widget-mpris-title {
	font-weight: bold;
	font-size: 18px;
}

.widget-mpris-subtitle {
	font-size: 15px;
}

.widget-menubar {
	font-family: FiraCode Nerd Font;
}

.powermode-buttons {
	background: alpha(@selected_bg, 0.80);
	padding: 10px;
	margin: 8px;
	border-radius: 15px;
}

.powermode-buttons>button {
	background: transparent;
	border: none;
	padding: 5px;
}

.powermode-buttons>button:hover {
	color: @selected_text;
}

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

.floating-notifications.background .notification-row .notification-background {
  background: @bg;
  box-shadow: 0 0 8px 0 rgba(0,0,0,.6);
  border-radius: 15px;
  margin: 16px;
  padding: 0;
}

.floating-notifications.background .notification-row .notification-background .notification {
  padding: 6px;
  border-radius: 12px;
}

.floating-notifications.background .notification-row .notification-background .notification .notification-content {
  margin: 13px;
}

.floating-notifications.background .notification-row .notification-background .notification > *:last-child > * {
  min-height: 3.4em;
}

.floating-notifications.background .notification-row .notification-background .notification > *:last-child > * .notification-action {
  border-radius: 15px;
  background: alpha(@selected_bg, 0.40);
  margin: 6px;
  border: 1px solid transparent;
}

.floating-notifications.background .notification-row .notification-background .notification > *:last-child > * .notification-action:hover {
  background: alpha(@selected_bg, 0.80);
  border: 1px solid @border;
}

.floating-notifications.background .notification-row .notification-background .notification > *:last-child > * .notification-action:active {
  background: alpha(@selected_bg, 0.80);
  color: @text;
}

.image {
  margin: 10px 20px 10px 0px;
}

.summary {
  font-weight: 800;
  font-size: 1rem;
}

.body {
  font-size: 0.8rem;
}

.floating-notifications.background .notification-row .notification-background .close-button {
  margin: 6px;
  padding: 2px;
  border-radius: 6px;
  background-color: transparent;
  border: 1px solid transparent;
}

.floating-notifications.background .notification-row .notification-background .close-button:hover {
  background: alpha(@selected_bg, 0.80);
    border: 1px solid @border;
}

.floating-notifications.background .notification-row .notification-background .close-button:active {
	background: alpha(@selected_bg, 0.80);
	border: 1px solid @border;
	color: @text;
}

