:root {
    --bg-main: #060913;
    --bg-secondary: #0d1222;
    --bg-card-glass: rgba(14, 22, 45, 0.65);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-glass-bright: rgba(0, 240, 255, 0.25);

    --color-cyan: #00f0ff;
    --color-cyan-glow: rgba(0, 240, 255, 0.15);
    --color-cobalt: #3b82f6;
    --color-cobalt-glow: rgba(59, 130, 246, 0.2);
    --color-green: #10b981;
    --color-amber: #f59e0b;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
}

body.auth-required {
    overflow: hidden;
    height: 100vh;
}


h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
}

.highlight {
    color: var(--color-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Background Effects from itsysinc.com */
.cyber-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(0, 240, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 240, 255, 0.015) 1px, transparent 1px);
    z-index: -10;
}

.glow-bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -9;
    opacity: 0.25;
    animation: orb-pulse 10s ease-in-out infinite alternate;
}

.orb-1 {
    top: -10%; right: 10%; width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--color-cyan) 0%, var(--color-cobalt) 100%);
}
.orb-2 {
    bottom: -15%; left: 5%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--color-cobalt) 0%, rgba(13, 20, 38, 0.9) 100%);
    animation-delay: 3s;
}

@keyframes orb-pulse {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.15); opacity: 0.32; }
}

/* Header */
.main-header {
    background: rgba(6, 9, 19, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 2rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-left: 10px;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-cobalt) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 10px rgba(0, 240, 255, 0.15));
}

.brand-logo:hover .logo-img {
    transform: scale(1.02);
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 15px rgba(0, 240, 255, 0.35));
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-dot {
    width: 8px; height: 8px;
    background-color: var(--color-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-green);
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 2rem;
}

.glass-panel {
    background: var(--bg-card-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    min-height: 650px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.panel-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.5rem;
}

/* Workflow Cards */
.workflow-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
    gap: 1rem;
}

.workflow-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--color-cyan-glow);
}

.workflow-info {
    flex: 1;
}

.workflow-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.workflow-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Buttons */
.workflow-card .btn {
    width: 150px;
    flex-shrink: 0;
}

.btn {
    padding: 0.6rem 1.2rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-cobalt) 100%);
    color: #030712;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Tabs */
.tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 0.25rem;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    width: 100%;
}
.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.72rem; /* Reduced to ensure it fits in a single row */
    font-family: var(--font-body);
    font-weight: 500;
    padding: 0.45rem 0.3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    width: 100%;
}
.tab-btn.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Reports */
.reports-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Reports Table Design */
.reports-table-container {
    max-height: 480px;
    overflow-y: auto;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    background: rgba(4, 6, 14, 0.25);
    backdrop-filter: blur(10px);
    width: 100%;
}

/* Scrollbar styling for reports-table-container */
.reports-table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.reports-table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}
.reports-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
.reports-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
    table-layout: fixed;
}

.reports-table th {
    position: sticky;
    top: 0;
    background: rgba(13, 18, 34, 0.95);
    backdrop-filter: blur(12px);
    z-index: 10;
    padding: 0.85rem 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-glass);
    cursor: pointer;
    user-select: none;
    transition: var(--transition-smooth);
    white-space: nowrap;
    text-align: center;
}

.reports-table td.col-center {
    text-align: center;
}

.reports-table th:hover {
    color: var(--theme-color, var(--color-cyan));
    background: rgba(255, 255, 255, 0.03);
}

.reports-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-glass);
    vertical-align: middle;
    transition: var(--transition-smooth);
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reports-table tr {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.reports-table tr:last-child td {
    border-bottom: none;
}

.reports-table tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.reports-table tr:hover td:first-child {
    box-shadow: inset 3px 0 0 var(--theme-color, var(--color-cyan));
}

.reports-table tr:hover .report-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--theme-color, var(--color-cyan));
}

.reports-table tr:hover .report-row-title {
    color: #ffffff;
}

.report-number {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--theme-color, var(--color-cyan));
    background: rgba(var(--theme-color-rgb, 0, 240, 255), 0.1);
    border: 1px solid rgba(var(--theme-color-rgb, 0, 240, 255), 0.25);
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(var(--theme-color-rgb, 0, 240, 255), 0.1);
}

.reports-table td:first-child,
.reports-table th:first-child {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.report-item-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.report-row-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-smooth);
}

.report-row-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.report-row-due {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.78rem;
}

.report-id-badge {
    font-family: monospace;
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    letter-spacing: 0.2px;
    display: inline-block;
}

.report-arrow {
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: var(--transition-smooth);
}

/* Sort Indicator styling */
.sort-indicator {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.sort-indicator.active {
    color: var(--theme-color, var(--color-cyan));
    opacity: 1;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(var(--theme-color-rgb, 0, 240, 255), 0.4);
}

/* Reports Search Bar Styles */
.reports-search-container {
    margin-bottom: 1rem;
    position: relative;
    width: 100%;
}

.reports-search-input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    background: rgba(4, 6, 14, 0.45);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.reports-search-input:focus {
    border-color: var(--theme-color, var(--color-cyan));
    box-shadow: 0 0 10px rgba(var(--theme-color-rgb, 0, 240, 255), 0.15);
    outline: none;
    background: rgba(4, 6, 14, 0.65);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.reports-search-input:focus ~ .search-icon {
    color: var(--theme-color, var(--color-cyan));
    filter: drop-shadow(0 0 4px var(--theme-color, var(--color-cyan)));
}


/* Recommendation Badges */
.rec-badge {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    line-height: 1;
}

.rec-badge.bid {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.1);
}

.rec-badge.conditional {
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.25);
    color: #facc15;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.1);
}

.rec-badge.no-bid {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 6, 14, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal.open {
    display: flex;
}
.modal-content {
    width: 80%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}
.modal-content.glass-panel {
    min-height: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}
.close-btn:hover {
    color: var(--color-cyan);
    transform: rotate(90deg);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.markdown-body {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5e1; /* Premium off-white readability */
}

/* Gray background for report-modal modal-content to show different colors clearly */
#report-modal .modal-content {
    background: #18202d !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    padding: 0 !important;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#report-modal .modal-header {
    padding: 2.5rem 2.5rem 1.25rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    flex-shrink: 0;
}

#report-modal .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
    padding-right: 6rem;
}

#report-modal .modal-keyword-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-secondary);
}

#report-modal .modal-metadata-chips-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

#report-modal .modal-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#report-modal .modal-chip.due-chip {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #38bdf8;
}

#report-modal .modal-chip.rec-chip.mode-bid {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

#report-modal .modal-chip.rec-chip.mode-nobid {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

#report-modal .modal-chip.rec-chip.mode-cond {
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.25);
    color: #facc15;
}

#report-modal .modal-chip.agency-chip {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
}

#report-modal .modal-chip.naics-chip {
    background: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: #f472b6;
}

#report-modal .modal-chip.location-chip {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}

#report-modal .modal-chip.set-aside-chip {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
}

#report-modal .markdown-body {
    padding: 1.5rem 2.5rem 2.5rem 2.5rem;
    overflow-y: auto;
    flex: 1;
    margin-top: 0;
}

#report-modal hr {
    display: none;
}

/* Card-like wrappers for briefing sections */
.brief-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}
.brief-section:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(4px);
}

.section-overview {
    --accent-color: #3b82f6; /* Blue */
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-left-width: 4px;
}
.section-overview h2, .section-overview h3 {
    color: #93c5fd !important;
}

.section-agency {
    --accent-color: #a855f7; /* Purple */
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-left-width: 4px;
}
.section-agency h2, .section-agency h3 {
    color: #c084fc !important;
}

.section-requirements {
    --accent-color: #f59e0b; /* Amber */
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-left-width: 4px;
}
.section-requirements h2, .section-requirements h3 {
    color: #fcd34d !important;
}

.section-incumbent {
    --accent-color: #14b8a6; /* Teal */
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-left-width: 4px;
}
.section-incumbent h2, .section-incumbent h3 {
    color: #5eead4 !important;
}

.section-dates {
    --accent-color: #0ea5e9; /* Sky Blue */
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-left-width: 4px;
}
.section-dates h2, .section-dates h3 {
    color: #7dd3fc !important;
}

.section-rationale.mode-bid {
    --accent-color: #10b981; /* Green */
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-left-width: 4px;
}
.section-rationale.mode-bid h2, .section-rationale.mode-bid h3 {
    color: #34d399 !important;
}

.section-rationale.mode-nobid {
    --accent-color: #ef4444; /* Red */
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left-width: 4px;
}
.section-rationale.mode-nobid h2, .section-rationale.mode-nobid h3 {
    color: #f87171 !important;
}

.section-rationale.mode-cond {
    --accent-color: #facc15; /* Subtle Yellow */
    background: rgba(250, 204, 21, 0.02);
    border: 1px solid rgba(250, 204, 21, 0.15);
    border-left-width: 4px;
}
.section-rationale.mode-cond h2, .section-rationale.mode-cond h3 {
    color: #fde047 !important;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
    color: var(--text-primary);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
}
.markdown-body h1 {
    font-size: 1.75rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.5rem;
}
.markdown-body h2 {
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.4rem;
}
.markdown-body p, .markdown-body ul, .markdown-body ol {
    margin-bottom: 1.2rem;
}
.markdown-body li {
    margin-left: 1.5rem;
    margin-bottom: 0.35rem;
}
.markdown-body a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: var(--transition-smooth);
    border-bottom: 1px dashed rgba(0, 240, 255, 0.4);
}
.markdown-body a:hover {
    color: #fff;
    border-bottom-style: solid;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}
.markdown-body code {
    background: rgba(0, 240, 255, 0.08);
    color: var(--color-cyan);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
}
.markdown-body pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin-bottom: 1.2rem;
}
.markdown-body pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #e2e8f0;
}

/* Workflow Specific Themes */
.theme-a {
    --theme-color: #f59e0b;
    --theme-color-rgb: 245, 158, 11;
    --theme-glow: rgba(245, 158, 11, 0.4);
}
.theme-b {
    --theme-color: #10b981;
    --theme-color-rgb: 16, 185, 129;
    --theme-glow: rgba(16, 185, 129, 0.4);
}
.theme-c {
    --theme-color: #00f0ff;
    --theme-color-rgb: 0, 240, 255;
    --theme-glow: rgba(0, 240, 255, 0.4);
}
.theme-d {
    --theme-color: #a855f7;
    --theme-color-rgb: 168, 85, 247;
    --theme-glow: rgba(168, 85, 247, 0.4);
}
.theme-e {
    --theme-color: #3b82f6;
    --theme-color-rgb: 59, 130, 246;
    --theme-glow: rgba(59, 130, 246, 0.4);
}
.theme-f {
    --theme-color: #ec4899;
    --theme-color-rgb: 236, 72, 153;
    --theme-glow: rgba(236, 72, 153, 0.4);
}

/* Button & Tab styling */
.btn.btn-theme-a { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.4); color: #f59e0b; }
.btn.btn-theme-a:hover { background: rgba(245, 158, 11, 0.2); border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 0 12px rgba(245, 158, 11, 0.35); transform: translateY(-1px); }

.btn.btn-theme-b { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.4); color: #10b981; }
.btn.btn-theme-b:hover { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 0 12px rgba(16, 185, 129, 0.35); transform: translateY(-1px); }

.btn.btn-theme-c { background: rgba(0, 240, 255, 0.08); border: 1px solid rgba(0, 240, 255, 0.35); color: #00f0ff; }
.btn.btn-theme-c:hover { background: rgba(0, 240, 255, 0.18); border-color: rgba(0, 240, 255, 0.55); box-shadow: 0 0 12px rgba(0, 240, 255, 0.35); transform: translateY(-1px); }

.btn.btn-theme-d { background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.4); color: #a855f7; }
.btn.btn-theme-d:hover { background: rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.6); box-shadow: 0 0 12px rgba(168, 85, 247, 0.35); transform: translateY(-1px); }

.btn.btn-theme-e { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.4); color: #3b82f6; }
.btn.btn-theme-e:hover { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.6); box-shadow: 0 0 12px rgba(59, 130, 246, 0.35); transform: translateY(-1px); }

.btn.btn-theme-f { background: rgba(236, 72, 153, 0.1); border: 1px solid rgba(236, 72, 153, 0.4); color: #ec4899; }
.btn.btn-theme-f:hover { background: rgba(236, 72, 153, 0.2); border-color: rgba(236, 72, 153, 0.6); box-shadow: 0 0 12px rgba(236, 72, 153, 0.35); transform: translateY(-1px); }

.tab-btn {
    transition: var(--transition-smooth);
}
.tab-btn.theme-a:hover { color: #f59e0b; background: rgba(245, 158, 11, 0.04); }
.tab-btn.active.theme-a { color: #f59e0b; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.25); box-shadow: 0 0 8px rgba(245, 158, 11, 0.15); }

.tab-btn.theme-b:hover { color: #10b981; background: rgba(16, 185, 129, 0.04); }
.tab-btn.active.theme-b { color: #10b981; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.25); box-shadow: 0 0 8px rgba(16, 185, 129, 0.15); }

.tab-btn.theme-c:hover { color: #00f0ff; background: rgba(0, 240, 255, 0.04); }
.tab-btn.active.theme-c { color: #00f0ff; background: rgba(0, 240, 255, 0.12); border-color: rgba(0, 240, 255, 0.25); box-shadow: 0 0 8px rgba(0, 240, 255, 0.15); }

.tab-btn.theme-d:hover { color: #a855f7; background: rgba(168, 85, 247, 0.04); }
.tab-btn.active.theme-d { color: #a855f7; background: rgba(168, 85, 247, 0.12); border-color: rgba(168, 85, 247, 0.25); box-shadow: 0 0 8px rgba(168, 85, 247, 0.15); }

.tab-btn.theme-e:hover { color: #3b82f6; background: rgba(59, 130, 246, 0.04); }
.tab-btn.active.theme-e { color: #3b82f6; background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.25); box-shadow: 0 0 8px rgba(59, 130, 246, 0.15); }

.tab-btn.theme-f:hover { color: #ec4899; background: rgba(236, 72, 153, 0.04); }
.tab-btn.active.theme-f { color: #ec4899; background: rgba(236, 72, 153, 0.12); border-color: rgba(236, 72, 153, 0.25); box-shadow: 0 0 8px rgba(236, 72, 153, 0.15); }

/* SVG Icon styles */
.wf-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}
.wf-icon.color-theme-a { color: #f59e0b; filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.3)); }
.wf-icon.color-theme-b { color: #10b981; filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.3)); }
.wf-icon.color-theme-c { color: #00f0ff; filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.3)); }
.wf-icon.color-theme-d { color: #a855f7; filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.3)); }
.wf-icon.color-theme-e { color: #3b82f6; filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.3)); }
.wf-icon.color-theme-f { color: #ec4899; filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.3)); }

/* Clickable workflow card header style */
.workflow-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-smooth);
}
.workflow-card-header:hover {
    opacity: 0.85;
    transform: translateX(4px);
}

/* Tab button SVG icon override */
.tab-btn .wf-icon {
    color: inherit;
    filter: none;
}

/* Agent Type Selection Dropdown */
#agent-type-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}
#agent-type-select:hover {
    border-color: rgba(0, 240, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

#agent-type-select option {
    background-color: #0d1222;
    color: #f8fafc;
}

/* Custom Styled Dropdown */
.custom-dropdown {
    position: relative;
    display: inline-block;
    user-select: none;
}

.dropdown-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    min-width: 155px;
    justify-content: space-between;
}

.dropdown-trigger:hover, .custom-dropdown.open .dropdown-trigger {
    border-color: rgba(0, 240, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.08);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #0d1222; /* Sleek dark theme matching background */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.35rem;
    list-style: none;
    min-width: 100%;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(12px);
    display: none;
}

.custom-dropdown.open .dropdown-menu {
    display: block;
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.dropdown-item.active {
    background: var(--color-cobalt);
    color: var(--text-primary);
}

/* Scrollbar styling for log terminal box */
#log-console-box::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
#log-console-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}
#log-console-box::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.25);
    border-radius: 4px;
}
#log-console-box::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.5);
}

/* Spin animation for refresh icon */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spin-icon {
    animation: spin 0.8s linear infinite;
}

/* Scheduler Styles */
.scheduler-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    transition: var(--transition-smooth);
    gap: 0.75rem;
}

.scheduler-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.15);
}

.scheduler-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.scheduler-item-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.scheduler-item-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.scheduler-item-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
    font-weight: 500;
    width: fit-content;
}

.scheduler-item-status.active {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--color-green);
}

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

.scheduler-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Toggle buttons for scheduler */
.btn-scheduler-toggle {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-scheduler-toggle:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.25);
}

.btn-scheduler-toggle.active-btn {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.btn-scheduler-toggle.active-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
}

/* Scheduler Interval Input styling */
.scheduler-interval-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    padding: 0.25rem 0.35rem;
    width: 70px;
    outline: none;
    text-align: right;
    -moz-appearance: textfield; /* Firefox */
}

/* Hide number input spinners for cleaner styling */
.scheduler-interval-input::-webkit-outer-spin-button,
.scheduler-interval-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* New structured Layout and styling for Scheduler */
.workflow-card.has-scheduler {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.workflow-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.workflow-scheduler-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    width: 100%;
    gap: 1rem;
}

.scheduler-status-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.scheduler-status-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.scheduler-emoji {
    font-size: 0.95rem;
    filter: drop-shadow(0 0 3px var(--color-cyan));
    line-height: 1;
}

.scheduler-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

.scheduler-meta-row {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding-left: 1.35rem; /* Indent under the text */
    white-space: nowrap;
}

.scheduler-controls-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scheduler-interval-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.scheduler-input-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scheduler-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    padding-right: 0.35rem;
    transition: var(--transition-smooth);
}

.scheduler-input-wrapper:focus-within {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.25);
}

.scheduler-input-unit {
    font-size: 0.7rem;
    color: var(--text-muted);
    user-select: none;
}

/* Footer Styles */
.main-footer {
    background: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-glass);
    padding: 1.5rem 0;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.main-footer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.legal-disclaimers {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

.legal-disclaimers span:first-child {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

#footer-metadata {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.8;
    font-family: monospace;
    font-style: italic;
    letter-spacing: 0.2px;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .legal-disclaimers {
        align-items: center;
        text-align: center;
    }
}

/* Header actions and Webmin control styles */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.webmin-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(14, 22, 45, 0.45);
    border: 1px solid var(--border-glass);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.webmin-widget:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

.webmin-title {
    color: var(--text-secondary);
    font-weight: 500;
}

.webmin-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-online {
    color: var(--color-green);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}

.status-offline {
    color: var(--text-muted);
    background: rgba(100, 116, 139, 0.1);
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.webmin-btn {
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: #ffffff;
}

.btn-start {
    background: var(--color-cobalt);
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}

.btn-start:hover:not(:disabled) {
    background: #2563eb;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.btn-stop {
    background: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

.btn-stop:hover:not(:disabled) {
    background: #dc2626;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.webmin-btn:disabled {
    background: var(--text-muted) !important;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none !important;
    border-color: transparent !important;
}

.webmin-link {
    color: var(--color-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.1);
    transition: var(--transition-smooth);
}

.webmin-link:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Level 2 Authentication Login Overlay Styling */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 14, 0.88);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-overlay.open {
    opacity: 1;
}

.login-panel {
    min-height: auto; /* Override default glass-panel min-height */
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 16px;
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 0 30px rgba(0, 240, 255, 0.05);
    text-align: center;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 10px rgba(0, 240, 255, 0.15));
}

.login-panel:hover .login-logo-img {
    transform: scale(1.04);
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 15px rgba(0, 240, 255, 0.35));
}

.login-overlay.open .login-panel {
    transform: scale(1);
}

.login-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    letter-spacing: 0.3px;
}

.login-panel form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
}

.login-panel .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-panel label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-panel input {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.45);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.login-panel input:focus {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
    outline: none;
}

.login-panel .error-message {
    color: #f87171;
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 6px;
    line-height: 1.4;
}

.btn-login {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.75rem;
    cursor: pointer;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.logout-btn .wf-icon {
    color: inherit;
}

.backup-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--theme-color, var(--color-cyan));
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.backup-btn:hover {
    background: rgba(0, 240, 255, 0.25);
    border-color: rgba(0, 240, 255, 0.55);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    transform: translateY(-1px);
}

.backup-btn .wf-icon {
    color: inherit;
}

.backup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* SAM.gov Parameters Card Input Styles */
.sam-gov-parameters-container {
    display: flex;
    gap: 1.5rem;
    padding: 0.55rem 0.5rem 0.25rem 0.5rem;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    margin-top: 0.25rem;
    width: 100%;
}

.sam-param-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sam-param-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sam-param-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    padding-right: 0.35rem;
    transition: var(--transition-smooth);
}

.sam-param-input-wrapper:focus-within {
    border-color: rgba(168, 85, 247, 0.45); /* Purple matching workflow M_SAM theme */
    box-shadow: 0 0 5px rgba(168, 85, 247, 0.25);
}

.sam-param-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    padding: 0.25rem 0.35rem;
    width: 50px;
    outline: none;
    text-align: right;
    -moz-appearance: textfield; /* Firefox */
}

/* Hide number input spinners for cleaner styling */
.sam-param-input::-webkit-outer-spin-button,
.sam-param-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sam-param-unit {
    font-size: 0.7rem;
    color: var(--text-muted);
    user-select: none;
}

/* Expansion and Fullscreen Layout Styles */
.toggle-expand-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 4px;
}

.toggle-expand-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.dashboard-grid.expanded {
    grid-template-columns: minmax(0, 1fr) !important;
}

.dashboard-grid.expanded .workflows-panel {
    display: none !important;
}

.dashboard-grid.expanded .reports-table-container {
    max-height: 750px !important;
}

.expand-modal-btn {
    position: absolute;
    top: 1.5rem;
    right: 3.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 4px;
}

.expand-modal-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

#report-modal.modal-expanded .modal-content {
    width: 96% !important;
    max-width: 1800px !important;
    height: 94vh !important;
    max-height: 94vh !important;
    top: 3vh !important;
    margin: 0 auto !important;
}

/* Expanded columns default hiding */
.col-expanded-only {
    display: none !important;
}

/* Expanded state column widths and display rules */
.dashboard-grid.expanded .col-expanded-only {
    display: table-cell !important;
}

/* Base column layouts */
.reports-table th[data-sort="seq"] { width: 55px; }
.reports-table th[data-sort="title"] { /* auto */ }
.reports-table th[data-sort="due"] { width: 85px; }
.reports-table th[data-sort="rec"] { width: 125px; }
.reports-table th[data-sort="id"] { width: 135px; }

/* Expanded layout overrides to balance column widths */
.dashboard-grid.expanded .reports-table th[data-sort="seq"] {
    width: 50px !important;
}
.dashboard-grid.expanded .reports-table th[data-sort="title"] {
    width: 25% !important;
}
.dashboard-grid.expanded .reports-table th[data-sort="due"] {
    width: 90px !important;
}
.dashboard-grid.expanded .reports-table th[data-sort="rec"] {
    width: 125px !important;
}
.dashboard-grid.expanded .reports-table th[data-sort="id"] {
    width: 135px !important;
}
.dashboard-grid.expanded .reports-table th[data-sort="keyword"] {
    width: 15% !important;
}
.dashboard-grid.expanded .reports-table th[data-sort="location"] {
    width: 15% !important;
}
.dashboard-grid.expanded .reports-table th[data-sort="setaside"] {
    width: 20% !important;
}

.report-kw-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(var(--theme-color-rgb, 0, 240, 255), 0.05);
    border: 1px solid rgba(var(--theme-color-rgb, 0, 240, 255), 0.15);
    color: var(--text-primary);
}

.report-sa-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}
