@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

#wdg-root {
    --w-width: 360px;
    --w-btn: 60px;
    --w-bg: rgba(30, 30, 30, 0.85);
    --w-border: rgba(255, 255, 255, 0.12);
    --w-text: #ffffff;
    --w-sub: rgba(255, 255, 255, 0.75);
    font-family: 'Roboto', sans-serif;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    pointer-events: none;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

.wdg-btn {
    width: var(--w-btn);
    height: var(--w-btn);
    border-radius: 50%;
    background: var(--w-theme, #333);
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    overflow: visible;
}

.wdg-btn:hover { 
    transform: scale(1.1); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); 
}

.wdg-btn.wdg-active { 
    transform: rotate(135deg) scale(0.9); 
}

.wdg-icon { 
    width: 32px; 
    height: 32px; 
    pointer-events: none; 
}

.wdg-badge {
    position: absolute;
    top: -5px; 
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.1);
    z-index: 101;
    transition: transform 0.4s;
}

.wdg-btn.wdg-active .wdg-badge { 
    transform: rotate(-135deg); 
    opacity: 0; 
}

.wdg-card {
    width: var(--w-width);
    background: var(--w-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--w-border);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom right;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: var(--w-text);
    pointer-events: none;
}

.wdg-card.wdg-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wdg-bg {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: var(--w-grad);
    opacity: 0.25;
    z-index: 0;
    transition: background 0.6s ease;
}

.wdg-anim {
    position: absolute;
    top: -30px; 
    right: -30px;
    width: 180px; 
    height: 180px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.wdg-inner { 
    position: relative; 
    z-index: 2; 
}

.wdg-head {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-size: 13px; 
    color: var(--w-sub); 
    font-weight: 500;
    margin-bottom: 20px; 
    letter-spacing: 0.5px;
}

.wdg-main {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 30px;
}

.wdg-temp-box { 
    display: flex; 
    align-items: flex-start; 
}

.wdg-val { 
    font-size: 64px; 
    font-weight: 100; 
    line-height: 0.9; 
    letter-spacing: -3px; 
}

.wdg-unit { 
    font-size: 24px; 
    margin-top: 5px; 
    font-weight: 300; 
    opacity: 0.8; 
}

.wdg-pill {
    font-size: 18px; 
    font-weight: 700;
    background: rgba(255,255,255,0.1);
    padding: 8px 18px; 
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.wdg-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 12px;
    margin-bottom: 15px;
}

.wdg-cell {
    background: rgba(255,255,255,0.05);
    padding: 12px 16px; 
    border-radius: 16px;
    display: flex; 
    flex-direction: column; 
    gap: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.wdg-k { 
    font-size: 11px; 
    color: var(--w-sub); 
    text-transform: uppercase; 
    font-weight: 700; 
}

.wdg-v { 
    font-size: 15px; 
    font-weight: 600; 
}

.wdg-full {
    background: rgba(255,255,255,0.05);
    padding: 12px 16px; 
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.wdg-tip {
    font-size: 12px; 
    line-height: 1.5; 
    color: rgba(255,255,255,0.9);
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 480px) {
    #wdg-root { 
        right: 15px; 
        bottom: 15px; 
    }
    .wdg-card { 
        width: calc(100vw - 30px); 
    }
}

@keyframes wdg-spin { 
    100% { transform: rotate(360deg); } 
}

@keyframes wdg-float { 
    0% { transform: translateY(0); } 
    50% { transform: translateY(-8px); } 
    100% { transform: translateY(0); } 
}

@keyframes wdg-rain { 
    0% { opacity: 0; transform: translateY(-5px); } 
    50% { opacity: 1; } 
    100% { opacity: 0; transform: translateY(15px); } 
}
