:root {
    /* Slate Scale for Dark Mode */
    --bg-color: #0f172a;
    /* slate-900 */
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --card-bg: rgba(30, 41, 59, 0.7);
    /* slate-800 with opacity */
    --card-border: rgba(255, 255, 255, 0.08);
    /* Subtle glass border */

    --text-primary: #f8fafc;
    /* slate-50 */
    --text-secondary: #94a3b8;
    /* slate-400 */
    --text-muted: #64748b;
    /* slate-500 */

    /* Vibrant Accents */
    --primary-color: #6366f1;
    /* indigo-500 */
    --primary-hover: #4f46e5;
    /* indigo-600 */
    --accent-color: #38bdf8;
    /* sky-400 */

    --success: #10b981;
    /* emerald-500 */
    --warning: #f59e0b;
    /* amber-500 */
    --error: #ef4444;
    /* red-500 */

    --border-color: #334155;
    /* slate-700 */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --glass-blur: blur(12px);
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header with Glassmorphism */
header {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: var(--glass-blur);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.025em;
}


.site-logo {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4));
}

/* Main Layout */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    gap: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Controls */
.controls {
    display: flex;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    padding: 16px;
    border-radius: 12px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.controls button {
    height: 40px;
    padding: 0 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.controls button[title="配置"] {
    padding: 0;
    width: 40px;
    justify-content: center;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

input[type="text"],
input[type="password"],
select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

select option {
    background-color: #1e293b;
    color: var(--text-primary);
}

input:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

button:active {
    transform: translateY(0);
}

button.secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    box-shadow: none;
}

button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
    color: var(--text-primary);
    box-shadow: none;
}

/* Data Table */
/* Modern Data Table */
/* Modern Data Table */
.table-container {
    background: var(--card-bg);
    border-radius: 12px;
    display: block;
    overflow-x: hidden;
    white-space: nowrap;
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    padding: 0;
    flex: 1;
    min-height: 0;
    position: relative;
    box-shadow: var(--shadow-md);
}

/* Custom Scrollbar */
.table-container::-webkit-scrollbar,
.node-grid::-webkit-scrollbar,
.logs-panel::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-container::-webkit-scrollbar-track,
.node-grid::-webkit-scrollbar-track,
.logs-panel::-webkit-scrollbar-track {
    background: transparent;
}

.table-container::-webkit-scrollbar-thumb,
.node-grid::-webkit-scrollbar-thumb,
.logs-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb:hover,
.node-grid::-webkit-scrollbar-thumb:hover,
.logs-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.table-inner-wrapper {
    display: inline-block;
    min-width: 100%;
    vertical-align: top;
}

.table-header,
.table-row {
    display: grid;
    /* Fixed widths layout (User column flexible) */
    grid-template-columns: 60px minmax(200px, 1fr) 120px 160px 160px 175px 130px 180px 240px;
    width: 100%;
    align-items: center;
    padding-right: 24px;
    box-sizing: border-box;
}

.table-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-cell {
    padding: 16px 20px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.table-row {
    display: grid;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background 0.15s;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row>div {
    padding: 14px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, 0.02);
}

.table-row>div:first-child {
    font-family: 'Fira Code', monospace;
    color: var(--text-muted);
}

.table-row>div.user-cell {
    color: var(--text-primary);
    font-weight: 500;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Component specifics */
/* Component specifics */
.status-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    /* Pill shape */
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-Success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-Running {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.status-Fail {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.status-Pending {
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.status-Skipped {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.copy-btn:hover {
    background: var(--bg-color);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Logs */
/* Logs Panel */
.logs-panel {
    background: #0f172a;
    /* Darker than card for contrast */
    height: 100%;
    border-radius: 12px;
    padding: 16px;
    overflow-y: auto;
    font-family: 'Fira Code', monospace;
    /* Monospace for logs */
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-time {
    color: var(--text-secondary);
    opacity: 0.6;
    font-size: 0.8rem;
}

.log-Info {
    color: var(--text-primary);
}

.log-Success {
    color: var(--success);
}

.log-Warning {
    color: var(--warning);
}

.log-Error {
    color: var(--error);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    background-color: #1e293b;
    padding: 0;
    border-radius: 16px;
    width: 440px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-origin: center;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.close-modal {
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .input-group {
    margin-bottom: 1rem;
}

.modal-body label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Softer border */
    display: flex;
    justify-content: flex-end;
    /* Align right */
    gap: 12px;
    /* Spacing between buttons */
}

/* Table Resizer */
.resizer {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: rgba(255, 255, 255, 0);
    cursor: col-resize;
    user-select: none;
    touch-action: none;
}

.resizer:hover,
.resizing {
    background: var(--primary-color);
}

th {
    position: relative;
    /* transition: width 0s; Remove transition for resizing */
}

/* Action Buttons in Table */
.action-btn-group {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-renewal {
    background: rgba(96, 165, 250, 0.1);
    color: var(--accent-color);
    border-color: rgba(96, 165, 250, 0.2);
}

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

.btn-stop {
    background: #ef4444;
    /* Red */
    color: white;
    border: none;
    padding: 0 16px;
    border-radius: 6px;
    height: 32px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.btn-stop:hover {
    background: #dc2626;
}

.btn-refresh {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.btn-refresh:hover {
    background: var(--success);
    color: #fff;
}

.btn-edit {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning);
    border-color: rgba(251, 191, 36, 0.2);
}

.btn-edit:hover {
    background: var(--warning);
    color: #fff;
}

.btn-delete {
    background: rgba(248, 113, 113, 0.1);
    color: var(--error);
    border-color: rgba(248, 113, 113, 0.2);
}

.btn-delete:hover {
    background: var(--error);
    color: #fff;
}

/* Progress Bar Styles */
.usage-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    justify-content: center;
    padding-right: 8px;
}

.usage-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #334155;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-fill.warning {
    background: #f59e0b;
}

.progress-fill.danger {
    background: #ef4444;
}

/* Custom Select Styles */
.custom-select {
    position: relative;
    font-size: 0.9rem;
}

.custom-select select {
    display: none;
    /* Hide default select */
}

.select-selected {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s;
}

.select-selected:hover {
    border-color: var(--text-secondary);
}

.select-selected:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #94a3b8;
    transition: transform 0.2s;
}

.select-selected.select-arrow-active:after {
    transform: rotate(180deg);
}

.select-items {
    position: absolute;
    background-color: #1e293b;
    border: 1px solid var(--border-color);
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 999;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select-items div {
    padding: 10px 15px;
    cursor: pointer;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

.select-items div:last-child {
    border-bottom: none;
}

.select-items div:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.same-as-selected {
    background-color: rgba(59, 130, 246, 0.15);
    /* Distinct blue tint */
    color: var(--primary-color) !important;
    font-weight: 500;
}

.same-as-selected:hover {
    background-color: rgba(59, 130, 246, 0.25);
    /* Darker blue trigger on hover */
}

.select-hide {
    display: none;
}

/* Bottom Section: Logs and Nodes side by side */
.bottom-section {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    height: 250px;
    flex-shrink: 0;
}

.bottom-section .logs-panel {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
}

.bottom-section .node-container {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
}

/* Node Container Styles */
.node-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.node-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.node-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.node-header h3 i {
    color: var(--primary-color);
}

.node-update-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.node-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-icon:active i {
    transform: scale(0.9);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.node-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    align-content: start;
}

.node-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 10px 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(4px);
}

.node-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.node-card.best {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.node-card.best::before {
    content: "FASTEST";
    position: absolute;
    top: -1px;
    right: -1px;
    background: var(--success);
    color: #0f172a;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-bottom-left-radius: 6px;
    border-top-right-radius: 8px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.node-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.node-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.85rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latency-badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.latency-badge.good {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.latency-badge.medium {
    color: #facc15;
    background: rgba(250, 204, 21, 0.1);
}

.latency-badge.bad {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.latency-badge.offline {
    background: rgba(100, 116, 139, 0.1);
}

/* Mobile Optimization (Max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --text-base-size: 14px;
    }

    body {
        font-size: var(--text-base-size);
        -webkit-text-size-adjust: 100%;
        height: auto;
        /* Allow body to grow */
        overflow-y: auto;
        /* Enable vertical scroll on body */
        background-attachment: scroll;
        /* Fix background on mobile */
    }

    /* Compact Header */
    header {
        padding: 0.75rem 1rem;
        position: sticky;
        top: 0;
        z-index: 100;
        /* Keep header accessible */
    }

    header h1 {
        font-size: 1.1rem;
    }

    .site-logo {
        width: 24px;
        height: 24px;
    }

    /* Container Spacing */
    .container {
        padding: 10px;
        gap: 12px;
        height: auto;
        /* Remove fixed height */
        min-height: 0;
        /* Reset min-height */
        display: flex;
        flex-direction: column;
        overflow: visible;
        /* Remove overflow restriction */
    }

    /* Controls: Compact & Wrap */
    .controls {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
        justify-content: space-between;
        flex-shrink: 0;
        /* Prevent shrinking */
    }

    .controls button {
        flex: 1 1 auto;
        padding: 0 12px;
        height: 40px;
        /* Larger touch target */
        font-size: 0.9rem;
        display: flex;
        justify-content: center;
        min-width: 48px;
    }

    .controls .input-group {
        flex: 1 1 100%;
    }

    .controls button i {
        margin-right: 4px;
    }

    .controls button[title="配置"] {
        width: 40px;
        padding: 0;
    }

    /* Table: Explicit Height */
    .table-container {
        flex: none;
        /* Disable flex resizing */
        height: 60vh;
        /* Fixed convenient height */
        min-height: 400px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0;
        border-radius: 8px;
    }

    .table-header,
    .table-row {
        min-width: 800px;
        padding-right: 10px;
    }

    .table-header .header-cell,
    .table-row>div {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    /* Bottom Section Stacked & Fixed Height */
    .bottom-section {
        flex-direction: column;
        height: auto;
        /* Let it grow */
        gap: 16px;
        flex: none;
        /* Disable flex resizing */
    }

    .bottom-section .logs-panel,
    .bottom-section .node-container {
        height: 350px;
        /* Taller comfortable height */
        width: 100%;
        margin: 0;
        flex: none;
    }

    /* Node Grid Compact */
    .node-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Modal Mobile */
    .modal-content {
        width: 90%;
        max-width: none;
        margin: 20px auto;
        border-radius: 12px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-body {
        padding: 1.25rem;
    }

    /* General Spacing Reductions */
    input[type="text"],
    input[type="password"],
    select {
        padding: 8px 10px;
        font-size: 0.9rem;
        height: 40px;
    }

    button {
        height: 40px;
        font-size: 0.9rem;
    }

    .header-status {
        font-size: 0.85rem;
    }
}