/* _content/DeviceManagement.Api/Components/Layout/AdminLayout.razor.rz.scp.css */
.admin-shell[b-2uttq19rsn] {
    min-height: 100vh;
    display: flex;
    background: #f8fafc;
    width: 100%;
    overflow-x: hidden;
}

.admin-sidebar[b-2uttq19rsn] {
    width: 270px;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink:0;
}


.user-profile[b-2uttq19rsn] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 14px;
    margin-bottom: 24px;
}


.user-avatar[b-2uttq19rsn] {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}


.user-name[b-2uttq19rsn] {
    font-weight: 700;
    color: #0f172a;
}


.user-role[b-2uttq19rsn] {
    font-size: 0.8rem;
    color: #64748b;
}


.sidebar-title[b-2uttq19rsn] {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 10px 8px;
}


.admin-main[b-2uttq19rsn] {
    flex: 1;
    min-width: 0; /* خیلی مهم */
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.admin-header[b-2uttq19rsn] {
    min-height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 28px;
    color: #334155;
    font-weight: 600;
}

.admin-content[b-2uttq19rsn] {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    
}

.admin-header[b-2uttq19rsn] {
    min-height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

.header-title[b-2uttq19rsn] {
    font-weight: 700;
    color: #0f172a;
}

.header-actions[b-2uttq19rsn] {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-user[b-2uttq19rsn] {
    color: #475569;
    font-size: 0.9rem;
}

.logout-button[b-2uttq19rsn] {
    height: 38px;
    padding: 0 16px;
    border: none;
    border-radius: 9px;
    background: #fef2f2;
    color: #dc2626;
    font-weight: 600;
    cursor: pointer;
}

    .logout-button:hover[b-2uttq19rsn] {
        background: #fee2e2;
    }

@media (max-width: 768px) {

    .admin-shell[b-2uttq19rsn] {
        display: block;
    }

    .admin-sidebar[b-2uttq19rsn] {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .sidebar-nav[b-2uttq19rsn] {
        flex-direction: row;
        overflow-x: auto;
    }

        .sidebar-nav a[b-2uttq19rsn] {
            white-space: nowrap;
        }

    .admin-content[b-2uttq19rsn] {
        padding: 18px;
    }
}
/* _content/DeviceManagement.Api/Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-s5iqrjkcbx] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-s5iqrjkcbx] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.app-shell[b-s5iqrjkcbx] {
    min-height: 100vh;
    direction: rtl;
}

.app-header[b-s5iqrjkcbx] {
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.app-header-content[b-s5iqrjkcbx] {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-title[b-s5iqrjkcbx] {
    font-size: 1.2rem;
    font-weight: 700;
}

.app-nav[b-s5iqrjkcbx] {
    display: flex;
    gap: 20px;
}

    .app-nav a[b-s5iqrjkcbx] {
        text-decoration: none;
        color: #374151;
    }

        .app-nav a.active[b-s5iqrjkcbx] {
            font-weight: 700;
        }

.app-content[b-s5iqrjkcbx] {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}
/* _content/DeviceManagement.Api/Components/Pages/Dashboard.razor.rz.scp.css */
.dashboard-grid[b-c8aodawa2x] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.dashboard-card[b-c8aodawa2x] {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

    .dashboard-card h3[b-c8aodawa2x] {
        margin: 0 0 15px;
        font-size: 1rem;
        color: #6b7280;
    }

    .dashboard-card strong[b-c8aodawa2x] {
        font-size: 2rem;
        color: #111827;
    }
/* _content/DeviceManagement.Api/Components/Pages/Devices.razor.rz.scp.css */
.devices-page[b-vl7kwb1zmk] {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

    .devices-page *[b-vl7kwb1zmk],
    .devices-page *[b-vl7kwb1zmk]::before,
    .devices-page *[b-vl7kwb1zmk]::after {
        box-sizing: border-box;
    }

.page-header[b-vl7kwb1zmk] {
    margin-bottom: 24px;
}

    .page-header h1[b-vl7kwb1zmk] {
        margin: 0 0 8px;
        font-size: 1.65rem;
        font-weight: 700;
        color: #0f172a;
    }

    .page-header p[b-vl7kwb1zmk] {
        margin: 0;
        color: #64748b;
        font-size: 0.95rem;
    }

.device-card[b-vl7kwb1zmk] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 26px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

    .device-card h2[b-vl7kwb1zmk] {
        margin: 0 0 22px;
        font-size: 1.1rem;
        font-weight: 700;
        color: #1e293b;
    }

/* فرم ثبت دستگاه */

.form-grid[b-vl7kwb1zmk] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.form-group[b-vl7kwb1zmk] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label[b-vl7kwb1zmk] {
        font-size: 0.88rem;
        font-weight: 600;
        color: #334155;
    }

.form-control[b-vl7kwb1zmk] {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.92rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-control:focus[b-vl7kwb1zmk] {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    }

    .form-control[b-vl7kwb1zmk]::placeholder {
        color: #94a3b8;
    }

/* دکمه‌ها */

.form-actions[b-vl7kwb1zmk] {
    margin-top: 24px;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.submit-device-button[b-vl7kwb1zmk],
.search-button[b-vl7kwb1zmk] {
    height: 44px;
    min-width: 135px;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.submit-device-button[b-vl7kwb1zmk] {
    background: #2563eb;
    color: #ffffff;
}

    .submit-device-button:hover[b-vl7kwb1zmk] {
        background: #1d4ed8;
        box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
    }

.search-button[b-vl7kwb1zmk] {
    background: #475569;
    color: #ffffff;
}

    .search-button:hover[b-vl7kwb1zmk] {
        background: #334155;
    }

    .submit-device-button:active[b-vl7kwb1zmk],
    .search-button:active[b-vl7kwb1zmk] {
        transform: translateY(1px);
    }

/* جستجو */

.search-header[b-vl7kwb1zmk] {
    margin-bottom: 20px;
}

    .search-header h2[b-vl7kwb1zmk] {
        margin-bottom: 6px;
    }

    .search-header p[b-vl7kwb1zmk] {
        margin: 0;
        color: #64748b;
        font-size: 0.88rem;
    }

.search-grid[b-vl7kwb1zmk] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* جدول */

.table-header[b-vl7kwb1zmk] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

    .table-header h2[b-vl7kwb1zmk] {
        margin: 0 0 6px;
    }

    .table-header p[b-vl7kwb1zmk] {
        margin: 0;
        color: #64748b;
        font-size: 0.86rem;
    }

.record-count[b-vl7kwb1zmk] {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.table-responsive[b-vl7kwb1zmk] {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.device-table[b-vl7kwb1zmk] {
    width: 100%;
    min-width: 950px;
    border-collapse: collapse;
    background: #ffffff;
}

    .device-table th[b-vl7kwb1zmk],
    .device-table td[b-vl7kwb1zmk] {
        padding: 14px 15px;
        text-align: right;
        border-bottom: 1px solid #e2e8f0;
        white-space: nowrap;
    }

    .device-table th[b-vl7kwb1zmk] {
        background: #f8fafc;
        color: #475569;
        font-size: 0.82rem;
        font-weight: 700;
    }

    .device-table td[b-vl7kwb1zmk] {
        color: #334155;
        font-size: 0.88rem;
    }

    .device-table tbody tr:hover[b-vl7kwb1zmk] {
        background: #f8fafc;
    }

    .device-table tbody tr:last-child td[b-vl7kwb1zmk] {
        border-bottom: none;
    }

.actions-cell[b-vl7kwb1zmk] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-action[b-vl7kwb1zmk] {
    border: none;
    background: transparent;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 0.84rem;
    cursor: pointer;
}

    .table-action.edit[b-vl7kwb1zmk] {
        color: #2563eb;
    }

        .table-action.edit:hover[b-vl7kwb1zmk] {
            background: #eff6ff;
        }

    .table-action.delete[b-vl7kwb1zmk] {
        color: #dc2626;
    }

        .table-action.delete:hover[b-vl7kwb1zmk] {
            background: #fef2f2;
        }

/* Responsive */

@media (max-width: 950px) {
    .search-grid[b-vl7kwb1zmk] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-grid[b-vl7kwb1zmk] {
        grid-template-columns: 1fr;
    }

    .device-card[b-vl7kwb1zmk] {
        padding: 18px;
        border-radius: 12px;
    }

    .table-header[b-vl7kwb1zmk] {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* _content/DeviceManagement.Api/Components/Pages/Firmwares.razor.rz.scp.css */
.firmware-page[b-iftaud5s5v] {
    width: 100%;
}

.page-header[b-iftaud5s5v] {
    margin-bottom: 24px;
}

    .page-header h1[b-iftaud5s5v] {
        margin: 0 0 8px;
        font-size: 1.7rem;
        color: #111827;
    }

    .page-header p[b-iftaud5s5v] {
        margin: 0;
        color: #6b7280;
    }

.firmware-grid[b-iftaud5s5v] {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.firmware-card[b-iftaud5s5v] {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
}

    .firmware-card h2[b-iftaud5s5v] {
        margin: 0 0 22px;
        font-size: 1.1rem;
        color: #1f2937;
    }


.form-grid[b-iftaud5s5v] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.form-group[b-iftaud5s5v] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label[b-iftaud5s5v] {
        font-size: 0.88rem;
        font-weight: 600;
        color: #334155;
    }

.form-control[b-iftaud5s5v] {
    width: 100%;
    min-width: 0;
    height:fit-content;
    padding: 5px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.92rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-control:focus[b-iftaud5s5v] {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    }

    .form-control[b-iftaud5s5v]::placeholder {
        color: #94a3b8;
    }

.firmware-description[b-iftaud5s5v] {
    min-height: 110px;
    resize: vertical;
}

.form-group small[b-iftaud5s5v] {
    color: #9ca3af;
}

.form-actions[b-iftaud5s5v] {
    margin-top: 24px;
}

.upload-button[b-iftaud5s5v] {
    min-width: 170px;
    height: 46px;
    border: none;
    border-radius: 9px;
    background: #1f2937;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

    .upload-button:hover[b-iftaud5s5v] {
        background: #111827;
    }

.table-header[b-iftaud5s5v] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.record-count[b-iftaud5s5v] {
    font-size: 0.85rem;
    color: #6b7280;
}

.table-responsive[b-iftaud5s5v] {
    width: 100%;
    overflow-x: auto;
}

.firmware-table[b-iftaud5s5v] {
    width: 100%;
    border-collapse: collapse;
}

    .firmware-table th[b-iftaud5s5v],
    .firmware-table td[b-iftaud5s5v] {
        padding: 14px 12px;
        text-align: right;
        border-bottom: 1px solid #f1f5f9;
        white-space: nowrap;
    }

    .firmware-table th[b-iftaud5s5v] {
        font-size: 0.85rem;
        color: #6b7280;
        font-weight: 600;
        background: #f8fafc;
    }

    .firmware-table td[b-iftaud5s5v] {
        font-size: 0.9rem;
        color: #374151;
    }

.status[b-iftaud5s5v] {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

    .status.published[b-iftaud5s5v] {
        background: #ecfdf5;
        color: #047857;
    }

    .status.draft[b-iftaud5s5v] {
        background: #f3f4f6;
        color: #6b7280;
    }

.table-action[b-iftaud5s5v] {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #2563eb;
    font-size: 0.9rem;
}

@media (max-width: 768px) {

    .form-grid[b-iftaud5s5v] {
        grid-template-columns: 1fr;
    }

    .full-width[b-iftaud5s5v] {
        grid-column: auto;
    }

    .firmware-card[b-iftaud5s5v] {
        padding: 18px;
    }
}
/* _content/DeviceManagement.Api/Components/Pages/Home.razor.rz.scp.css */
.home-container[b-wsy7n8cb8a] {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-card[b-wsy7n8cb8a] {
    width: 100%;
    max-width: 600px;
    padding: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 12px;
}

    .home-card h1[b-wsy7n8cb8a] {
        margin-bottom: 20px;
    }

    .home-card p[b-wsy7n8cb8a] {
        margin-bottom: 30px;
        line-height: 1.8;
    }
/* _content/DeviceManagement.Api/Components/Pages/Login.razor.rz.scp.css */
.login-page[b-lyjy9qq4ap] {
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-image: url('/images/login_back.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-card[b-lyjy9qq4ap] {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    padding: 38px 36px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(8px);
}

.login-header[b-lyjy9qq4ap] {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon[b-lyjy9qq4ap] {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 14px;
    font-size: 30px;
    font-weight: bold;
}

.login-header h1[b-lyjy9qq4ap] {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.login-header p[b-lyjy9qq4ap] {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.8;
}

.login-form[b-lyjy9qq4ap] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group[b-lyjy9qq4ap] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label[b-lyjy9qq4ap] {
        font-size: 0.9rem;
        font-weight: 600;
        color: #374151;
    }

.form-control[b-lyjy9qq4ap] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-control[b-lyjy9qq4ap]::placeholder {
        color: #9ca3af;
    }

    .form-control:focus[b-lyjy9qq4ap] {
        outline: none;
        border-color: #64748b;
        box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
    }

.login-button[b-lyjy9qq4ap] {
    height: 50px;
    margin-top: 5px;
    border: none;
    border-radius: 10px;
    background: #1f2937;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

    .login-button:hover[b-lyjy9qq4ap] {
        background: #111827;
    }

    .login-button:active[b-lyjy9qq4ap] {
        transform: translateY(1px);
    }

.login-footer[b-lyjy9qq4ap] {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    color: #9ca3af;
    font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 576px) {

    .login-page[b-lyjy9qq4ap] {
        padding: 20px 15px;
    }

    .login-card[b-lyjy9qq4ap] {
        padding: 30px 22px 24px;
        border-radius: 14px;
    }
}
/* _content/DeviceManagement.Api/Components/Shared/SidebarMenu.razor.rz.scp.css */
.sidebar-nav[b-j0voht40xt] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


    .sidebar-nav a[b-j0voht40xt] {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 12px;
        color: #475569;
        text-decoration: none;
        font-weight: 500;
        transition: all .2s ease;
    }


        .sidebar-nav a:hover[b-j0voht40xt] {
            background: #f1f5f9;
            color: #0f172a;
        }


        .sidebar-nav a.active[b-j0voht40xt] {
            background: #2563eb;
            color: white;
        }


.menu-icon[b-j0voht40xt] {
    width: 24px;
    text-align: center;
}
