﻿@import url("network-assets.css");

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    overflow: hidden;
}

#app {
    width: 100%;
    height: 100%;
}

.app-panel {
    background: #f7faff;
    border: 1px solid #e3ebf8;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.asset-page {
    margin-top: 8px;
}

.asset-header h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    color: #0f2c5f;
}

.asset-header p {
    margin: 8px 0 16px;
    color: #64748b;
    font-size: 14px;
}

.asset-panel {
    padding: 18px 18px 22px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px 18px;
}

.filter-item label,
.form-row label {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.filter-item input:not([type="checkbox"]),
.filter-item select,
.dialog-card input:not([type="checkbox"]),
.dialog-card select,
.dialog-card textarea,
.toolbar select{
    width: 100%;
    border: 1px solid #dce6f5;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(148, 163, 184, 0.12);
}

.filter-item input:not([type="checkbox"]),
.filter-item select,
.dialog-card input:not([type="checkbox"]),
.dialog-card select,
.toolbar select {
    height: 44px;
}

.filter-item select,
.dialog-card select,
.toolbar select {
    padding-right: 42px;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.filter-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar {
    margin: 12px 0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn {
    min-width: 96px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-primary {
    background: #3979ea;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(57, 121, 234, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: #2f69cf;
}

.btn-secondary {
    background: #ffffff;
    border-color: #b8c5db;
    color: #334155;
}

.btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
}

.alert {
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff4f4;
    color: #cb3a31;
    border: 1px solid #ffd5d2;
}

.dialog-mask {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 999;
}

.dialog-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e8eef8;
}

.dialog-header h3 {
    margin: 0;
    font-size: 22px;
    color: #0f2c5f;
}

.dialog-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #eef4ff;
    color: #1d4ed8;
    font-size: 20px;
    cursor: pointer;
}

.dialog-body {
    padding: 20px 24px;
}

.dialog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 24px 24px;
}

.full-row {
    grid-column: 1 / -1;
}

.table-action {
    min-width: auto;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #245fcb;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-right: 14px;
}

.table-action:hover:not(:disabled) {
    color: #174aa2;
}

.table-action:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.table-action-danger {
    color: #d92d20;
}

.table-action-danger:hover:not(:disabled) {
    color: #b42318;
}

button.is-loading {
    pointer-events: none;
    opacity: 0.92;
}

button.is-loading::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: app-btn-spin 0.75s linear infinite;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

@keyframes app-btn-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#blazor-error-ui {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Global fallback styles to ensure side menu always renders correctly */
.menu-shell {
    height: 100vh;
    padding: 10px 0 12px;
    color: #eaf2ff;
    background: #2f73d0;
    overflow-y: auto;
}

.menu-logo-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 14px;
}

.menu-logo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #d9dbe8;
    border: 2px solid #f5f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-logo img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0.25) saturate(0.9);
}

.menu-group {
    margin-bottom: 6px;
}

.menu-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

.menu-group-title-link.active {
    background: #032a63;
}

.menu-link {
    display: block;
    padding: 10px 16px 10px 48px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .12s ease;
}

.menu-link:hover,
.menu-group-title-link:hover {
    background: rgba(9, 48, 109, 0.28);
}

.menu-link.active {
    background: #124a9a;
}

.menu-link-l1 {
    padding-left: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-icon-img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.menu-icon-img.small {
    width: 13px;
    height: 13px;
}

.menu-group-last {
    margin-top: 4px;
}

@media (max-width: 640px) {
    .menu-shell {
        height: auto;
    }

    .menu-group-title {
        font-size: 14px;
        padding: 9px 12px;
    }

    .menu-link {
        font-size: 13px;
        padding: 8px 10px 8px 36px;
    }

    .menu-link-l1 {
        padding-left: 12px;
    }
}


