/*#####0xRyan##### */

@import url('../../.config/waybar/wallust/colors-waybar.css');

@define-color noti-border-color #7aa2f7;
@define-color noti-bg rgba(0, 0, 0, 0.8);
@define-color noti-bg-alt #111111;
@define-color noti-bg-hover @color2;
@define-color text-color rgb(159, 168, 218);
@define-color text-color-alt rgb(92, 107, 192);
@define-color text-color-disabled rgba(150, 150, 150, 0.8);

* {
    font-family: FiraCode;
    font-weight: Bolder;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.control-center .notification-row:focus,
.control-center .notification-row:hover {
    opacity: 1;
    background-color: @noti-bg;
    border-radius: 10px;
}

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

.notification {
    border-radius: 0px;
}

@keyframes rainbow {
    0% {
        border-image-source: linear-gradient(to right, #ff3c3c, #ff7b3c, #ffb03c, #a3ee43, #3ca3ff, #7b3cff);
    }
    50% {
        border-image-source: linear-gradient(to right, #7b3cff, #3ca3ff, #a3ee43, #ffb03c, #ff7b3c, #ff3c3c);
    }
    100% {
        border-image-source: linear-gradient(to right, #ff3c3c, #ff7b3c, #ffb03c, #a3ee43, #3ca3ff, #7b3cff);
    }
}

.notification-content {
    color: @text-color;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(17, 17, 17, 0.9));
    padding: 3px 10px 3px 6px;
    border-radius: 10px;
    border: 1px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to right, #ff3c3c, #ff7b3c, #ffb03c, #a3ee43, #3ca3ff, #7b3cff);
    animation: rainbow 2s infinite;
    margin: 0px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.notification-default-action {
    margin: 0;
    padding: 0;
    border-radius: 0px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-button {
    background: linear-gradient(to bottom, #5C6BC0, #3F51B5);
    color: @text-color;
    text-shadow: none;
    padding: 3px 8px;
    border-radius: 10px;
    margin-top: 15px;
    margin-right: 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-button:hover {
    background: linear-gradient(to bottom, #f7768e, #e6052a);
    margin-top: -1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.notification-action {
    border: 2px solid @noti-border-color;
    border-top: none;
    border-radius: 0px;
    background: rgba(27, 27, 43, 0.7);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-default-action:hover,
.notification-action:hover {
    color: @text-color;
    background: rgba(122, 162, 247, 0.2);
    margin-top: -1px;
}

.notification-default-action {
    border-radius: 0px;
    margin: 5px;
}

.notification-default-action:not(:only-child) {
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.notification-action:first-child {
    border-bottom-left-radius: 0px;
    background: rgba(27, 27, 43, 0.7);
}

.notification-action:last-child {
    border-bottom-right-radius: 0px;
    background: rgba(27, 27, 43, 0.7);
}

.inline-reply {
    margin-top: 8px;
}

.inline-reply-entry {
    background: @noti-bg;
    color: @text-color;
    caret-color: @text-color;
    border: 1px solid @noti-border-color;
    border-radius: 0px;
}

.inline-reply-button {
    font-size: 0.5rem;
    margin-left: 4px;
    background: @noti-bg;
    border: 1px solid @noti-border-color;
    border-radius: 10px;
    color: @text-color;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.inline-reply-button:disabled {
    background: initial;
    color: @text-color-disabled;
    border: 1px solid transparent;
}

.inline-reply-button:hover {
    background: @noti-bg-hover;
    margin-top: -1px;
}

.body-image {
    margin-top: 6px;
    color: @text-color-alt;
    border-radius: 10px;
}

.summary {
    font-size: 1rem;
    font-weight: 200;
    background: transparent;
    color: @text-color-alt;
    text-shadow: none;
}

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

.body {
    font-size: 1rem;
    font-weight: 200;
    background: transparent;
    color: @text-color;
    text-shadow: none;
}

.control-center {
    background: @noti-bg;
    border: 2px solid @noti-border-color;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

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

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

.floating-notifications {
    background: transparent;
}

.blank-window {
    background: alpha(black, 0.1);
}

.widget-title {
    color: @noti-border-color;
    background: linear-gradient(to right, rgba(17, 17, 17, 0.9), rgba(30, 30, 46, 0.9));
    padding: 3px 6px;
    margin: 5px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid @noti-border-color;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
}

.widget-title>button {
    font-size: 0.75rem;
    color: @text-color;
    border-radius: 10px;
    background: transparent;
    border: 1px solid @noti-border-color;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget-title>button:hover {
    background: linear-gradient(to bottom, #7aa2f7, #172159);
    color: #000000;
    margin-top: -1px;
}

.widget-dnd {
    background: linear-gradient(to right, rgba(17, 17, 17, 0.9), rgba(30, 30, 46, 0.9));
    padding: 3px 6px;
    margin: 5px;
    border-radius: 10px;
    font-size: 1rem;
    color: @noti-border-color;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
}

.widget-dnd>switch {
    border-radius: 10px;
    border: 1px solid #7aa2f7; 
    background: linear-gradient(to right, rgba(122, 162, 247, 0.3), rgba(122, 162, 247, 0.6));
}

.widget-dnd>switch:checked {
    background: linear-gradient(to right, rgba(247, 118, 142, 0.6), rgba(230, 76, 102, 0.9));
    border: 1px solid #f7768e;
}

.widget-dnd>switch slider {
    background: @noti-bg;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

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

.widget-mpris {
    color: rgb(242, 42, 182);
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.95), rgba(30, 30, 46, 0.95));
    padding: 3px 6px;
    margin: 5px;
    border-radius: 10px;
    border-style: solid;
    border-width: 4px 0;
    border-image: linear-gradient(to right, #ff3c3c, #ff7b3c, #ffb03c, #a3ee43, #3ca3ff, #7b3cff) 1;
    animation: rainbow 6s infinite;
}

/* Hide left and right borders explicitly */
.widget-mpris {
    border-left: none;
    border-right: none;
}

.widget-mpris > box > button {
    border-radius: 10px;
    border: 1px solid @noti-border-color;
}

.widget-mpris-player {
    padding: 3px 6px;
    margin: 5px;
}

.widget-mpris-title {
    font-weight: 100;
    font-size: 1rem;
}

.widget-mpris-subtitle {
    font-size: 0.75rem;
    color: @text-color-alt;
}

.widget-label {
    margin: 5px;
}

.widget-label>label {
    font-size: 1rem;
    color: @text-color;
}

.widget-buttons-grid {
    font-size: large;
    color: @noti-border-color;
    padding: 0px;
    margin: 5px;
    border-radius: 10px;
    background: linear-gradient(to right, rgba(17, 17, 17, 0.9), rgba(30, 30, 46, 0.9));
    border: 1px solid @noti-border-color;
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
}

.widget-buttons-grid>flowbox>flowboxchild>button {
    margin: 5px;
    background: rgba(17, 17, 17, 0.7);
    border-radius: 10px;
    color: @text-color;
    border: 1px solid @noti-border-color;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget-buttons-grid>flowbox>flowboxchild>button:hover {
    background: rgba(0, 0, 0, 0.447);
    color: @text-color-alt;
    border: 1px solid @noti-border-color;
    margin-top: -2px;
    margin-bottom: -2px;
    margin-left: -2px;
    margin-right: -2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.widget-menubar>box>.menu-button-bar>button {
    border: none;
    background: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget-menubar>box>.menu-button-bar>button:hover {
    background: rgba(122, 162, 247, 0.1);
}

.topbar-buttons>button {
    border: none;
    background: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-buttons>button:hover {
    background: rgba(122, 162, 247, 0.1);
}

.widget-volume {
    background: linear-gradient(to right, rgba(17, 17, 17, 0.9), rgba(30, 30, 46, 0.9));
    padding: 2px;
    margin: 10px 10px 5px 10px;
    border-radius: 10px;
    font-size: x-large;
    color: @text-color;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
}

.widget-volume>box>button {
    background: linear-gradient(to bottom, #7aa2f7, #5C6BC0);
    border: none;
    border-radius: 8px;
    padding: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget-volume>box>button:hover {
    background: linear-gradient(to bottom, #8ab2ff, #6C7BD0);
    /*transform: scale(1.05); */
}

.per-app-volume {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 4px 8px 8px;
    margin: 0 8px 8px;
    border-radius: 10px;
    color: @text-color;
}

.widget-backlight {
    background: linear-gradient(to right, rgba(17, 17, 17, 0.9), rgba(30, 30, 46, 0.9));
    padding: 5px;
    margin: 10px 10px 5px 10px;
    border-radius: 10px;
    font-size: x-large;
    color: @text-color;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
}

.low {
    background: @text-color;
    padding: 0px;
    border-radius: 0px;
}

.normal {
    padding: 0px;
    border-radius: 0px;
}

.critical {
    background: linear-gradient(to right, #ff3c3c, #e64c4c);
    padding: 0px;
    border-radius: 0px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}