#TVRemoteModal {
    --primary-color: #ff4081;
    --gradient-color: linear-gradient(135deg, #ff4081, #00e5ff);
    --bg-dark: #1a1a2e;
    --bg-surface: #2a2a3e;
    --text-primary: rgba(255, 255, 255, 0.87);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    z-index: 1100;
}

#GeneralRemoteThermostatModal {
    --primary-color: #ff4081;
    --gradient-color: linear-gradient(135deg, #ff4081, #00e5ff);
    --bg-dark: #1a1a2e;
    --bg-surface: #2a2a3e;
    --text-primary: rgba(255, 255, 255, 0.87);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    z-index: 1100;
}

/* === TV REMOTE BUTTON === */
.tv-remote-button {
    border: none;
    width: 50px;
    z-index: 50;
    background-color: transparent;
    /* position: relative; */
    /* bottom: 20px;
      right: 20px; */
    /* padding: 12px 24px;
      background: var(--gradient-color);
      color: white; */

    /* border-radius: 30px;
      font-weight: bold;
      cursor: pointer;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); */

    /* transition: var(--transition); */
}

#TvRemotIconimg {
    height: 50px;
    width: 50px;
}

.tv-remote-button:hover {
    /* background-color: transparent;
     transform: translateY(-2px);
     box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); */
    background-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0px -1px 20px 10px rgb(245 247 247);

}

/* === MODAL OVERLAY === */
.TVRemotModal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.TVRemotModal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* === REMOTE CONTAINER === */
.TVRemot {
    width: 260px;
    padding: 16px 0;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    place-items: center;
    background: var(--bg-surface);
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9);
    transform-origin: center;
}

/* === BUTTON GRIDS === */
.TVRemotRow {
    grid-column: span 3;
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.TVRemotRow.double {
    gap: 10px;
}

.TVRemoteCircle-group {
    grid-column: span 3;
    display: grid;
    grid-template-areas:
        ". up ."
        "left ok right"
        ". down .";
    gap: 10px;
    place-items: center;
    position: relative;
    padding: 16px;
}

.TVRemoteCircle-group::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--gradient-color);
    border-radius: 50%;
    opacity: 0.2;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.TVRemoteup {
    grid-area: up;
}

.TVRemotedown {
    grid-area: down;
}

.TVRemoteleft {
    grid-area: left;
}

.TVRemoteright {
    grid-area: right;
}

.TVRemoteok {
    grid-area: ok;
}

/* === BUTTON STYLES === */
.TVRemotebtn {
    width: 50px;
    height: 50px;
    background: linear-gradient(#2e2e2e, #1d1d1d);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    box-shadow:
        inset 0 0 5px #111,
        0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.TVRemotebtn:hover {
    background: linear-gradient(#3e3e3e, #2d2d2d);
}

.TVRemotebtn:active {
    transform: scale(0.95);
    background: linear-gradient(#1d1d1d, #0d0d0d);
}

.TVRemotebtn:active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0) 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: ripple 0.6s ease-out;
}

.TVRemotebtn.large {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    font-size: 13px;
    background: var(--gradient-color);
    color: white;
    box-shadow: 0 0 15px rgba(255, 64, 129, 0.5);
}

.TVRemotebtn.vertical {
    width: 50px;
    height: 100px;
    flex-direction: column;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    position: relative;
}

.TVRemotebtn.vertical span {
    flex: 1;
    text-align: center;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: var(--transition);
}

.TVRemotebtn.vertical span.action-up,
.TVRemotebtn.vertical span.action-down {
    background: rgba(255, 255, 255, 0.05);
}

.TVRemotebtn.vertical span.action-up:hover,
.TVRemotebtn.vertical span.action-down:hover {
    background: rgba(255, 255, 255, 0.15);
}

.TVRemotebtn.vertical span.action-up:active,
.TVRemotebtn.vertical span.action-down:active {
    background: var(--primary-color);
    color: white;
}

.TVRemotebtn.vertical .label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* === ANIMATIONS === */
@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 480px) {
    .TVRemot {
        width: 240px;
        padding: 14px 0;
        gap: 8px;
    }

    .TVRemotebtn {
        width: 46px;
        height: 46px;
        font-size: 10px;
    }

    .TVRemotebtn.large {
        width: 60px;
        height: 60px;
        font-size: 12px;
    }

    .TVRemotebtn.vertical {
        width: 50px;
        height: 100px;
        font-size: 13px;
    }
}

@media (max-height: 600px) {
    .TVRemot {
        gap: 8px;
    }

    .TVRemotebtn {
        width: 44px;
        height: 44px;
        font-size: 10px;
    }

    .TVRemotebtn.large {
        width: 58px;
        height: 58px;
        font-size: 11px;
    }

    .TVRemotebtn.vertical {
        height: 100px;
    }
}

.TVRemoteSettingButtons {
    font-size: 25px;
    /* background: #ff4081; */
    background: linear-gradient(135deg, #ff4081, #00e5ff);
    /* background: #00e5ff; */
}

#remoteModal {
    z-index: 1500;
}

button.btn.btn-outline-dark.w-100 {
    border: 1px solid black;
}

/* General Remote */

#GeneralRemoteIconimg {
    height: 50px;
    width: 25px;
}


.GeneralRemoteModal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.GeneralRemoteModal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.GeneralRemotebtn {
    height: 40px;
    width: 40px;
}

.GeneralRemotebtn-poweron {
    color: green;
}

.GeneralRemotebtn-poweroff {
    color: red;
}