/* 
 * Logi Fintech AMFI New Fund Offers (NFO) - Design System & Stylesheet
 * Custom Theme for Logi Fintech ("Your Trusted Investment Partner")
 * Palette: Navy Blue (#0A4D68 / #003859), Sky Blue / Cyan (#00AEEF / #0096C7), Soft Ice Tint (#F4F9FC / #D0E8F5)
 * Font: Outfit, sans-serif
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

.logi-nfo-wrapper {
    font-family: 'Outfit', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #082032;
    background-color: transparent;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 10px 0;
    box-sizing: border-box;
}

.logi-nfo-wrapper *, 
.logi-nfo-wrapper *::before, 
.logi-nfo-wrapper *::after {
    box-sizing: border-box;
}

/* Header & Controls Bar */
.logi-nfo-header {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 24px;
    border: 1px solid #D0E8F5;
    box-shadow: 0 10px 30px rgba(0, 174, 239, 0.06);
}

.logi-nfo-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.logi-nfo-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #0A4D68;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logi-nfo-title span.brand-cyan {
    color: #00AEEF;
}

.logi-nfo-badge-count {
    background: #E0F2FE;
    color: #0088CC;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid #BAE6FD;
}

.logi-nfo-subtitle {
    color: #475569;
    font-size: 14px;
    margin: 0;
}

/* View Toggle Bar (Cards View / Table View) */
.logi-view-toggle-bar {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.logi-view-btn {
    background-image: none !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #C4E1F2;
    padding: 8px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #0A4D68 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.logi-view-btn:hover {
    background-image: none !important;
    background: #F0F8FF !important;
    background-color: #F0F8FF !important;
    border-color: #00AEEF !important;
    color: #00AEEF !important;
}

.logi-view-btn.active {
    background-image: none !important;
    background: #0A4D68 !important;
    background-color: #0A4D68 !important;
    color: #ffffff !important;
    border-color: #0A4D68 !important;
    box-shadow: 0 4px 12px rgba(10, 77, 104, 0.25) !important;
}

/* Filter Tabs */
.logi-nfo-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid #E0F2FE;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.logi-tab-btn {
    background-image: none !important;
    background: #F0F9FF !important;
    background-color: #F0F9FF !important;
    border: 1px solid #BAE6FD;
    color: #0A4D68 !important;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.logi-tab-btn:hover {
    background-image: none !important;
    background: #E0F2FE !important;
    background-color: #E0F2FE !important;
    color: #00AEEF !important;
}

.logi-tab-btn.active {
    background-image: none !important;
    background: #0A4D68 !important;
    background-color: #0A4D68 !important;
    color: #ffffff !important;
    border-color: #0A4D68 !important;
    box-shadow: 0 4px 12px rgba(10, 77, 104, 0.25) !important;
}

/* Filter Controls */
.logi-nfo-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.logi-nfo-search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.logi-nfo-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: 12px;
    border: 1px solid #C4E1F2;
    background: #F4F9FC;
    font-family: inherit;
    font-size: 14px;
    color: #082032;
    transition: all 0.2s ease;
}

.logi-nfo-search-input:focus {
    outline: none;
    border-color: #00AEEF;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.15);
}

.logi-nfo-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #00AEEF;
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.logi-nfo-select {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #C4E1F2;
    background: #F4F9FC;
    font-family: inherit;
    font-size: 14px;
    color: #082032;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.logi-nfo-select:focus {
    outline: none;
    border-color: #00AEEF;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.15);
}

/* Grid Layout */
.logi-nfo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 22px;
}

/* Card Styling */
.logi-nfo-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #D0E8F5;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.05);
}

.logi-nfo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 174, 239, 0.15);
    border-color: #00AEEF;
}

.logi-nfo-card-top {
    margin-bottom: 16px;
}

.logi-type-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-right: 6px;
}

.logi-type-badge.mf {
    background: #E0F2FE;
    color: #0284C7;
    border: 1px solid #BAE6FD;
}

.logi-type-badge.sif {
    background: #F0F9FF;
    color: #0A4D68;
    border: 1px solid #7DD3FC;
}

.logi-nfo-amc-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0A4D68;
    background: #F0F8FF;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 12px;
    border: 1px solid #C4E1F2;
}

.logi-nfo-scheme-name {
    font-size: 18px;
    font-weight: 700;
    color: #082032;
    line-height: 1.35;
    margin: 0 0 10px 0;
}

.logi-nfo-category-pill {
    font-size: 12px;
    color: #475569;
    background: #F4F9FC;
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 14px;
    border: 1px solid #E2EFF7;
}

/* Status Badges */
.logi-nfo-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-left: 8px;
}

.logi-nfo-status-badge.closing-soon {
    background: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFE0B2;
}

.logi-nfo-status-badge.open-ended {
    background: #E0F2FE;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}

.logi-nfo-status-badge.closing-today {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

/* Key Metrics Grid in Card */
.logi-nfo-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #F4F9FC;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #E0EDF5;
    margin-bottom: 18px;
}

.logi-nfo-metric-item {
    display: flex;
    flex-direction: column;
}

.logi-nfo-metric-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

.logi-nfo-metric-val {
    font-size: 14px;
    font-weight: 700;
    color: #082032;
}

.logi-nfo-metric-val.highlight-close {
    color: #D32F2F;
}

.logi-nfo-metric-val.highlight-open {
    color: #00AEEF;
}

/* Action Buttons */
.logi-nfo-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

.logi-nfo-btn {
    background-image: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    border: none;
    flex: 1;
    text-align: center;
}

.logi-nfo-btn-primary,
a.logi-nfo-btn-primary,
button.logi-nfo-btn-primary {
    background-image: none !important;
    background: #0A4D68 !important;
    background-color: #0A4D68 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(10, 77, 104, 0.25) !important;
}

.logi-nfo-btn-primary:hover,
a.logi-nfo-btn-primary:hover,
button.logi-nfo-btn-primary:hover {
    background-image: none !important;
    background: #06374D !important;
    background-color: #06374D !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(10, 77, 104, 0.4) !important;
}

.logi-nfo-btn-secondary,
a.logi-nfo-btn-secondary,
button.logi-nfo-btn-secondary {
    background-image: none !important;
    background: #F0F8FF !important;
    background-color: #F0F8FF !important;
    color: #0A4D68 !important;
    border: 1px solid #C4E1F2 !important;
}

.logi-nfo-btn-secondary:hover,
a.logi-nfo-btn-secondary:hover,
button.logi-nfo-btn-secondary:hover {
    background-image: none !important;
    background: #E0F2FE !important;
    background-color: #E0F2FE !important;
    color: #00AEEF !important;
    border-color: #7DD3FC !important;
}

/* Modal Popup for Scheme Objective */
.logi-nfo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 32, 50, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.logi-nfo-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.logi-nfo-modal {
    background: #ffffff;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 75, 114, 0.3);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid #D0E8F5;
}

.logi-nfo-modal-overlay.active .logi-nfo-modal {
    transform: translateY(0);
}

.logi-nfo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #F0F8FF;
    border: 1px solid #C4E1F2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #082032;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.logi-nfo-modal-close:hover {
    background: #00AEEF;
    color: #ffffff;
    border-color: #00AEEF;
}

/* Data Table Styling */
.logi-nfo-table-container {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #D0E8F5;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0, 174, 239, 0.05);
}

.logi-nfo-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.logi-nfo-table th {
    background: #F0F8FF;
    color: #0A4D68;
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 2px solid #D0E8F5;
    white-space: nowrap;
}

.logi-nfo-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #F0F8FF;
    color: #082032;
    vertical-align: middle;
}

.logi-nfo-table tbody tr:hover {
    background: #F4F9FC;
}

/* Empty State */
.logi-nfo-empty {
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px dashed #BAE6FD;
    color: #475569;
}

.logi-nfo-empty-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .logi-nfo-grid {
        grid-template-columns: 1fr;
    }
    .logi-nfo-title {
        font-size: 22px;
    }
    .logi-nfo-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .logi-nfo-select {
        width: 100%;
    }
    .logi-nfo-table th, .logi-nfo-table td {
        padding: 12px 14px;
        font-size: 13px;
    }
}
