/* Created on : 19-Sep-2023, 12:29:37 pm
    Author     : Swikruti
*/

/*SFC Complaint styling start*/
.jFiler-item-container {
    margin: 0 !important;
}
a.icon-jfi-trash {
    text-decoration: none !important;
}
.advisory-add-on {
    color: brown !important;
}
.sfc-advisory-text {
    font-size: 1.3rem !important;
}
.sfc-report-button {
    font-size: 1.2rem !important;
}
.p-2-rem {
    padding: 2.3rem !important;
}
.info-icon {
    font-size: 1.1rem !important;
}
.sfc-complaint-heading-div {
    background-image: url('/sfc/images/blue-pattern.jpg');
    background-size: cover;
    border: #1136e8 2px solid !important;
}
.preview-modal {
    background-image: url('/sfc/images/blue-pattern.jpg');
    background-size: cover;
    border: #1136e8 2px solid !important;
}
.sfc-display-heading-div {
    background-image: url('/sfc/images/blue-pattern.jpg');
    background-size: cover;
    border: #1136e8 2px solid !important;
}
.sfc-complaint-guideline-div {
    background-image: url('/sfc/images/red-background.jpg');
    background-size: cover;
    border: #c40505 2px solid !important;
}
.advisory-heading {
    color: #c40505 !important;
    font-size: 1.7rem !important;
}
.sfc-chakshu-div,
.sfc-source-section,
.sfc-reporting-section,
.sfc-call-reporting-section,
.sfc-sms-reporting-section,
.sfc-personal-details-section,
.sfc-otp-section {
    background-color: #f7fbff !important;
    border: #1136e8 2px solid !important;
}
.sfc-complaint-text,
.sfc-display-text {
    color: #001ca1 !important;
}
.sfc-complaint-success-text,
.sfc-complaint-failure-text,
.sfc-complaint-processing-text,
.whatsapp-note-text,
.ocr-failure-text {
    font-size: 1.3rem !important;
}
.preview-modal-header {
    border-bottom: #1136e8 1px solid !important;
    box-shadow: 0 8px 40px -6px #1136e8;
}
.preview-modal-footer {
    border-top: #1136e8 1px solid !important;
    box-shadow: 8px 0 40px -6px #1136e8;
}
.triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 50px 50px;
    border-color: transparent transparent transparent #1136e8;
    left: 0;
    top: 0;
    position: absolute;
}
.red-triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 50px 50px;
    border-color: transparent transparent transparent #c40505;
    left: 0;
    top: 0;
    position: absolute;
}
/* =========================================
    NEW STYLES FOR CHAKSHU ADVISORY
=========================================
*/

/* === Official Sanchar Saathi Banner Style === */
.chakshu-banner {
    background-image: url('/sfc/images/blue-pattern.jpg'); /* Sanchar Saathi blue pattern */
    background-size: cover;
    padding: 2rem 1rem;
    text-align: center; 
    border-radius: 0.5rem;
    border: #1136e8 2px solid !important; /* Sanchar Saathi dark blue border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.chakshu-banner-title {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 0.5rem;
}

.chakshu-banner-title img {
    height: 50px;
    /* filter: brightness(0) invert(1); */ /* Filter removed */
}

.chakshu-banner-title span {
    font-size: 2.5rem;
    font-weight: bold;
    color: #001ca1 !important; /* === Dark Blue Text (LOW CONTRAST) === */
    vertical-align: middle;
}

.chakshu-banner-heading {
    font-size: 1.75rem;
    font-weight: bold;
    color: #0d6efd !important; /* === Primary Blue Text (LOW CONTRAST) === */
    margin-top: 1rem;
}

/* === Light Blue Gradient Card Style === */
.card-chakshu {
    background: linear-gradient(180deg, #eef7ff 0%, #ffffff 100%); /* Blue Gradient Background */
    border: 1px solid #dee2e6; 
    border-top: 3px solid #0d6efd; /* Blue Top Border Design */
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25); /* Blue shadow */
    transition: all 0.2s ease-in-out;
}

/* Card icon colors (original) */
.card-chakshu .fs-1.text-primary {
    color: #0d6efd !important;
}
.card-chakshu .fs-1.text-danger {
    color: #dc3545 !important;
}
.card-chakshu .fs-1.text-warning {
    color: #ffc107 !important;
}

/* Card hover effect */
.card-chakshu:hover {
    transform: translateY(-5px) scale(1.02); 
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.35) !important; 
}

/* Button Styles (Solid Blue) */
.btn-chakshu {
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.btn-chakshu:hover {
    transform: translateY(-2px);
    background-color: #0b5ed7;
    border-color: #0a58ca;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* =========================================
    SLIDE-UP CARD PANEL STYLES
=========================================
*/

/* Expandable card container */
.card-expandable .card-body {
    min-height: 350px; /* Fixed minimum height for consistency */
}

/* Default panel - always visible initially */
.card-panel-default {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

/* Details panel - slides up from bottom */
.card-panel-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #eef7ff 0%, #ffffff 100%);
    transform: translateY(100%); /* Hidden below initially */
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1); /* Smooth ease-out curve */
    z-index: 2;
    padding: 1rem;
}

/* Panel details header (fixed at top) */
.panel-details-header {
    flex-shrink: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(13, 110, 253, 0.2);
    margin-bottom: 1rem;
}

/* Panel details content (scrollable middle section) */
.panel-details-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
    /* Smooth scrolling */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
.panel-details-content::-webkit-scrollbar {
    display: none;
}

/* Fade effect at bottom of scrollable content (only when has-scroll class is present) */
.panel-details-content.has-scroll::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.9) 70%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    display: block;
    margin-top: -30px;
}

/* Panel details footer (fixed at bottom) */
.panel-details-footer {
    flex-shrink: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(13, 110, 253, 0.2);
    margin-top: 1rem;
    text-align: center;
}

/* When expanded, slide the details panel up */
.card-expandable.expanded .card-panel-details {
    transform: translateY(0); /* Slide to visible position */
}

/* Fade out default panel when expanded */
.card-expandable.expanded .card-panel-default {
    opacity: 0;
    pointer-events: none; /* Disable interactions when hidden */
}

/* Close button styling */
.btn-close-details {
    text-decoration: none;
    color: #0d6efd;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease-in-out;
}

.btn-close-details:hover {
    color: #0b5ed7;
    text-decoration: none;
    transform: translateY(2px);
}

.btn-close-details i {
    font-size: 1.1rem;
}

/* Know More button styling */
.btn-know-more {
    margin-top: 0 !important;
    transition: all 0.2s ease-in-out;
}

.btn-know-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* FAQs button styling in expanded panel */
.panel-details-footer .btn-outline-primary {
    margin-top: 0 !important;
    transition: all 0.2s ease-in-out;
}

.panel-details-footer .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Card feature image styling */
.card-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.card-feature-image {
    max-width: 120px;
    height: auto;
    object-fit: contain;
}