* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #0b1220;
    color: #e6eaf2;
    line-height: 1.5;
}

/* 2) Layout-Helfer */
.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* 3) Topbar */
.topbar {
    position: sticky;
    top: 0;
    background: rgba(11, 18, 32, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

/* 4) Branding */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand__logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: linear-gradient(135deg, #287aff, #37d7ff);
    color: #08101f;
}

.brand__name {
    font-weight: 650;
    letter-spacing: 0.2px;
}

/* 5) Navigation */
.nav {
    display: flex;
    gap: 10px;
}

.nav__link {
    text-decoration: none;
    color: #cfd6e6;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 160ms ease, color 160ms ease;
}

.nav__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav__link--active {
    background: rgba(94, 186, 252, 0.18);
    color: #ffffff;
    border: 1px solid rgba(94, 181, 252, 0.35);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 60px;
    background: radial-gradient(circle at bottom,
            #1f6aff,
            #0f3b5c 60%,
            #1a0000);
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

/* Button */
.btn-primary {
    background: #017de9;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #48aaff;
}


/* Login Page */

/* 7) Grid + Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-bottom: 32px;
}

.card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.card__title {
    margin: 0 0 8px;
    font-size: 16px;
}

.card__text {
    margin: 0;
    color: rgba(230, 234, 242, 0.78);
}

/* 8) Responsive: auf kleineren Screens 1 Spalte */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Login Page */
.auth {
    min-height: calc(100vh - 64px);
    display: grid;
    place-items: center;
    padding: 26px 0 40px;
}

.register {
    min-height: calc(100vh - 64px);
    display: grid;
    place-items: center;
    padding: 26px 0 40px;
}

.register-card {
    width: min(420px, 100%);
}

.auth-card {
    width: min(420px, 100%);
}

.auth-title {
    margin: 0 0 6px;
    font-size: 22px;
}

.auth-subtitle {
    margin: 0 0 16px;
    color: rgba(230, 234, 242, 0.75);
}

.form {
    display: grid;
    gap: 12px;
}

.form-row {
    display: grid;
    gap: 6px;
}

.label {
    font-size: 13px;
    color: rgba(230, 234, 242, 0.85);
}

.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: #e6eaf2;
    outline: none;
    transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input::placeholder {
    color: rgba(230, 234, 242, 0.45);
}

.input:focus {
    border: 1px solid rgba(94, 183, 252, 0.55);
    box-shadow: 0 0 0 4px rgba(94, 157, 252, 0.18);
    background: rgba(255, 255, 255, 0.07);
}

/* 11) Button */
.btn {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(94, 181, 252, 0.55);
    background: #017de9;
    color: #ffffff;
    font-weight: 650;
    cursor: pointer;
    transition: transform 100ms ease, background 160ms ease;
}

.btn:hover {
    background: #48aaff;
}

.btn:active {
    transform: translateY(1px);
}

/* 12) Links + Hinweise */
.auth-footer {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.link {
    color: rgba(230, 234, 242, 0.80);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.hint {
    min-height: 18px;
    /*reserviert Platz, Layout sprint nicht */
    font-size: 12px;
    color: rgba(230, 234, 242, 0.65);
}

.hint--error {
    color: rgba(255, 120, 120, 0.95);
}

.hint--success {
    color: rgba(94, 252, 137, 0.95);
}

.input.is-invalid {
    border-color: rgba(255, 120, 120, 0.65);
    box-shadow: 0 0 0 4px rgba(255, 120, 120, 0.12);
}

.input.is-valid {
    border-color: rgba(94, 252, 137, 0.65);
    box-shadow: 0 0 0 4px rgba(94, 252, 137, 0.12);
}

/* Password forgot */
.password_forgot {
    min-height: calc(100vh - 64px);
    display: grid;
    place-items: center;
    padding: 26px 0 40px;
}

.pwforgot-card {
    width: min(420px, 100%);
}

.pwforgot-title {
    margin: 0 0 6px;
    font-size: 22px;
}

.pwforgot-subtitle {
    margin: 0 0 16px;
    color: rgba(230, 234, 242, 0.75);
}


/* Reset Password */
.reset_password {
    min-height: calc(100vh - 64px);
    display: grid;
    place-items: center;
    padding: 26px 0 40px;
}

.pwreset-card {
    width: min(420px, 100%);
}

.pwreset-title {
    margin: 0 0 6px;
    font-size: 22px;
}

.pwreset-subtitle {
    margin: 0 0 16px;
    color: rgba(230, 234, 242, 0.75);
}


/* Right Side */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px
}

.arrow {
    color: #e0e0e0
}

/* Dashboard Header */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-top: 8px;
    z-index: 1001;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
    font-size: 14px;
}

.user-dropdown a:hover {
    background-color: #f5f5f5;
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 8px 0;
}

/* Device Icon */

.device-menu {
    position: relative;
}

.device-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
}

.device-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-top: 8px;
    z-index: 1001;
}

.device-menu:hover .device-dropdown {
    display: block;
}

.device-dropdown a {
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
    font-size: 14px;
}

.device-dropdown a:hover {
    background-color: #f5f5f5;
}

.device-dropdown hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 8px 0;
}

.device-icon {
    width: 24px;
    height: 24px;
}

.session-menu {
    position: relative;
}

.session-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
}

.session-icon{
    width: 24px;
    height: 24px;
}

/* My Profile Page */


/* PHOTO */
.profile-photo {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.photo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.add-photo {
    position: absolute;
    bottom: 6px;
    right: 6px;

    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ccc;
    font-size: 22px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.add-photo {
    background: #f2f2f2;
}

.link-btn {
    margin-top: 10px;
    background: none;
    border: none;
    color: #0077cc;
    cursor: pointer;
}

/* DETAILS */
.profile-details .row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.label {
    color: #ffffff;
    font-size: medium;
}

.value {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: #e6eaf2;
    outline: none;
    transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.value_profile {
    width: 50%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #e6eaf2;
    outline: none;
    transition: border 160ms ease, box-shadow 160ms ease, ba
}

.btn_delete {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(252, 94, 94, 0.55);
    background: #e90101;
    color: #ffffff;
    font-weight: 650;
    cursor: pointer;
    transition: transform 100ms ease, background 160ms ease;
}

.btn_delete:hover {
    background: #ff4848;
}

.btn_delete:active {
    transform: translateY(1px);
}


.device-actions .btn_backToDash,
.device-actions .btn_addDevice,
.device-actions .btn_addSession {
    /* auf gleicher Höhe wie "Zurück zum Dashboard" */
    position: sticky;
    top: 80px;
    z-index: 10;

    display: inline-flex;
    width: fit-content;

    /* rechts auf derselben Zeile platzieren */
    float: right;
    margin: 10px 20px 10px 0;

    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(94, 181, 252, 0.55);
    background: #017de9;
    color: #ffffff;
    font-weight: 650;
    cursor: pointer;
    transition: transform 100ms ease, background 160ms ease;
}


/* optional: auf kleinen Screens nicht floaten */
@media (max-width: 900px) {
    .btn_addDevice {
        float: none;
        margin: 10px 0 10px 20px;
    }
}


.device-grid{
    width: min(1100px, 92%);
    margin: 24px auto 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.device-card{
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.device-card__header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.device-card h3{ margin: 0; font-size: 28px; letter-spacing: 0.2px; }
.device-card__meta{ margin: 0; color: rgba(230,234,242,0.85); }
.device-card__status{ margin: 0; display: flex; align-items: center; gap: 10px; }

.status-dot{
    width: 10px; height: 10px; border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

.device-card__btn{
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(94,181,252,0.55);
    background: rgba(1,125,233,0.15);
    color: #e6eaf2;
    cursor: pointer;
}
.device-card__btn:hover{ background: rgba(1,125,233,0.30); }


.device-actions{
    width: min(1100px, 92%);
    margin: 16px auto 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* überschreibt sticky/float/margins nur innerhalb der device-actions */
.device-actions .btn_backToDash,
.device-actions .btn_addDevice{
    position: static;
    top: auto;
    float: none;
    margin: 0;
}

@media (max-width: 700px){
    .device-actions{ flex-direction: column; align-items: stretch; }
}


.device-details .row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.value_device {
    width: 50%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #e6eaf2;
    outline: none;
    transition: border 160ms ease, box-shadow 160ms ease, ba
}

/* Mehr Abstand auf der Device-Details-Seite */
.devicedetails-container{
    padding-top: 18px;
    padding-bottom: 60px;
    display: grid;
    gap: 24px;              /* Abstand zwischen den Sektionen */
}

/* Sektionen wie Cards darstellen + Innenabstand */
.device-details,
.device-interaction{
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 18px;          /* Innenabstand in den Boxen */
}

/* Abstand unter den Überschriften */
.device-details h3,
.device-interaction h3{
    margin: 0 0 14px;
}

/* Mehr Abstand in den Zeilen */
.device-details .row{
    padding: 18px 0;        /* vorher 14px */
    gap: 16px;              /* Abstand Label <-> Value */
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.device-details .row:last-child{
    border-bottom: none;
}

/* Interaktionen: Abstand zwischen Button-Zeilen */
.device-interaction{
    display: grid;
    gap: 14px;
}

/* Device register (Add device) */
.devadd-stage1,
.devadd-stage2{
    margin-top: 18px;
    margin-bottom: 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 18px;
    display: grid;          /* makes gap work */
    gap: 8px;              /* distance between widgets */
}

.devadd-stage1 .form-row,
.devadd-stage2 .form-row{
    gap: 8px;               /* label <-> input spacing */
}

.stage-disabled {
    opacity: 0.5;
}

.stage-disabled input,
.stage-disabled button {
    cursor: not-allowed;
}



/* Dashboard */
.main-content{
    padding: 28px 0 60px;
}

#dashboard-widgets{
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
    align-items: start;
}

.widget{
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: grid;
    gap: 12px;
}

.widget h2{
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.2px;
}

.widget__meta{
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.widget__timer{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 30px;
    letter-spacing: 0.6px;
}

.widget__badge{
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(94,181,252,0.35);
    background: rgba(94,186,252,0.12);
    color: rgba(230,234,242,0.95);
}

.widget__actions{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.widget__btn{
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(94,181,252,0.55);
    background: rgba(1,125,233,0.15);
    color: #e6eaf2;
    font-weight: 650;
    cursor: pointer;
}

.widget__btn:hover{
    background: rgba(1,125,233,0.30);
}

.widget__btn--primary{
    background: #017de9;
}

.widget__btn--undo{
    background: #001e37;
    width: 42px;
    padding: 10px 0;
    display: inline-grid;
    place-items: center;
}


.widget__btn--primary:hover{
    background: #48aaff;
}

.widget__btn--secondary{
    border-color: rgba(252,94,94,0.55);
    background: rgba(233,1,1,0.15);
}

.widget__btn--secondary:hover{
    background: rgba(233,1,1,0.28);
}

.widget__btn:disabled{
    opacity: 0.45;
    cursor: not-allowed;
}

.widget__btn.is-active{
    outline: 2px solid rgba(94,186,252,0.55);
    outline-offset: 2px;
}

/* Begin session section */
.sessions {
    margin: 18px 0 60px;
}

.session-list{
    display:flex;
    flex-direction: column;
    gap: 22px;
    padding: 12px 0;
}

.session-row {
    display: grid;
    grid-template-columns: 140px 100px 100px 100px 1fr 170px; /* Date / Start / End / Dauer /Type / Edit*/
    align-items: center;

    padding: 18px 28px;
    border-radius: 16px;

    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.session-row--work{
    background: #f76d27;
    color: #0b1220;
}

.session-row--break {
    background: #47ff67;
    color: #0b1220;
}

.session-row__cell{
    font-weight: 650;
    letter-spacing: 0.2px;
}


.session-row__duration{
    text-align: center;
}

.session-row__type{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 0;
}

.session-row__desc{
    max-width: 360px;      /* oder 420px, je nach Geschmack */
    width: 100%;
}

.session-row__typeText{
    display: block;
}


.session-row__typeTop{
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-row__desc{
    margin-top: 6px;
    font-size: 12px;
    color: inherit;
    opacity: 0.75;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-row--editing{
    outline: 2px solid rgba(94, 183, 252, 0.55);
    box-shadow: 0 0 0 4px rgba(94, 157, 252, 0.18);
}

.session-input{
    width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255,255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
    outline: none;
}

.session-input::placeholder{
    color: currentColor;
    opacity: 0.6;
}

.session-editConfirm{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.session-editBtn{
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    cursor: pointer;
}

.session-editBtn:hover{ background: rgba(255, 255, 255, 0.10);}
.session-editBtn--yes { border-color: rgba(94, 252, 137, 0.35 );}
.session-editBtn--no{ border-color: rgba(255, 120, 120, 0.35); }

.session-row__action{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    text-align: right;
}

.session-row__edit{
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;

    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
}

.session-row__edit:hover{
    background: rgba(255,255,255,0.25);
}

.session-row__edit:active{
    transform: translateY(1px);
}

/* Day grouping */
.session-day{
    margin-bottom: 22px;
}

.session-day__header{
    display: flex;
    align-items: center;
    gap: 64px;

    padding: 18px 26px;
    border-radius: 12px;

    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e6eaf2;
    font-weight: 750;
}

.session-day__date{
    min-width: 160px;
}

.session-day__stat{
    white-space: norap;
    opacity: 0.95;
}

/* Live badge */
.session-badge{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 750;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.35);
    color: #0b1220;
}

.session-badge--live{
    position: static;      /* wichtig: raus aus absolute/right */
    transform: none;
}

.session-badge--live::before{
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #e90101;
    box-shadow: 0 0 0 4px rgba(233, 1, 1, 0.25);
    animation: livePulse 1.2s  ease-in-out infinite;
}

/* Fix: hidden muss immer gewinnen*/
.session-badge[hidden]{
    display: none !important;
}


@keyframes livePulse{
    0%, 100% {transform: scale(1); opacity: 1; }
    60% { transform: scale(1.25); opacity: 0.7; }
}

@media (max-width: 720px) {
    .session-row {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        row-gap: 10px;
    }

    .session-row__type{
        text-align: left;
        padding: 0;
    }

    .session-badge--live{
        position: static;
        transform: none;
        margin-left: 8px;
    }

    .session-row__action{
        text-align: left;
    }
}



.session-row__delete{
    border: 0;
    background: transparent;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    line-height: 0;
}

.session-row__delete:hover{
    background: rgba(255,255,255,0.25);
}

.trash-icon{
    width: 34px;
    height: 34px;
    filter: none;
    display: block;
}

.session-row__deleteConfirm{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.session-row__deleteLabel{
  font-weight: 650;
  opacity: 0.95;
}

.session-row__confirmBtn{
  border: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;

  padding: 0;                 /* wichtig */
  display: inline-grid;        /* wichtig */
  place-items: center;         /* wichtig */

  font-size: 20px;             /* Symbol sichtbar */
  font-weight: 900;
  line-height: 1;

  appearance: none;
  -webkit-appearance: none;

  background: rgba(255,255,255,0.22);
  color: #0b1220;              /* nicht „inherit“, stabiler */
}

.session-row__confirmBtn--yes{
  background: rgba(71, 255, 103, 0.35);
}

.session-row__confirmBtn--no{
  background: rgba(233, 1, 1, 0.25);
}

.settings-icon{
    width: 34px;
    height: 34px;
    filter: none;
    display: block;
}


.session-hint{
    position: sticky;
    top: 64px;
    z-index: 20;

    margin: 10px 0 8px;
    padding: 10px 12px;
    border-radius: 12px;

    background: rgba(11,18,32,0.85);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
}

.session-hint:empty{
    display: none;
}


/* Add-Session Dialog */
.ff-dialog{
    width: min(560px, 92vw);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 0;
    background: rgba(11, 18, 32, 0.95);
    color: #e6eaf2;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.ff-dialog::backdrop{
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.ff-dialog__form{
    padding: 16px;
    display: grid;
    gap: 12px;
}

.ff-dialog__title{
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 750;
}

.ff-dialog__grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ff-dialog__field{
    display: grid;
    gap: 6px;
}

.ff-dialog__field > span{
    font-size: 13px;
    color: rgba(230, 234, 242, 0.85);
}

.ff-dialog__field input,
.ff-dialog__field select{
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: #e6eaf2;
    outline: none;
}


.ff-dialog__field input:focus,
.ff-dialog__field select:focus{
    border: 1px solid rgba(94,183,252,0.55);
    box-shadow: 0 0 0 4px rgba(94,157,252,0.18);
    background: rgba(255,255,255,0.07);
}

.ff-dialog__actions{
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.ff-dialog__actions button{
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(94,181,252,0.55);
    background: rgba(1,125,233,0.15);
    color: #e6eaf2;
    font-weight: 650;
    cursor: pointer;
}

.ff-dialog__actions button[type="submit"]{
    background: #017de9;
    color: #ffffff;
}

.ff-dialog__actions button:hover{
    background: rgba(1,125,233,0.30);
}

.ff-dialog__actions button[type="submit"]:hover{
    background: #48aaff;
}

@media (max-width: 520px){
    .ff-dialog__grid{ grid-template-columns: 1fr; }
}


.widget__confirm{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.widget__confirmLabel{
  font-weight: 650;
  opacity: 0.9;
}

.widget__confirmBtn{
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;

  display: inline-grid;
  place-items: center;

  font-size: 18px;
  font-weight: 900;
  line-height: 1;

  background: rgba(255,255,255,0.18);
  color: #e6eaf2;
}

.widget__confirmBtn--yes{
  background: rgba(71,255,103,0.25);
  border: 1px solid rgba(71,255,103,0.35);
}

.widget__confirmBtn--no{
  background: rgba(233,1,1,0.18);
  border: 1px solid rgba(233,1,1,0.28);
}

.widget__confirm[hidden]{
  display: none !important;
}


/* MORE button dashbaord */
.widget__more{
  position: relative;
}

.widget__btn--more{
  background: #001e37;
  width: 42px;
  padding: 10px 0;
  display: inline-grid;
  place-items: center;
}

.widget__moreMenu{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;

  min-width: 260px;
  padding: 10px;
  border-radius: 14px;

  background: rgba(11, 18, 32, 0.98);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);

  display: grid;
  gap: 8px;
}

.widget__moreMenu[hidden]{
  display: none !important;
}

.widget__menuItem{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(94,181,252,0.35);

  background: rgba(1,125,233,0.10);
  color: #e6eaf2;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}

.widget__menuItem:hover{
  background: rgba(1,125,233,0.25);
}

.widget__menuItem--danger{
  border-color: rgba(252,94,94,0.45);
  background: rgba(233,1,1,0.12);
}
.widget__menuItem--danger:hover{
  background: rgba(233,1,1,0.22);
}