﻿.floating-widgets-container {
    position: fixed;
    left: 16px;
    bottom: 90px !important; 
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.floating-widget {
    position: relative;
}

.network-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    padding: 0;
    color: #084574;
}

   
    .network-btn.active {
        color: #0056b3;
        transform: scale(1.05);
    }

    .network-btn svg {
        width: 39px;
        height: 39px;
        transition: all 0.3s ease;
    }


.info-panel {
    position: absolute;
    top: auto;
    bottom: 50%; 
    left: 250%;
    transform: translateX(-50%) translateY(-15px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10001;
    overflow: hidden;
    font-family: "IRANSans", Tahoma, Arial, sans-serif;
}

   
    .info-panel.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-20px);
    }

    /* فلش پایین پنل */
    .info-panel::before {
        content: '';
        position: absolute;
        top: 100%;
        left: 250%;
        transform: translateX(-50%);
        border: 10px solid transparent;
        border-top-color: #ffffff;
        z-index: 1;
    }

    .info-panel::after {
        content: '';
        position: absolute;
        top: calc(100% + 2px);
        left: 50%;
        transform: translateX(-50%);
        border: 12px solid transparent;
        border-top-color: #e2e8f0;
        z-index: 0;
    }


.panel-content {
    padding: 1.5rem;
    text-align: right;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #2470AB;
    border-radius: 8px;
    border: 1px solid #1a5a8a;
    text-align: right;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-label {
    font-weight: 410;
    color: #ffffff;
   /* color: rgba(255,255,255,0.95);*/
    font-size: 1.33rem;
    text-align: right;
    font-family: "IRANSans", Tahoma, Arial, sans-serif;
}

.info-value {
    text-align: left;
    font-family: 'Courier New', monospace;
    font-weight: 400;
    color: #ffffff;
    font-size: 1.3rem;
    background: transparent;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    border: none;
    margin-right: 10px;
    direction: ltr;
    display: inline-block;
    font-family: "IRANSans", Tahoma, Arial, sans-serif;
}

.country-flag {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.loading {
    opacity: 0.7;
    animation: subtle-pulse 1.5s infinite;
}

@keyframes subtle-pulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.9;
    }

    100% {
        opacity: 0.7;
    }
}





/* حالت چرخش صفحه */
@media screen and (orientation: portrait) {
    .floating-widgets-container {
        bottom: 10% !important;
    }
}

@media screen and (orientation: landscape) {
    .floating-widgets-container {
        bottom: 80px;
    }
}