@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
    /* fix for Chrome */
}

@supports (font-variation-settings: normal) {
    :root {
        font-family: InterVariable, sans-serif;
    }
}

/* Desktop Styling */
body {
    font-family: InterVariable, sans-serif;
    background-color: #141414;
    background-image: url('./images/background.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    font-family: InterVariable, sans-serif;
    justify-content: center;
    height: 100vh;
}

.confirmation-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #131313;
    padding: 40px;
    height: min-content;
    margin-top: 8rem;
    border-radius: 20px;
    box-shadow: 0 0 10px #0b0b0b, inset 0 0 20px #090909; 
    max-width: 410px;
    width: 100%;
    border: 2px dashed #333333;
}

.long-top {
    width: 18rem;
    user-select: none;
    -webkit-user-drag: none;
}

h1 {
    font-size: 2rem;
    color: #e80031;
    margin-bottom: 20px;
    margin-top: 30px;
}

p {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.email {
    color: #51c221;
}

.message-box {
    background-color: #111111;
    padding: 15px;
    border: 2px solid #1a1a1a;
    box-shadow: 0 0 10px #0b0b0b, inset 0 0 20px #090909;
    border-radius: 10px;
    margin: 0;
}

.message-box a {
    color: #e80031;
}

.message-box a:hover {
    color: #cc002c;
}

.message-box form {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    left: 50%;
    transform: translate(-50%);
    width: max-content;
}

.message-box form button {
    font-family: InterVariable, sans-serif;
    background-color: #52d11c;
    outline: 3px solid #52d11cbd;
    box-shadow: 0 0 15px #0f0f0f8f;
    text-shadow: none;
    border: none;
    flex: 1;
    border-radius: 8px;
    margin: 6px;
    padding: 3px 12px;
    color: #1d1d1d;
    cursor: pointer;
    width: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    transition: all .3s ease;
}

.message-box form button:hover {
    outline: 3px solid #43af14bd;
    background-color: #49be17;
    color: #292929;
    transition: .3s ease;
}

.refresh-instructions {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #c2c2c2;
}

.refresh-instructions a {
    transition: all .2s ease;
    text-decoration: none;
    color: #fff;
}

.refresh-instructions a:hover {
    color: #d1d1d1 !important;
    transition: all .2s ease;
    text-decoration: underline;
}

h3 {
    color: #fff;
    font-size: .9rem;
    display: flex;
    justify-content: center;
    position: relative;
    left: 50%;
    transform: translate(-50%);
    font-weight: 500;
    background-color: #1a1a1a;
    padding: 5px 12px;
    border-radius: 8px;
    width: fit-content;
    align-items: center;
    box-shadow: 0 0 6px #0f0f0fc4, inset 0 0 6px rgb(17, 17, 17);
    margin-bottom: 0;
}

h3 i {
    margin-right: 6px;
    font-size: .95rem;
}

h3 a {
    color: #e80031;
    transition: all .2s ease;
    margin-left: 5px;
    text-decoration: underline;
}

h3 a:hover {
    color: #c7002b;
    transition: all .2s ease;
}

a {
    color: #e80031;
    transition: all .2s ease;
    text-decoration: underline;
}

a i {
    margin-left: 4px;
}

a:hover {
    color: #c4002a;
    transition: all .2s ease;
}

/* Centering wrapper */
.notify-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -1rem;
    margin-top: 2rem;
    box-sizing: border-box;
}

/* The form “card” */
.notify-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    width: fit-content;
    font-family: InterVariable, sans-serif;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    /* keep your white text */
    -webkit-box-shadow: inset 0 0 0px 1000px #262626 !important;
    /* re-apply your dark background */
    box-shadow: inset 0 0 0px 1000px #262626 !important;
}

/* Override Firefox autofill */
input:-moz-autofill {
    box-shadow: inset 0 0 0px 1000px #262626 !important;
    -moz-text-fill-color: #fff !important;
}

.notify-form .input-group {
    position: relative;
    /* establish stacking context */
    overflow: visible;
    /* allow the glow to “bleed” out if you like */
}

/* overlay the inset glow above the children */
.notify-form .input-group::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50rem;
    /* match your pill shape */
    box-shadow: inset 0 0 10px #1a1a1a;
    outline: 2px solid #2b2b2b;
    pointer-events: none;
    /* so you can still click inputs/buttons */
    z-index: 2;
    /* above the input + button (which you’ve already set to z-index:1) */
}

/* make sure your inputs and button sit below it */
.notify-form .input-group>* {
    position: relative;
    z-index: 1;
}

/* Text input */
.notify-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 50rem 0 0 50rem;
    background: #262626;
    box-shadow: 0 0 8px rgba(24, 24, 24, 0.5);
    font-family: InterVariable, sans-serif;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.notify-form input:focus {
    box-shadow: 0 0 8px rgba(24, 24, 24, 0.5);
}

.ex_bob {
    font-size: .9rem;
    margin-top: .5rem;
    text-shadow: 0 0 5px #161616;
    color: #4e4e4e;
}

/* Submit button */
.notify-form button {
    padding: 0 1.2rem;
    border: none;
    border-radius: 0 50rem 50rem 0;
    background: #e80031;
    color: #ffffff;
    text-shadow: 0 0 5px #181818;
    font-weight: 500;
    font-size: 1rem;
    width: max-content;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .4rem;
    font-family: InterVariable, sans-serif;
    transition: background 0.2s, box-shadow 0.2s;
}

.notify-form button:hover:not(:disabled) {
    background: #c0002a;
}

.notify-form button:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Feedback message container (always reserves space, but hidden until needed) */
.notify-form .feedback-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.25rem;
    /* reserve vertical space */
    visibility: hidden;
    /* hide by default */
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-family: InterVariable, sans-serif;
}

/* shown when feedback is active */
.notify-form .feedback-message.visible {
    visibility: visible;
    opacity: 1;
}

/* error vs success colors */
.notify-form .feedback-message.error {
    color: #f44336;
}

.notify-form .feedback-message.success {
    color: #4caf50;
}

/* icon inside feedback */
.notify-form .feedback-message i {
    margin-right: 0.5rem;
    font-size: 1rem;
    line-height: 1;
}

/* 1) Base pill container */
.notify-form .input-group {
    position: relative;
    display: flex;
    width: 100%;
    border-radius: 50rem;
    /* pill shape */
    /* removed overflow:hidden so the glow can sit outside */
    font-family: InterVariable, sans-serif;
}

.manage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #131313;
    padding: 3rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
    border-radius: 20px;
    box-shadow: 0 0 10px #0b0b0b, inset 0 0 15px #090909, inset 0 -90px 90px -60px rgba(34, 34, 34, 0.8);
    border: 2px dashed #333333ce;
    text-shadow: 0 0 5px #121212ab;

    width: auto;
    max-width: 560px;     /* keep it centered and not too wide */
    height: min-content;
    box-sizing: border-box; /* make padding fit inside width */
    margin: 3rem auto 0;
}

.manage-container h1 {
    color: #e80031;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.manage-container h1 i {
    margin-left: .8rem;
}

.manage-btn-cont:has(> :not([hidden]):not([style*="display:none"]):not([style*="display: none"])) {
  display: flex;
}

.manage-btn-cont {
    display: flex;
    flex-wrap: wrap;   
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: .5rem;
    margin: 0;
}

.manage-btn-cont > button {
    flex: 0 0 auto; 
}

.btn {
    display: inline-block;
    padding: 0.6rem .9rem;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 0 5px #191919, inset 0 0 6px #0f0f0fb4;
    border: 2px solid #222222c2;
    text-shadow: 0 0 8px #202020af;
    font-family: InterVariable, sans-serif;
    transition: all ease 0.3s;
    display: flex;
    align-items: center;
}

.manage-btn-cont .btn i {
    margin-right: 6px;
}

.btn-primary {
    background: #e80031;
    color: #fff;
    transition: .3s all ease;
}

.btn-primary:hover {
    background: #c9002b;
    transition: .3s all ease;
    color: #e0e0e0;
    cursor: pointer;
}

.btn-primary.upgrade {
    background: #1dc31a;
}

.btn-primary.upgrade:hover {
    background: #18aa15;
}

#clear-sessions-form .btn-primary i {
    margin-right: 6px;
}

.btn-outline {
    background: #2e2e2e;
    color: #fff;
}

.btn-outline:hover {
    background: #2c2c2c;
    transition: all .3s ease;
    cursor: pointer;
}

.plan-box {
    height: min-content;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem;
    flex-direction: column;
    gap: .5rem;
    text-shadow: 0 0 5px #161616;
    overflow: hidden;
}

.plan-box h2 {
    margin: 0;
    padding-top: 1.4rem;
}

.plan-box h2 span {
    color: #c8c8c8;
}

.plan-box hr {
    margin-top: 4px;
    width: 200%;
    margin-left: -50%;
    border: 1px dashed #252525;
    box-shadow: 0 0 10px #131313;
}

.plan-box hr.hr-solid {
    border: .5px solid #1f1f1f;
    margin-bottom: .8rem;
    box-shadow: 0 0 10px #0c0c0c;
}

.plan-box p {
    margin: 0 !important;
    display: flex;
    align-items: center;
}

.plan-box p span {
    background-color: #2d2d2d;
    color: #c8c8c8;
    border-radius: 1rem;
    padding: .3rem .7rem;
    display: flex;
    align-items: center;
    margin-left: .5rem;
    box-shadow: 0 0 5px #151515, inset 0 0 6px #191919;
    justify-content: center;
}

.plan-box p span i {
    margin-right: .3rem;
}

.plan-box,
.sessions-box {
    border-radius: 12px;
    width: 100%;
    padding: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
    background: #191919;
    border: 1px solid #242424;
    box-shadow:
        0 0 6px rgba(0, 0, 0, 0.726),
        /* outer shadow */
        inset 0 0 8px rgba(0, 0, 0, 0.6);
}

.plan-box,
.sessions-box h2 {
    margin-top: 0;
    padding-top: 0;
}

.sessions-box table {
    min-width: 100%;
    border-collapse: collapse;
}

.sessions-box th,
.sessions-box td {
    padding: 0.5rem;
    border-bottom: 1px solid #282828;
    text-align: left;
    font-size: 0.9rem;
}

.sessions-box th:nth-last-of-type,
.sessions-box td:nth-last-of-type {
    border-bottom: none;
}

.sessions-box .delete-session {
    background: #ffffff00;
    color: #d61313;
    padding: 0.4rem 0.6rem;
    width: max-content;
    border-radius: 6px;
    border: 1px solid #282828 !important;
    transition: all .3s ease;
    font-family: InterVariable, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    box-shadow: 0 0 5px #191919, inset 0 0 5px #161616;
    text-shadow: 0 0 5px #121212;
    align-items: center;
    border: none;
}

.sessions-box .delete-session i {
    margin-left: 4px;
    font-size: .9rem;
}

.sessions-box .delete-session:hover {
    border: 1px solid #2b2b2b !important;
    color: #c20e0e;
    cursor: pointer;
    transition: all .3s ease;
}

.feedback {
    font-size: 0.85rem;
    min-height: 1.2em;
    margin-top: 0.5rem;
}

.feedback.error {
    color: #f44336;
}

.feedback.success {
    color: #4caf50;
}

/* Overlay */
.thh-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal container */
.thh-modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 0 20px #070707d8, inset 0 0 8px rgba(8, 8, 8, 0.37);
    outline: 2px solid #252525;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: InterVariable, sans-serif;
}

/* For smaller modals */
.thh-modal-smaller {
    max-width: 400px;
}

/* Header */
.thh-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.thh-modal-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.thh-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: .3s ease all;
}

.thh-modal-close:hover {
    color: #dfdfdf;
    transition: .3s ease all;
}

.thh-modal-content {
    background-color: #181818;
    font-family: InterVariable, sans-serif;
}

.thh-modal-content button {
    font-family: InterVariable, sans-serif;
}

.thh-modal-subtitle {
    font-size: 15px;
    color: #b1b1b1;
    margin: 0 0 16px 0;
}

/* Body */
.thh-modal-body {
    flex: 1;
    margin-bottom: 16px;
}

.thh-alert-box {
    display: flex;
    align-items: center;
    background-color: #202020;
    border: 1px solid #202020;
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    position: relative;
    margin-bottom: 0px;
    box-shadow: 0 0 8px rgba(17, 17, 17, 0.459), inset 0 0 8px rgba(24, 24, 24, 0.527);
}

.thh-alert-text {
    font-size: 14px;
    color: #e80031;
    margin-right: auto;
}

.thh-alert-close {
    background: none;
    border: none;
    font-size: 14px;
    color: #ffffff;
    cursor: pointer;
    transition: .3s ease all;
}

.thh-alert-close:hover {
    color: #e7e7e7;
    transition: .3s ease all;
}

/* Footer */
.thh-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 2px solid rgb(34, 34, 34);
    padding-top: 14px;
    gap: 4px;
}

/* Buttons */
.thh-btn {
    border: none;
    border-radius: 6px;
    font-size: 15px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-left: 8px;
    transition: .3s ease all;
}

.thh-btn-gray {
    background-color: #272727;
    color: #ffffff;
    transition: .3s ease all;
    box-shadow: 0 0 6px #0f0f0fb6, inset 0 0 6px rgba(8, 8, 8, 0.637);
}

.thh-btn-gray:hover {
    background-color: #252525;
    box-shadow: 0 0 6px #0f0f0fb6, inset 0 0 6px rgba(8, 8, 8, 0.737);
    transition: .3s ease all;
}

.thh-btn-primary {
    background-color: #e80031;
    color: #fff;
    box-shadow: 0 0 6px #0f0f0fb6, inset 0 0 6px rgba(8, 8, 8, 0.829);
}

.thh-btn-primary:hover {
    background-color: #bb0028;
    transition: .3s ease all;
}

.thh-btn i {
    margin-left: 6px;
}

/* The little inset “pill” around avatar, label & logout */
.top-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: #191919;
    border: 1px solid #242424;
    box-shadow:
        0 0 6px rgba(0, 0, 0, 0.726),
        /* outer shadow */
        inset 0 0 8px rgba(0, 0, 0, 0.6);
    /* inner glow */
}

/* The round avatar circle with a colored background */
.top-icon .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #959595;
    user-select: none;
    color: #fff;
    font-size: 1.1rem;
    text-shadow: 0 0 5px #141414;
    box-shadow: 0 0 6px rgba(20, 20, 20, 0.7), inset 0 0 5px #1c1c1c;
}

/* Label next to it */
.top-icon #userLabel {
    color: #e2e2e2;
    font-size: 1rem;
    font-weight: 500;
}

.top-icon #userLabel span {
    text-decoration: underline;
}

/* Tweak logout button to sit flush */
.top-icon #logoutBtn {
    margin: 0;
    padding: 0.4rem 0.8rem;
    transition: .3s ease all;
    border-radius: 10px;
    font-size: 0.875rem;
    background-color: #d61313;
    box-shadow: 0 0 5px rgb(54, 33, 33), inset 0 0 10px rgba(83, 5, 5, 0.671);
    border: 2px solid #b41b1b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: InterVariable, sans-serif;
}

.top-icon #logoutBtn:hover {
    transition: all .3s ease;
    background-color: #c70e0e;
    box-shadow: 0 0 5px rgb(90, 42, 42), inset 0 0 10px rgba(70, 3, 3, 0.671);
    border: 2px solid #b11818;
    color: #ffcfcf;
}

.top-icon #logoutBtn i {
    margin-right: 5px;
    margin-left: 0;
}

.error-occurred {
    display: flex;
    align-items: center;
}

.error-occurred i {
    margin-right: 6px;
}

@media only screen and (max-width: 490px) {
    #userAvatar {
        display: none;
    }
}

@media only screen and (max-width: 600px) {

    body {
        height: auto;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .confirmation-container {
        /* Reduce padding and use a wider percentage to fit smaller screens */
        margin: 20px auto;
        padding: 20px;
        max-width: 90%;
        margin-top: 120px;
        /* Optionally, reduce border width on smaller screens */
        border-width: 2px;
    }

    .manage-container {
        margin: 20px auto;
        padding: 20px;
        max-width: 90%;
        margin-top: 4rem;
        /* Optionally, reduce border width on smaller screens */
        border-width: 2px;
    }

    .top-icon {
        width: 90%;
        gap: .5rem;
    }

    .plan-box {
        width: 90%;
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .message-box {
        padding: 10px;
        margin: 15px 0;
    }

    .refresh-instructions {
        font-size: 0.8rem;
        margin-top: 15px;
    }

    h3 {
        font-size: clamp(0.4rem, 2vw, 0.7rem);
        margin-bottom: 1rem;
    }

    h3 i {
        font-size: clamp(0.4rem, 2vw, 0.7rem);
    }


    /* Logo size */
    .manage-container .long-top {
        width: 12rem;
        margin-bottom: 1rem;
    }

    #userLabel {
        display: inline-block;
        max-width: 10.8rem;
        width: auto;

        white-space: normal;
        overflow-wrap: break-word;
    }


    .top-icon .icon {
        width: 2rem;
        height: 2rem;
    }

    .top-icon #userLabel {
        font-size: 0.9rem;
    }

    .top-icon #logoutBtn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Plan box text size */
    .plan-box h2 {
        font-size: 1.1rem;
        padding-top: 0;
    }

    .plan-box p {
        font-size: 0.9rem;
    }

    .plan-box span {
        font-size: 1rem;
    }

    /* Buttons full width and spacing */
    .manage-btn-cont {
        flex-direction: column;
        gap: 0.75rem;
        margin: 0;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 0.75rem;
        margin: 0;
        font-size: 1rem;
    }

    .sessions-box table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }

    .sessions-box {
        width: 90%;
    }

    .sessions-box th,
    .sessions-box td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    /* Feedback message spacing */
    #manageFeedback {
        margin-top: 1rem;
        font-size: 0.85rem;
    }

    /* Modal overlay adjustments */
    .thh-modal-content.thh-modal-smaller {
        width: 90%;
        padding: 1rem;
    }

    .thh-modal-header h2 {
        font-size: 1.1rem;
    }

    .thh-modal-body p {
        font-size: 0.9rem;
    }

    .thh-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .notify-form {
        width: 100%;
    }

    .notify-form input {
        width: 5rem;
        font-size: .9rem;
    }

    .notify-form button {
        font-size: .9rem;
        padding: 0 .8rem;
        line-height: 1rem;
    }

    .notify-form button i {
        font-size: .9rem;
    }
}
