#dashboard-container {
            display: none;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease-in-out;
            margin: 0 auto;
            width: 96%;
            max-width: 1366px;
        }

        #dashboard-container.show {
            opacity: 1;
            display: flex;
            justify-content: center;
            align-items: baseline;
            margin-bottom: 50px;
            flex-direction: row-reverse;
        }

        .top-section {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            justify-content: space-between;
            width: 100%;
            flex-wrap: nowrap;
            direction: rtl;
        }

        .box {
            background: #f1f5f9;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .box-right {
            gap: 15px;
            color: #1e3a8a;
            font-weight: bold;
            grid-auto-flow: row;
            direction: rtl;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 96%;
        }

        .box-left {
            display: flex;
            flex-direction: column;
            gap: 15px;
            color: #1e3a8a;
            font-weight: bold;
            direction: rtl;
            align-items: stretch;
            width: 96%;

        }

        .data-row {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #3498db;
        }

        .data-value {
            color: #333;
            font-weight: normal;
        }

        /* استایل دایره وضعیت با انیمیشن */
        .status-circle {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            display: inline-block;
            animation: pulse 1.5s infinite;
        }

        .status-green { background-color: #10b981; box-shadow: 0 0 8px #10b981; }
        .status-yellow { background-color: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
        .status-red { background-color: #ef4444; box-shadow: 0 0 8px #ef4444; }

        @keyframes pulse {
            0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4); }
            70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 0, 0, 0); }
            100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
        }

        /* اینپوت‌ها و دکمه‌ها */
        .input-dynamic {
            float: right;
            text-align: center;
            border: none;
            border-radius: 5px;
            width: 100%;
            margin-top: 0 ;
            padding: 5px;
            font-size: 100%;
        }
        .input-dynamic:focus { outline: none; border-color: #3b82f6; }

        .btn-save {
            background-color: #2b85c0;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s, transform 0.1s;
            margin-top: 2px;
            width: 100%;
        }
        .btn-save:hover { background-color: #1d4ed8; }
        .btn-save:active { transform: scale(0.97); }

        /* جدول استعلامات */
        .table-container {
            display: none; /* پیش‌فرض مخفی تا زمانی که وضعیت 1 باشد */
            animation: fadeIn 0.5s ease-in-out;
            width: 100%;
            max-height: 482px;
            overflow-x: hidden;
            scrollbar-width: thin;
            scrollbar-color: #3498db #f1f5f9;

        }
        .table-header {
            display: flex;
            justify-content: space-between;
            color: #1e3a8a;
            font-weight: bold;
            border-bottom: 2px solid #3498db;
            padding-bottom: 10px;
            margin-bottom: 15px;
        }
        .table-header span{
            color: #3498db;
        }
        #table-body{
            direction: ltr;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            text-align: center;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            overflow: hidden;
            direction: rtl;
        }

        th, td {
            border: 1px solid #cbd5e1;
            padding: 12px;
        }

        th {
            background-color: #f8fafc;
            color: #1e3a8a;
        }

        /* رسپانسیو */
        @media (min-width: 921px) {
            .top-section.layout-with-table {
                    flex-direction: column;
                    width: 50%;
                }
        }
        @media (max-width: 920px) {
            #dashboard-container.show{
                flex-direction: column;
            }
            .top-section{
                width: 100%;
                flex-wrap: nowrap;
            }
            .box-right,.box-left{
                width: 50%;
            }
        }
        @media (max-width: 700px) {
            #dashboard-container.show{
                flex-direction: column;
            }
            .top-section{
                width: 100%;
                flex-direction: column !important;
                flex-wrap: wrap;
            }
            .box-right,.box-left{
                width: 100%;
            }
        }
        @media (max-width: 500px) {
            .table-header{
                flex-direction: column-reverse;
                align-content: center;
                align-items: center;
            }
        }
        
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

