/* ==========================================================================
   HELP PAGE STYLES - RESPONDENT VERSION
   ========================================================================== */
html,body {
    overflow-y: scroll!important;
    height: 100%;
    
}

.faq-answer a{
    color: #280f91;
}
.help-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #392395 0%, #1a0a5c 100%);
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.help-card {
    padding: 0px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(40, 15, 145, 0.3);
    animation: slideInUp 0.8s ease-out;
    overflow: hidden;
    padding-left: 0!important;
    padding-right: 0!important;
}

/* Help Header */
.help-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(237, 232, 171, 0.1);
    padding: 2rem;
}

.help-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.help-icon {
    width: 80px;
    height: 80px;
    background: rgba(237, 232, 171, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-icon i {
    font-size: 2.5rem;
    color: #ede8ab;
}

.help-title {
    flex: 1;
    min-width: 200px;
}

.help-title h1 {
    color: #ede8ab;
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-decoration: none;
}

.help-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.help-uin {
    background: rgba(237, 232, 171, 0.1);
    border: 1px solid rgba(237, 232, 171, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.uin-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.uin-value {
    color: #ede8ab;
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Help Body */
.help-body {
    background: white;
    color: #280f91;
    position: relative;
    z-index: 1; /* Lower z-index so active tab can connect over it */
}

/* Navigation Tabs */
.help-tabs {
    background: linear-gradient(145deg, #eeeeee 0%, #e9ecef 100%);
    padding: 1.5rem 2rem 0 2rem;
    position: relative;
    z-index: 5; /* Higher than content to allow connection */
}

.help-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #280f91 0%, #392395 50%, #280f91 100%);
}

.help-tabs .nav-tabs {
    border: none;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    position: relative;
}

.help-tabs .nav-item {
    flex: none;
}

.help-tabs .nav-link {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 250, 0.9));
    border: 2px solid rgba(40, 15, 145, 0.1);
    border-bottom: none;
    color: #6c757d;
    padding: 1.25rem 1.75rem;
    border-radius: 15px 15px 0 0;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    width: 200px; /* Fixed width to prevent flickering */
    justify-content: center;
    text-align: center;
    box-shadow: 
        0 4px 15px rgba(40, 15, 145, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-bottom: -2px;
    overflow: hidden;
    will-change: transform; /* Optimize for animations */
}

.help-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(237, 232, 171, 0.3), transparent);
}

.help-tabs .nav-link:hover::before {
    left: 100%;
}

.help-tabs .nav-link:hover {
    color: #280f91;
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(248, 249, 250, 1));
    transform: translateY(-2px); /* Reduced transform to prevent flickering */
    box-shadow: 
        0 6px 20px rgba(40, 15, 145, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(40, 15, 145, 0.3);
}

.help-tabs .nav-link.active {
    color: #280f91;
    background: white; /* Match content background */
    border-bottom: none; /* Remove bottom border */
    font-weight: 700;
    transform: translateY(0);
    box-shadow: none;
    border-color: rgba(40, 15, 145, 0.4);
    z-index: 20; /* Higher than tab container */
    position: relative;
    height: 100%;
}

.help-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px; /* Extend further down to properly overlap content */
    left: -2px; /* Extend slightly to sides to cover side borders */
    right: -2px;
    height: 6px; /* Taller to ensure proper overlap */
    background: white; /* Same as content background */
    z-index: 25; /* Highest z-index to appear on top */
    border-radius: 0; /* No border radius for seamless connection */
}

.help-tabs .nav-link i {
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    width: 20px; /* Fixed width for consistent spacing */
    text-align: center;
}

.help-tabs .nav-link.active i {
    transform: scale(1.05); /* Reduced scale to prevent flickering */
    text-shadow: 0 0 8px rgba(237, 232, 171, 0.3);
}

.help-tabs .nav-link span {
    font-size: 0.95rem;
    line-height: 1.2;
    font-weight: inherit;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
}

.help-tabs .nav-link.active span {
    color: #280f91;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Section Headers */
.help-section {
    padding: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(40, 15, 145, 0.1);
}

.section-header i {
    font-size: 1.5rem;
    color: #280f91;
}

.section-header h2 {
    color: #280f91;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-decoration: none;
}

/* Content Cards */
.content-card {
    background: #f8f9fa;
    border: 1px solid rgba(40, 15, 145, 0.15);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(40, 15, 145, 0.08);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 15, 145, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(40, 15, 145, 0.1);
}

.card-header i {
    font-size: 1.2rem;
    color: #280f91;
}

.card-header h3 {
    color: #280f91;
    font-size: 1.2rem!important;
    font-weight: 600;
    margin: 0;
    text-decoration: none;
}

/* Intro Section */
.intro-section {
    margin-bottom: 2rem;
}

.intro-section p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(40, 15, 145, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(40, 15, 145, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #280f91;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: #ede8ab;
}

.feature-content h4 {
    color: #280f91;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-decoration: none;
}

.feature-content p {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Project Info */
.project-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #280f91;
}

.info-item i {
    color: #280f91;
    font-size: 1.2rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.info-item p {
    margin: 0;
    line-height: 1.6;
}

.info-item a {
    color: #280f91;
    font-weight: 600;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

/* FAQ Container */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #f8f9fa;
    border: 1px solid rgba(40, 15, 145, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(40, 15, 145, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    background: white;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(40, 15, 145, 0.02);
}

.question-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.question-content i {
    color: #280f91;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.question-content span {
    color: #280f91;
    font-weight: 600;
    font-size: 1rem;
}

.question-toggle {
    margin-left: 1rem;
}

.question-toggle i {
    color: #6c757d;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    color: #6c757d;
    line-height: 1.6;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 500px; /* Arbitrary large value to allow expansion */
}

/* Security Container */
.security-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.security-item {
    background: #f8f9fa;
    border: 1px solid rgba(40, 15, 145, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.security-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 15, 145, 0.15);
}

.security-question {
    padding: 1.5rem;
    background: white;
}

.security-answer {
    padding: 1.5rem;
    border-top: 1px solid rgba(40, 15, 145, 0.1);
}

.security-answer.safe {
    background: rgba(61, 191, 117, 0.05);
    border-left: 4px solid #3dbf75;
}

.answer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #3dbf75;
    font-weight: 600;
    font-size: 0.9rem;
}

.answer-status i {
    font-size: 1rem;
}

.security-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(61, 191, 117, 0.2);
}

.detail-item i {
    color: #3dbf75;
    font-size: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Troubleshoot Container */
.troubleshoot-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.problem-card {
    background: #f8f9fa;
    border: 1px solid rgba(40, 15, 145, 0.15);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(40, 15, 145, 0.08);
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 15, 145, 0.15);
}

.problem-header {
    background: #280f91;
    color: #ede8ab;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.problem-header i {
    font-size: 1.5rem;
}

.problem-header h3 {
    color: #ede8ab;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-decoration: none;
}

.problem-content {
    padding: 2rem;
    background: white;
}

.problem-description {
    margin-bottom: 1.5rem;
}

.problem-description p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.permission-list,
.cause-list,
.check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.permission-list li,
.cause-list li,
.check-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.permission-list li i,
.cause-list li i,
.check-list li i {
    color: #280f91;
    font-size: 1rem;
    flex-shrink: 0;
}

.common-issue {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.issue-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #856404;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.issue-badge i {
    font-size: 1rem;
}

.solution-steps {
    background: rgba(40, 15, 145, 0.05);
    border: 1px solid rgba(40, 15, 145, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #280f91;
    font-weight: 600;
}

.step-header i {
    font-size: 1rem;
}

.solution-list {
    color: #6c757d;
    line-height: 1.6;
}

.solution-list li {
    margin-bottom: 0.75rem;
}

.nested-steps,
.sub-steps {
    margin: 0.5rem 0 0.5rem 1rem;
}

.nested-steps li,
.sub-steps li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.help-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid rgba(40, 15, 145, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    color: #6c757d;
}

.help-contact i {
    color: #280f91;
    font-size: 1rem;
    flex-shrink: 0;
}

.help-contact a {
    color: #280f91;
    font-weight: 600;
    text-decoration: none;
}

.help-contact a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   PUBLIC HELP PAGE STYLES
   ========================================================================== */

.public-help-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #280f91 0%, #1a0a5c 100%);
    padding: 2rem 0;
}

.public-help-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(40, 15, 145, 0.3);
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

.helpTabs {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
    border-bottom: 2px solid rgba(255, 255, 255, 0.2); /* Add border for public version */
    padding: 1.5rem 2rem 0 2rem;
    position: relative;
    z-index: 5; /* Higher than content */
}

.helpTabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ede8ab 0%, #f5f0c4 50%, #ede8ab 100%);
}

.helpTabs .nav-tabs {
    border: none;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.helpTabs .nav-item {
    flex: none;
}

.helpTabs .nav-link {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 1.25rem 1.75rem;
    border-radius: 15px 15px 0 0;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0;
    width: 200px; /* Fixed width to prevent flickering */
    text-align: center;
    box-shadow: 
        0 4px 15px rgba(40, 15, 145, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-bottom: -2px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.helpTabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(237, 232, 171, 0.2), transparent);
    transition: left 0.6s ease;
}

.helpTabs .nav-link:hover::before {
    left: 100%;
}

.helpTabs .nav-link:hover {
    color: #ede8ab;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(40, 15, 145, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(237, 232, 171, 0.4);
}

.helpTabs .nav-link.active {
    color: #280f91;
    background: white; /* Match content background */
    font-weight: 700;
    transform: translateY(0);
    box-shadow: 
        0 8px 25px rgba(40, 15, 145, 0.3),
        inset 0 2px 0 rgba(237, 232, 171, 0.3);
    border-color: rgba(255, 255, 255, 0.9);
    border-bottom: none; /* Remove bottom border */
    z-index: 20; /* Higher than tab container */
    position: relative;
}

.helpTabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px; /* Extend further down to properly overlap content */
    left: -2px; /* Extend slightly to sides */
    right: -2px;
    height: 6px; /* Taller to ensure proper overlap */
    background: white; /* Same as content background */
    z-index: 25; /* Highest z-index to appear on top */
    border-radius: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .help-uin .uin-value{
        font-size: 1.8rem;
    }
    .help-uin{
        width: 80%;
        padding: 0.7rem 1rem;
    }
    .help-icon{
        display:none;
    }
    
    .help-header-content {
        flex-direction: column;
        gap: 1rem;
        margin-top: 10px;
    }
    
    .help-header-content h1{
        text-align: center!important;
    }


    .help-container {
        padding: 1rem;
    }
    
    .help-header {
        padding: 1.5rem;
    }
    
    .help-icon {
        width: 60px;
        height: 60px;
    }
    
    .help-icon i {
        font-size: 2rem;
    }
    
    .help-title h1 {
        font-size: 1.5rem;
    }
    
    
    .help-uin .uin-value {
        font-size: 1.3rem;
    }
    
    .help-section {
        padding: 1.5rem;
    }
    
    .help-tabs,
    .helpTabs {
        padding: 1rem 1rem 0 1rem;
    }
    
    .help-tabs .nav-tabs,
    .helpTabs .nav-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .help-tabs .nav-link,
    .helpTabs .nav-link {
        width: 100%; /* Full width on mobile */
        border-radius: 12px;
        margin-bottom: 0.5rem;
        padding: 1rem 1.25rem;
        justify-content: flex-start;
        transform: none !important; /* Disable transforms on mobile */
    }
    
    .help-tabs .nav-link:hover,
    .helpTabs .nav-link:hover {
        transform: none !important;
    }
    
    .help-tabs .nav-link.active,
    .helpTabs .nav-link.active {
        border-bottom: none;
        border-left: 4px solid #ede8ab;
        transform: none !important;
        margin-left: 0;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        align-self: center;
    }
    
    .problem-content {
        padding: 1rem;
    }
    
    .solution-steps {
        padding: 1rem;
    }
}

@media (max-width: 574px) {
    .container{
    padding-left: 20px;
    padding-right: 20px;
    }
}
@media (max-width: 480px) {
    .help-container {
        padding: 0.5rem;
    }
    
    .help-header,
    .help-section {
        padding: 1rem;
    }
    
    .help-icon {
        width: 50px;
        height: 50px;
    }
    
    .help-icon i {
        font-size: 1.7rem;
    }
    
    .help-title h1 {
        font-size: 1.3rem;
    }
    
    .uin-value {
        font-size: 1.2rem;
    }
    
    .content-card,
    .problem-content {
        padding: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding-bottom: 1rem;
    }
    
    .question-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon i {
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
