﻿@import url('variables.css'); @layer reset,base,components,utilities; @layer reset{ *{ padding: 0; margin: 0; box-sizing: border-box; }}@layer base{body, html {
        font-family: var(--font-family);
        font-size: 62.5%;
        font-weight: var(--font-weight);
        color: var(--dark);
        position: fixed;
        height: 100%;
        width: 100%;
        background: var(--sidebar-bg);
        min-block-size: 100vh;
        min-block-size: 100dvh;
        display: grid;
        grid-template-columns: 7rem 1fr;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "header header"
            "sidebar main";
        transition: grid-template-columns 0.3s ease;
    }

    h1 {
        font-size: var(--h1-font-size);
        font-weight: var(--font-weight-regular);
    }

    h2 {
        font-size: var(--h2-font-size);
        font-weight: var(--font-weight-regular);
    }

    h3 {
        font-size: var(--h3-font-size);
        font-weight: var(--font-weight-regular);
    }

    h4 {
        font-size: var(--h4-font-size);
        font-weight: var(--font-weight-regular);
    }

    h5 {
        font-size: var(--h5-font-size);
        font-weight: var(--font-weight-regular);
    }

    h6 {
        font-size: var(--h6-font-size);
        font-weight: var(--font-weight-regular);
    }

    input:focus,
    input:focus-visible {
        outline: 1px solid #cbd5e1;
    }

    select {
        width: 100%;
        padding: 10px 15px;
        font-size: 1.6rem;
        font-family: var(--font-family);
        color: var(--white);
        background-color: var(--primary);
        border: 1px solid var(--accent3);
        border-radius: 0.5rem;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        background-image: url('../Hypnos/icons/caret-down-white.svg');
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 12px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

        select:hover {
            border-color: var(--accent1);
            background-color: var(--accent1);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        select:focus {
            outline: none;
            border-color: var(--accent3);
            box-shadow: 0 0 0 3px rgba(143, 163, 201, 0.25);
        }

    option {
        padding: 10px;
        background-color: var(--white);
        color: var(--primary);
    }

        option:nth-of-type(odd) {
            background-color: var(--light);
        }

        option:hover, option:focus, option:active {
            background-color: var(--accent3);
            color: var(--white);
        }

    #dashboard-header {
        grid-area: header;
        background-color: var(--sidebar-bg);
        padding: 1rem;
    }

    #dashboard-main {
        background: var(--body-bg);
        grid-area: main;
        font-size: 1.6rem;
        padding: 2.25rem;
        border-top-left-radius: 2rem;
        border-left-color: var(--sidebar-bg);
        overflow-x: hidden;
        scroll-behavior: smooth;
        margin-bottom: 3rem;
    }

    #dashboard-aside {
        position: relative;
        grid-area: sidebar;
        color: var(--white);
        background-color: var(--sidebar-bg);
        height: 100dvh;
        align-items: start;
    }

    body.sb-expand {
        grid-template-columns: 17.5rem 1fr;
    }

    SysWeaver-ServerBlock {
        z-index: 1111111;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        background-color: rgba(var(--ThemeBackgroundRGB), 0.95);
        padding-top: 1em;
        padding-left: calc(max(0px, (100% - max(50%, 500px)) / 2));
        padding-right: calc(max(0px, (100% - max(50%, 500px)) / 2));
        text-align: center;
        backdrop-filter: blur(4px);
        cursor: not-allowed;
    }

    SysWeaver-ServerImage {
        display: block;
    }

    SysWeaver-ServerTitle {
        margin-top: 2em;
        display: block;
        font-size: 200%;
        font-weight: bold;
        color: var(--ThemeAcc1);
    }

    SysWeaver-ServerText {
        margin-top: 1em;
        display: block;
        font-size: 150%;
    }

    SysWeaver-ServerWaiting {
        margin-top: 5em;
        display: block;
    }

    SysWeaver-ServerTime {
        margin-top: 1em;
        display: block;
        font-weight: bold;
        color: var(--ThemeAcc2);
    }

    @media (max-width: 480px) {
        body, html {
            grid-template-columns: 1fr;
            grid-template-rows: auto 1fr;
            grid-template-areas:
                "header"
                "main";
        }

        #dashboard-aside {
            display: none;
        }

        #dashboard-main {
            border-top-left-radius: 0;
            margin-bottom: 0;
        }

        body.sb-expand {
            grid-template-columns: 1fr;
        }
    }
}@layer components{.board {
        width: min(1200px, 90%);
        margin: 0 auto;
    }

    .word-break {
        word-break: break-all;
    }

    .board-column {
        flex: 1;
        display: grid;
        grid-template-rows: 48px 1fr;
        gap: 0.5rem;
    }

    .column-title {
        display: flex;
        align-items: center;
        border-bottom: 1px solid #cbd5e1;
        color: var(--primary);
        padding: 0.5rem;
    }

        .column-title h4 {
            text-transform: uppercase;
            font-size: clamp(1.35rem, 1.75vw, 2rem);
        }

            .column-title h4::after {
                content: attr(data-tasks);
                background-color: var(--light);
                margin-left: 0.25rem;
                border-radius: 5px;
                padding: 0 0.6rem;
            }

        .column-title button {
            border: none;
            margin-left: auto;
            background: transparent;
        }

    .tasks > * {
        position: relative;
        background: var(--white);
        border-radius: 5px;
        padding: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        min-height: 48px;
    }

    .tasks {
        min-height: 48px;
        display: grid;
        align-content: center;
        gap: 0.5rem;
    }

        .tasks button {
            border: none;
            background: transparent;
        }

    .task {
        cursor: move;
        transition: 0.3s;
    }

        

        .task menu {
            display: flex;
            justify-content: flex-end;
            gap: 1.5rem;
            margin-top: 1.2rem;
        }

    .task-input {
        outline: none;
        overflow-wrap: anywhere;
        padding-left: 2.8rem;
    }

        .task-input:empty::after {
            content: attr(data-placeholder);
            opacity: 0.5;
        }

    .btn {
        border: 0;
        border-radius: 0.5rem;
        padding: 1rem 1.5rem;
        font-weight: 700;
        cursor: pointer;
        color: var(--dark);
        transition: background-color 0.2s ease;
    }

        .btn:hover {
            background: #e5e5e5;
            transition: background-color 0.2s ease;
        }

        .btn:focus {
            outline: none;
        }

    .btn-primary {
        background: var(--primary);
        color: var(--white);
    }

        .btn-primary:hover {
            background-color: var(--accent1);
            transition: background-color 0.2s ease;
        }

    .btn-secondary {
        background: var(--secondary);
        color: var(--white);
    }

        .btn-secondary:hover {
            background-color: var(--accent2);
            transition: background-color 0.2s ease;
        }

    .btn-success {
        background: var(--success);
        color: var(--white);
    }

        .btn-success:hover {
            background-color: #2d8b4e;
            filter: none;
            transition: background-color 0.2s ease;
        }

    .btn-error {
        background: var(--danger);
        color: var(--white);
    }

        .btn-error:hover {
            background-color: #c0392b;
        }

    .btn-link {
        color: var(--primary);
    }

    .avatar {
        position: relative;
        display: grid;
        justify-self: center;
        align-self: center;
        clip-path: circle(50% at 50% 50%);
    }

    .login-form {
        position: fixed;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -20%);
        margin: auto;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
    }

    .error-container {
        height: auto;
        min-height: 30px;
        margin-top: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        z-index: 10;
    }

    .error-message {
        color: var(--danger);
        font-size: 1.6rem;
        font-style: italic;
        font-weight: var(--font-weight-thick);
        width: 100%;
        opacity: 0;
        transition: opacity 0.3s ease;
        text-align: center;
    }

        .error-message.visible {
            opacity: 1;
        }

    .form-field {
        color: var(--secondary);
        font-size: 1.8rem;
        height: 4.5rem;
        padding: 0 1rem;
        border: 0.1rem solid var(--light);
        border-radius: 1rem;
        width: min(100%);
    }

        .form-field:invalid {
            border: 0.1rem solid var(--danger);
        }

            .form-field:invalid:focus {
                box-shadow: none;
            }

        .form-field:focus,
        .form-field:focus-visible {
            outline: none;
            
        }

    .form-text {
        color: var(--primary);
        font-size: 1.6rem;
        text-transform: uppercase;
    }

    .input-container {
        position: relative;
        width: 100%;
    }

    .input-icon {
        position: absolute;
        left: 0;
        top: 0;
        width: 40px;
        height: 100%;
        background-color: var(--light);
        border-right: 1px solid #cbd5e1;
        border-top-left-radius: 1rem;
        border-bottom-left-radius: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .email-icon::after,
    .password-icon::after {
        content: "";
        width: 20px;
        height: 20px;
        background-color: var(--dark);
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: contain;
    }

    .email-icon::after {
        mask-image: url('../Hypnos/icons/at.svg');
    }

    .password-icon::after {
        mask-image: url('../Hypnos/icons/lock.svg');
    }

    .input-with-icon {
        padding-left: 50px;
    }

    .login-card {
        width: min(90%, 40rem - 2rem);
        height: min(90%, 45rem);
        min-height: 400px;
        background: var(--white);
        border: 0.1rem solid rgba(255, 255, 255, 0.3);
        border-radius: 1rem;
        box-shadow: 0 0.4rem 3rem rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(0.8rem);
        padding: 2rem;
    }

    .toggle-container {
        display: flex;
        padding: 1rem;
    }

    .toggle-btn, .pin-btn {
        background-color: var(--sidebar-bg);
        color: var(--white);
        border: none;
        cursor: pointer;
        padding: 1rem;
        font-size: 1.6rem;
    }

    .toggle-btn {
        align-self: center;
    }

        .toggle-btn:hover {
            border-radius: 10px;
            background: var(--btn-nav-hover);
        }

    .pin-btn {
        text-align: right;
        display: none;
        justify-self: end;
    }

        .pin-btn:hover {
            border-radius: 10px;
            background: var(--btn-nav-hover);
        }

    .vertical-seperator {
        border-left: 1px solid var(--white);
        height: 80%;
        margin-left: 10px;
        margin-right: 10px;
        align-self: center;
    }

    .horizontal-seperator {
        border-top: 1px solid var(--white);
        width: 80%;
        margin-top: 10px;
        margin-bottom: 10px;
        align-self: center;
    }



    .tag {
        display: inline-block;
        background-color: var(--tag-bg-color, #e0f2fe);
        color: var(--tag-color, #0369a1);
        padding: 6px 8px;
        border-radius: 4px;
        border: var(--tag-border, 1px solid #bae3fd);
    }

    .tag-green {
        --tag-bg-color: #dcfce7;
        --tag-color: #16a34a;
        --tag-border: 1px solid #a7f3c1;
    }

    .tag-yellow {
        --tag-bg-color: #fef9c3;
        --tag-color: #ca8a04;
        --tag-border: 1px solid #fde68a;
    }

    .tag-red {
        --tag-bg-color: #fee2e2;
        --tag-color: #dc2626;
        --tag-border: 1px solid #fca5a5;
    }

    .tooltip {
        display: none;
        position: fixed;
        background-color: var(--primary);
        color: var(--white);
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 1.4rem;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        pointer-events: none;
        text-transform: capitalize;
        white-space: nowrap;
        transition: opacity 0.2s ease-in-out;
    }

        .tooltip::before {
            content: '';
            position: absolute;
            top: 50%;
            left: -6px;
            transform: translateY(-50%);
            border-width: 6px 6px 6px 0;
            border-style: solid;
            border-color: transparent var(--primary) transparent transparent;
        }

    .dashboard-settings-dialog {
        position: absolute;
        top: 0;
        right: 0;
        left: auto;
        height: 100vh;
        height: 100dvh;
        width: 400px;
        border: 0;
        max-height: none;
    }

    .dashboard-widgets-dialog {
        width: 200px;
        border: none;
        border-radius: 5px;
        padding: 20px;
        background: var(--accent1);
        justify-items: center;
    }

    .widget-selections {
        width: 100%;
        margin-block: 10px;
    }

    .widget-inner-container {
        display: grid;
        grid-gap: 10px;
        grid-template-columns: repeat(2, 1fr);
        margin-block: 10px;
    }

    .widget-selection-card {
        border: 1px solid black;
        border-radius: 5px;
        padding: 10px;
        text-align: center;
        cursor: pointer;
    }

        .widget-selection-card:hover {
            background: #ccc;
        }
}@layer utilities{.row {
        display: flex;
        flex-direction: row;
        box-sizing: border-box;
        gap: var(--gap);
    }

    .column {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        flex-wrap: wrap;
        gap: var(--gap);
    }

    .columns {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .center {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .end {
        display: flex;
        justify-content: end;
        align-items: center;
    }

    .underline {
        text-decoration: underline;
    }

    .hidden {
        display: none;
    }

    .width-100 {
        width: 100%;
    }

    .width-50 {
        width: 50%;
    }

    .mb-10 {
        margin-bottom: var(--margin-bottom);
    }

    .mb-25 {
        margin-bottom: 25px;
    }

    .mt-25 {
        margin-top: 25px;
    }

    .ml-200 {
        margin-left: 200px;
    }

    .dialog-header {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        align-items: center;
    }

    .dialog-body {
        display: flex;
        justify-content: center;
        flex-direction: column;
        margin-block: 20px;
    }

    .dialog-footer {
        position: sticky;
        bottom: 0;
        width: 100%;
    }

 

    .warning {
        color: var(--danger);
        font-style: italic;
        margin-top: 10px;
    }

    .btn-icon {
        font-size: 1.8rem;
        margin-right: 10px;
        font-weight: bold;
    }

    .grid-3x3 {
        --bento-template-rows: repeat(3, minmax(250px, 1fr));
        --bento-template-columns: repeat(3, 1fr);
    }

    .grid-4x4 {
        --bento-template-rows: repeat(4, minmax(250px, 1fr));
        --bento-template-columns: repeat(4, 1fr);
    }

    .grid-5x5 {
        --bento-template-rows: repeat(5, minmax(250px, 1fr));
        --bento-template-columns: repeat(5, 1fr);
    }

    .grid-6x6 {
        --bento-template-rows: repeat(6, minmax(250px, 1fr));
        --bento-template-columns: repeat(6, 1fr);
    }

 

    .button-group button {
        margin: 12px 0;
        padding: 8px 16px;
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.2s ease;
        font-weight: var(--font-weight-thick);
        color: var(--white);
        background-color: var(--primary);
        border: 1px solid transparent;
    }

        .button-group button:hover {
            background-color: var(--btn-nav-hover);
            transform: translateY(-2px);
        }

        .button-group button.selected {
            background-color: var(--success);
        }

        .button-group button[disabled] {
            background-color: #ccc;
            color: #666;
            cursor: not-allowed;
            transform: none;
        }

            .button-group button[disabled]:hover {
                background-color: #ccc;
                transform: none;
            }

    
        
    
        
    

    
    

    
}