

/* body {
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #0DBDC9 100%);
    background-attachment: fixed;
    font-family: "Inter", Arial, sans-serif;
}

html, body {
    overscroll-behavior: none;
} */


.ha-plugin-wrapper {
    --ha-blue: #0BA8B3;
    --ha-orange: #D89B49;
    --ha-red: #D9363E;
    --ha-dark: #1F2933;
    --ha-light: #FAF6EF;

    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f4f4 100%);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 40px auto;
    position: relative;
    overflow: hidden;
}

.ha-plugin-wrapper::before,
.ha-plugin-wrapper::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.25;
    z-index: -1;
}

.ha-plugin-wrapper::before {
    background: var(--ha-blue);
    top: -40px;
    left: -40px;
}

.ha-plugin-wrapper::after {
    background: var(--ha-blue);
    bottom: -40px;
    right: -40px;
}

.ha-plugin-wrapper h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ha-blue);
    margin-bottom: 25px;
    position: relative;
    letter-spacing: -0.5px;
}

.ha-plugin-wrapper h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 70px;
    height: 5px;
    background: var(--ha-red);
    border-radius: 3px;
}

.ha-plugin-wrapper form {
    background: none;
    backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    transition: transform .25s, box-shadow .25s;
}

.ha-plugin-wrapper label {
    font-weight: 700;
    margin: 1em 0px 0em;
    display: inline-block;
    color: var(--ha-dark);
    letter-spacing: .2px;
}

.ha-plugin-wrapper input[type="email"],
.ha-plugin-wrapper input[type="password"],
.ha-plugin-wrapper select {
    width: 90%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid #ddd;
    background: #fafafa;
    transition: border-color .25s, background .25s, box-shadow .25s;
    font-size: 1rem;
}

.ha-plugin-wrapper input:focus,
.ha-plugin-wrapper select:focus {
    border-color: var(--ha-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(42,111,158,0.15);
    outline: none;
}

.ha-plugin-wrapper button {
    background: var(--ha-blue);
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .3px;
    transition: background .25s, transform .15s, box-shadow .25s;
    box-shadow: 0 4px 12px rgba(42,111,158,0.25);
    margin: 1em 0em 0em;
}

.ha-plugin-wrapper button:hover {
    background: #1f567a;
    box-shadow: 0 6px 18px rgba(42,111,158,0.35);
}

.ha-plugin-wrapper button:active {
    transform: scale(0.95);
}

.ha-plugin-wrapper button[name="ha_action_change"] {
    background: var(--ha-orange);
    box-shadow: 0 4px 12px rgba(242,140,40,0.25);
}

.ha-plugin-wrapper button[name="ha_action_change"]:hover {
    background: #d97a20;
}

.ha-plugin-wrapper button.danger {
    background: var(--ha-red);
    box-shadow: 0 4px 12px rgba(214,69,69,0.25);
}

.ha-plugin-wrapper button.danger:hover {
    background: #b83838;
}

.ha-plugin-wrapper p[style*="color:red"] {
    background: #ffe5e5;
    padding: 14px;
    border-left: 6px solid var(--ha-red);
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ha-plugin-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.ha-plugin-wrapper table th {
    background: var(--ha-blue);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 700;
    letter-spacing: .4px;
    font-size: 1rem;
}

.ha-plugin-wrapper table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.ha-plugin-wrapper table tr:nth-child(even) {
    background: rgba(0,0,0,0.03);
}

.ha-plugin-wrapper table tr:hover {
    background: rgba(42,111,158,0.08);
}

.ha-plugin-wrapper a[href*="export"] {
    display: inline-block;
    margin-top: 12px;
    color: var(--ha-orange);
    font-weight: 700;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 3px solid var(--ha-red);
    transition: color .25s, border-color .25s;
}

.ha-plugin-wrapper a[href*="export"]:hover {
    color: #1f567a;
    border-color: var(--ha-blue);
}

.ha-plugin-wrapper .ha-user-info {
    background: rgba(255,255,255,0.7);
    border-left: 6px solid var(--ha-red);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ha-dark);
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ha-plugin-wrapper .ha-user-email {
    color: var(--ha-orange);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: .3px;
}
