/* ==============================================================================
   MUTUAL FUNDS PORTAL STYLES
   ============================================================================== */

/* Header & Intro */
.funds-title {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color, #0f172a);
}

.funds-subtitle {
    color: #6b7280;
    font-size: 16px;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Search Bar */
.funds-search-container {
    margin-top: 24px;
}

.funds-search-input {
    width: 100%;
    max-width: 650px;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease;
}

.funds-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Category Filter Buttons */
.funds-category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    align-items: center;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #94a3b8;
}

.filter-btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* FOF Separator Divider */
.category-divider {
    width: 1px;
    height: 24px;
    background-color: #cbd5e1;
    margin: 0 4px;
}

/* Table Enhancements */
.funds-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.funds-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.funds-table td {
    padding: 12px 14px;
    text-align: left;
}

.stock360-btn {
    display: inline-block;
    padding: 6px 16px;
    background-color: #2563eb;
    color: #ffffff !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.15s ease;
}

.stock360-btn:hover {
    background-color: #1d4ed8;
}

/* ==============================================================================
   FUND DETAIL PAGE GRID & COMPONENT STYLES
   ============================================================================== */

/* Fund Main Header Card */
.mf-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
}

.mf-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color, #0f172a);
    margin: 0;
}

.mf-category {
    margin-top: 6px;
    color: var(--muted-text, #64748b);
    font-size: 15px;
    font-weight: 500;
}

.mf-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.mf-box {
    text-align: center;
}

.mf-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted-text, #64748b);
}

.mf-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color, #2563eb);
    margin-top: 6px;
}

.mf-change {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
}

.mf-pos { color: var(--success-color, #16a34a); }
.mf-neg { color: var(--danger-color, #dc2626); }

/* Fund at a Glance Grid */
.fund-glance-subtitle {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--muted-text, #64748b);
}

.fund-glance-grid {
    display: grid;
    grid-template-columns: 180px repeat(4, 1fr);
    gap: 12px 16px;
    align-items: center;
}

.glance-cell {
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.glance-cell.row-label {
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-color, #0f172a);
}

.glance-title {
    font-size: 12px;
    color: var(--muted-text, #64748b);
    font-weight: 600;
    margin-bottom: 4px;
}

.glance-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color, #0f172a);
}

/* NAV Chart Period Buttons */
.chart-period-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.chart-period {
    background: #ffffff;
    border: 1px solid var(--border-color, #e2e8f0);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: var(--muted-text, #64748b);
    transition: all 0.15s ease;
}

.chart-period:hover,
.chart-period.active {
    background: var(--primary-color, #2563eb);
    color: #ffffff;
    border-color: var(--primary-color, #2563eb);
}

.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
}

/* Two Column Section Layout */
.fund-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Asset Allocation Progress Bars */
.allocation-block {
    margin-bottom: 14px;
}

.allocation-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color, #0f172a);
    margin-bottom: 4px;
}

.allocation-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.allocation-bar-bg {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.allocation-bar-fill {
    height: 100%;
    background: var(--primary-color, #2563eb);
    border-radius: 999px;
}

.allocation-value {
    width: 50px;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-color, #0f172a);
}

/* Responsive Grid Fallbacks */
@media (max-width: 900px) {
    .fund-glance-grid {
        grid-template-columns: 1fr 1fr;
    }
    .fund-two-column {
        grid-template-columns: 1fr;
    }
}


