/*
 * Hunao CMS legacy styles
 * Automatically extracted before Admin UI V3 migration.
 */

/* Legacy block 1 */
* { box-sizing: border-box; }

        body {
            margin: 0;
            background: #f4f6f8;
            color: #1f2937;
            font-family: Arial, "Microsoft YaHei", sans-serif;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        .app {
            min-height: 100vh;
            display: flex;
        }

        .sidebar {
            position: fixed;
            top: 0;
            left: 0;
            width: 230px;
            min-height: 100vh;
            background: #111827;
            color: #d1d5db;
        }

        .brand {
            padding: 22px 20px;
            border-bottom: 1px solid #263244;
            color: #fff;
            font-size: 21px;
            font-weight: bold;
        }

        .brand small {
            display: block;
            margin-top: 5px;
            color: #9ca3af;
            font-size: 12px;
            font-weight: normal;
        }

        .menu-title {
            padding: 20px 20px 8px;
            color: #6b7280;
            font-size: 12px;
        }

        .menu-link {
            display: block;
            margin: 3px 10px;
            padding: 11px 14px;
            border-radius: 6px;
        }

        .menu-link:hover,
        .menu-link.active {
            color: #fff;
            background: #2563eb;
        }

        .menu-link.disabled {
            color: #6b7280;
            cursor: not-allowed;
        }

        .main {
            width: calc(100% - 230px);
            margin-left: 230px;
        }

        .topbar {
            height: 66px;
            padding: 0 28px;
            background: #fff;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .topbar-title {
            font-size: 18px;
            font-weight: bold;
        }

        .content {
            padding: 28px;
        }

        .page-header {
            margin-bottom: 22px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
        }

        .page-title {
            margin: 0;
            font-size: 25px;
        }

        .page-description {
            margin: 7px 0 0;
            color: #6b7280;
            font-size: 14px;
        }

        .card {
            padding: 22px;
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 9px;
        }

        .stats {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 18px;
        }

        .stat-label {
            color: #6b7280;
            font-size: 14px;
        }

        .stat-value {
            margin-top: 10px;
            font-size: 30px;
            font-weight: bold;
        }

        .btn {
            display: inline-block;
            padding: 9px 15px;
            border: 0;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
        }

        .btn-primary {
            color: #fff;
            background: #2563eb;
        }

        .btn-secondary {
            color: #374151;
            background: #e5e7eb;
        }

        .btn-danger {
            color: #fff;
            background: #dc2626;
        }

        .btn-small {
            padding: 7px 11px;
            font-size: 13px;
        }

        .alert {
            margin-bottom: 20px;
            padding: 13px 16px;
            border-radius: 6px;
        }

        .alert-success {
            color: #166534;
            background: #dcfce7;
        }

        .alert-error {
            color: #991b1b;
            background: #fee2e2;
        }

        .form-group {
            margin-bottom: 18px;
        }

        .form-label {
            display: block;
            margin-bottom: 7px;
            font-weight: bold;
        }

        .form-control {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            background: #fff;
            font-size: 14px;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
        }

        .form-help {
            margin-top: 6px;
            color: #6b7280;
            font-size: 12px;
        }

        .checkbox-row {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .search-form {
            margin-bottom: 18px;
            display: flex;
            gap: 10px;
        }

        .table-wrap {
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th,
        td {
            padding: 13px 12px;
            border-bottom: 1px solid #e5e7eb;
            text-align: left;
            vertical-align: middle;
        }

        th {
            background: #f9fafb;
            color: #4b5563;
            font-size: 13px;
        }

        td {
            font-size: 14px;
        }

        .badge {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 12px;
        }

        .badge-success {
            color: #166534;
            background: #dcfce7;
        }

        .badge-muted {
            color: #4b5563;
            background: #e5e7eb;
        }

        .actions {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }

        .empty {
            padding: 40px 20px;
            color: #6b7280;
            text-align: center;
        }

        @media (max-width: 900px) {
            .sidebar {
                width: 190px;
            }

            .main {
                width: calc(100% - 190px);
                margin-left: 190px;
            }

            .stats,
            .form-grid {
                grid-template-columns: 1fr;
            }
        }
    
        
        /* DASHBOARD_V2_STYLES */

        .dashboard-heading {
            margin-bottom: 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .dashboard-kicker {
            margin-bottom: 8px;
            color: #2563eb;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 1.4px;
        }

        .system-state {
            min-width: 210px;
            padding: 15px 18px;
            display: flex;
            align-items: center;
            gap: 13px;
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
        }

        .system-state-dot {
            width: 12px;
            height: 12px;
            flex: 0 0 auto;
            border-radius: 50%;
            background: #22c55e;
            box-shadow: 0 0 0 5px #dcfce7;
        }

        .system-state strong,
        .system-state small {
            display: block;
        }

        .system-state small {
            margin-top: 3px;
            color: #64748b;
            font-size: 12px;
        }

        .overview-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 18px;
        }

        .metric-card {
            min-height: 155px;
            padding: 22px;
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
        }

        .metric-card-primary {
            color: #fff;
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            border-color: transparent;
        }

        .metric-top {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .metric-icon {
            font-size: 22px;
        }

        .metric-label {
            color: #64748b;
            font-size: 14px;
        }

        .metric-card-primary .metric-label,
        .metric-card-primary .metric-footer,
        .metric-card-primary .metric-footer a {
            color: #dbeafe;
        }

        .metric-value {
            margin-top: 18px;
            font-size: 40px;
            font-weight: 800;
            line-height: 1;
            letter-spacing: -1px;
        }

        .metric-total {
            color: #94a3b8;
            font-size: 18px;
            font-weight: 500;
        }

        .metric-value-time {
            font-size: 28px;
        }

        .metric-footer {
            margin-top: 18px;
            color: #64748b;
            font-size: 12px;
        }

        .metric-footer a {
            color: #2563eb;
            font-weight: 700;
        }

        .dashboard-columns {
            margin-top: 18px;
            display: grid;
            grid-template-columns: 1.25fr 1fr;
            gap: 18px;
        }

        .panel {
            padding: 24px;
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 14px;
            box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
        }

        .panel-header {
            margin-bottom: 22px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
        }

        .panel-header h2 {
            margin: 0;
            font-size: 18px;
        }

        .panel-header p {
            margin: 6px 0 0;
            color: #64748b;
            font-size: 13px;
        }

        .status-badge {
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 12px;
            white-space: nowrap;
        }

        .status-success {
            color: #166534;
            background: #dcfce7;
        }

        .status-warning {
            color: #92400e;
            background: #fef3c7;
        }

        .status-muted {
            color: #475569;
            background: #e2e8f0;
        }

        .movie-summary {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }

        .summary-number {
            font-size: 46px;
            font-weight: 800;
            letter-spacing: -1px;
        }

        .summary-caption {
            margin-top: 5px;
            color: #64748b;
            font-size: 14px;
        }

        .summary-actions {
            margin-top: 22px;
            display: flex;
            flex-wrap: wrap;
            gap: 9px;
        }

        .cover-stats {
            display: grid;
            gap: 11px;
        }

        .cover-stat {
            padding: 14px;
            display: flex;
            align-items: center;
            gap: 13px;
            background: #f8fafc;
            border: 1px solid #eef2f7;
            border-radius: 10px;
        }

        .cover-dot {
            width: 10px;
            height: 10px;
            flex: 0 0 auto;
            border-radius: 50%;
        }

        .cover-dot-success { background: #22c55e; }
        .cover-dot-warning { background: #f59e0b; }
        .cover-dot-danger { background: #ef4444; }

        .cover-stat strong,
        .cover-stat small {
            display: block;
        }

        .cover-stat strong {
            font-size: 18px;
        }

        .cover-stat small {
            margin-top: 3px;
            color: #64748b;
            font-size: 12px;
        }

        .sync-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 11px;
        }

        .sync-item {
            padding: 14px;
            background: #f8fafc;
            border: 1px solid #eef2f7;
            border-radius: 10px;
        }

        .sync-item span,
        .sync-item strong {
            display: block;
        }

        .sync-item span {
            color: #64748b;
            font-size: 12px;
        }

        .sync-item strong {
            margin-top: 6px;
            font-size: 17px;
        }

        .module-panel {
            margin-top: 18px;
        }

        .module-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }

        .module-card {
            padding: 16px;
            display: grid;
            grid-template-columns: auto 1fr auto;
            align-items: center;
            gap: 12px;
            background: #f8fafc;
            border: 1px solid #e5e7eb;
            border-radius: 11px;
        }

        .module-card-active {
            background: #eff6ff;
            border-color: #bfdbfe;
        }

        .module-icon {
            font-size: 24px;
        }

        .module-card strong,
        .module-card span {
            display: block;
        }

        .module-card strong {
            font-size: 14px;
        }

        .module-card span {
            margin-top: 4px;
            color: #64748b;
            font-size: 12px;
        }

        .module-card em {
            color: #94a3b8;
            font-size: 11px;
            font-style: normal;
        }

        .module-card-active em {
            color: #166534;
        }

        @media (max-width: 1100px) {
            .overview-grid,
            .module-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .dashboard-columns {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 720px) {
            .dashboard-heading {
                align-items: stretch;
                flex-direction: column;
            }

            .overview-grid,
            .module-grid,
            .movie-summary,
            .sync-grid {
                grid-template-columns: 1fr;
            }

            .system-state {
                min-width: 0;
            }
        }

/* Legacy block 2 */
.overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 1200px) {
    .overview-grid .metric-card:nth-child(4),
    .overview-grid .metric-card:nth-child(5) {
        min-height: 165px;
    }
}

/* Legacy block 3 */
.hunao-pagination {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 20px;
    }

    .hunao-page {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 36px;
        padding: 0 11px;
        border: 1px solid #d9e0ea;
        border-radius: 8px;
        background: #ffffff;
        color: #344054;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        text-decoration: none;
        box-sizing: border-box;
        transition:
            background-color .15s ease,
            border-color .15s ease,
            color .15s ease,
            box-shadow .15s ease;
    }

    .hunao-page:hover {
        border-color: #3b82f6;
        background: #eff6ff;
        color: #2563eb;
        text-decoration: none;
    }

    .hunao-page.active {
        border-color: #2563eb;
        background: #2563eb;
        color: #ffffff;
        box-shadow: 0 3px 8px rgba(37, 99, 235, .2);
        cursor: default;
    }

    .hunao-page-text {
        min-width: auto;
        padding-left: 14px;
        padding-right: 14px;
        white-space: nowrap;
    }

    .hunao-page.disabled {
        border-color: #e5e7eb;
        background: #f8fafc;
        color: #a0a8b5;
        cursor: not-allowed;
        box-shadow: none;
    }

    /*
     * 防止 Laravel 默认分页 SVG 或全局 SVG 样式
     * 再次产生超大箭头。
     */
    .hunao-pagination svg {
        width: 16px !important;
        height: 16px !important;
        max-width: 16px !important;
        max-height: 16px !important;
    }

    @media (max-width: 720px) {
        .hunao-pagination {
            gap: 5px;
        }

        .hunao-page {
            min-width: 34px;
            height: 34px;
            padding: 0 9px;
            font-size: 13px;
        }

        .hunao-page-text {
            padding-left: 11px;
            padding-right: 11px;
        }
    }

/* Legacy block 4 */
.sidebar svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    display: block !important;
}
.sidebar .sidebar-brand-mark {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
}

