/* Profile page styles - NO BLUR, NO DIM, FIXED INPUTS */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Figtree';
}

/* Desktop centering - WHITE background */
body.desktop-centered {
    font-family: 'Figtree';
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    position: relative;
}

/* REMOVED: No backdrop at all - no dim effect */

/* Main container */
.main-container {
    width: 100%;
    max-width: 28rem;
    height: 100vh;
    background: #fcf8f7;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    margin: 0 auto;
    z-index: 1;
}

/* Main scrollable area */
.main-scroll-area {
    flex: 1;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 120px !important;
    margin: 0;
    background-color: #fcf8f7;
    position: relative;
}

/* Hide scrollbar */
.main-scroll-area::-webkit-scrollbar {
    width: 0px !important;
    background: transparent !important;
}

.main-scroll-area::-webkit-scrollbar-track {
    background: transparent !important;
}

.main-scroll-area::-webkit-scrollbar-thumb {
    background: transparent !important;
}

.main-scroll-area {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Bottom navigation */
.mobile-nav-container {
    position: fixed !important;
    bottom: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 50;
    width: calc(28rem - 16px) !important;
    max-width: calc(28rem - 16px) !important;
    margin: 0 !important;
}

/* FIXED: Popup overlays - working inputs, no dim */
.pan-popup-overlay,
.notification-popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    background-color: transparent !important;
    z-index: 1000 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    overflow: hidden !important;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none !important;
}

.pan-popup-overlay.active,
.notification-popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: none !important;
}

/* FIXED: Popup content - inputs work, fully clickable */
.pan-popup-content,
.pan-verified-content,
.notification-popup-content,
.confirmation-popup-content {
    position: relative !important;
    background-color: white;
    border-radius: 20px 20px 0 0;
    padding: 1rem;
    width: 28rem !important;
    max-width: 28rem !important;
    margin: 0 !important;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    max-height: 70vh;
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 1001 !important;
    pointer-events: auto !important;
}

.pan-popup-overlay.active .pan-popup-content,
.pan-popup-overlay.active .pan-verified-content,
.pan-popup-overlay.active .confirmation-popup-content,
.notification-popup-overlay.active .notification-popup-content {
    transform: translateY(0) !important;
}

/* FIXED: All interactive elements inside popups work */
.pan-popup-content *,
.pan-verified-content *,
.notification-popup-content *,
.confirmation-popup-content * {
    pointer-events: auto !important;
}

/* Ensure inputs are fully functional */
.pan-popup-content input,
.pan-popup-content button,
.pan-popup-content textarea,
.notification-popup-content input,
.notification-popup-content button,
.confirmation-popup-content button {
    pointer-events: auto !important;
    user-select: auto !important;
    -webkit-user-select: auto !important;
    cursor: auto !important;
}

.pan-popup-content button,
.notification-popup-content button,
.confirmation-popup-content button {
    cursor: pointer !important;
}

/* Prevent body scrolling when popups active */
body.popup-active {
    overflow: hidden !important;
}

.pan-popup-header {
    margin-bottom: 20px;
}

.pan-verified-header {
    margin-bottom: 0;
}

.notification-popup-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.pan-popup-handle,
.popup-handle {
    width: 40px;
    height: 4px;
    background-color: #e5e5e5;
    border-radius: 2px;
    margin: 0 auto 15px;
}

/* Wallet Card */
.wallet-card {
    background: url('/assets/Wallet_BG[1].png') center center / cover no-repeat;
    border-radius: 1rem;
    padding: 1.25rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 100%;
    margin: 0;
}

.wallet-card:hover {
    transform: translateY(-2px);
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.wallet-label {
    font-size: 0.875rem;
    color: #cbd5e0;
    font-weight: 400;
}

.wallet-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.wallet-card:hover .wallet-icon {
    opacity: 1;
}

.wallet-balance {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
    font-weight: 700;
}

.currency-symbol {
    font-size: 1.5rem;
    margin-right: 0.25rem;
    color: #ffffff;
}

.balance-amount {
    font-size: 2.25rem;
    line-height: 1;
    color: #ffffff;
    transition: transform 0.2s ease-in-out;
    font-weight: 500;
}

.wallet-card:hover .balance-amount {
    transform: scale(1.02);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #cbd5e0;
    font-weight: 400;
}

.stat-value {
    font-size: 0.875rem;
    color: #ffffff;
    font-weight: 400;
}

.progress-container {
    margin: 0.75rem 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
    border-radius: 3px;
    transition: width 0.5s ease-in-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.earned-amount {
    font-size: 0.875rem;
    color: #cbd5e0;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.wallet-actions {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
}

.action-btn {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: all 0.2s ease-in-out;
    backdrop-filter: blur(10px);
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

.action-btn img {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

/* Profile Details Container */
.profile-details-container {
    background-color: #FCE9E9;
    border-radius: 12px;
    overflow: hidden;
}

/* Profile menu item styles */
.profile-menu-item {
    background-color: transparent !important;
    transition: none !important;
    cursor: pointer;
    border-radius: 0 !important;
}

.profile-menu-item:hover {
    background-color: transparent !important;
    transform: none !important;
}

.profile-menu-item:active {
    transform: none !important;
}

/* Divider between profile items */
.profile-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Confirmation Content */
.confirmation-content {
    text-align: center;
    margin-bottom: 25px;
}

.confirmation-icon-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.confirmation-icon-container img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.confirmation-text {
    margin-bottom: 1rem;
}

.confirmation-text h3 {
    font-family: 'Figtree';
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
    margin: 0;
}

/* PAN Upload Section */
.pan-upload-section {
    margin-bottom: 20px;
}

.pan-upload-box {
    border: 2px dashed #e5e5e5;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pan-upload-box:hover {
    border-color: #d1d5db;
    background-color: #f5f5f5;
}

.pan-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pan-input-section {
    margin-bottom: 25px;
}

.pan-input-section label {
    font-weight: 500;
}

.pan-input-section input {
    text-transform: uppercase;
}

.pan-verify-btn {
    width: 100%;
    background-color: #9ca3af;
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.pan-verify-btn:enabled {
    background-color: #1f2937;
    cursor: pointer;
}

.pan-verify-btn:enabled:hover {
    background-color: #374151;
    transform: translateY(-1px);
}

.pan-verify-btn:enabled:active {
    transform: translateY(0);
}

/* Button Container */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.btn-container .pan-verify-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

.cancel-btn {
    background-color: #1A1A1A;
    color: #ffffff;
    border: none;
}

.cancel-btn:hover {
    background-color: #2d2d2d;
    transform: translateY(-1px);
}

.cancel-btn:active {
    transform: translateY(0);
}

.cancel-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.logout-btn {
    background-color: #ffffff !important;
    color: #1A1A1A !important;
    border: 1px solid #e0e0e0 !important;
}

.logout-btn:hover {
    background-color: #f9f9f9 !important;
    transform: translateY(-1px);
}

.logout-btn:active {
    transform: translateY(0);
}

.logout-btn:disabled {
    background-color: #9ca3af !important;
    cursor: not-allowed;
    transform: none;
}

.delete-action-btn {
    background-color: #ffffff !important;
    color: #1A1A1A !important;
    border: 1px solid #e0e0e0 !important;
}

.delete-action-btn:hover {
    background-color: #f9f9f9 !important;
    transform: translateY(-1px);
}

.delete-action-btn:active {
    transform: translateY(0);
}

.delete-action-btn:disabled {
    background-color: #9ca3af !important;
    cursor: not-allowed;
    transform: none;
}

/* PAN Verified Details */
.pan-verified-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pan-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pan-detail-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.pan-detail-value {
    font-size: 1rem;
    font-weight: 400;
    color: #6B7280;
    background-color: #F9FAFB;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #E5E7EB;
}

/* Notification Table */
.notification-table {
    margin-bottom: 30px;
}

.notification-header-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 5px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
}

.notification-header-cell {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    padding: 0 10px;
}

.campaign-header {
    text-align: left !important;
}

.notification-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 20px 5px;
}

.notification-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.campaign-name {
    justify-content: flex-start !important;
    font-size: 0.9rem;
    font-weight: 400;
    color: #374151;
    padding-left: 10px;
}

.radio-cell {
    justify-content: center;
}

/* Custom Radio Button */
.radio-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none !important;
}

.radio-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-circle {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #374151;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.radio-input:checked + .radio-circle {
    border-color: #374151;
}

.radio-input:checked + .radio-circle::after {
    opacity: 1;
}

.radio-wrapper:hover .radio-circle {
    border-color: #9ca3af;
}

/* Update Button */
.notification-update-btn {
    width: 100%;
    background-color: #1f2937;
    color: white;
    padding: 14px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-update-btn:hover {
    background-color: #374151;
    transform: translateY(-1px);
}

.notification-update-btn:active {
    transform: translateY(0);
}

/* File upload feedback */
.pan-upload-box.has-file {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.pan-upload-box.has-file .pan-upload-content {
    color: #10b981;
}

/* Custom scrollbar for popups */
.pan-popup-content::-webkit-scrollbar,
.pan-verified-content::-webkit-scrollbar,
.notification-popup-content::-webkit-scrollbar,
.confirmation-popup-content::-webkit-scrollbar {
    width: 4px;
}

.pan-popup-content::-webkit-scrollbar-track,
.pan-verified-content::-webkit-scrollbar-track,
.notification-popup-content::-webkit-scrollbar-track,
.confirmation-popup-content::-webkit-scrollbar-track {
    background: transparent;
}

.pan-popup-content::-webkit-scrollbar-thumb,
.pan-verified-content::-webkit-scrollbar-thumb,
.notification-popup-content::-webkit-scrollbar-thumb,
.confirmation-popup-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    body.desktop-centered {
        padding: 0;
        align-items: stretch;
    }
    
    .main-container {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }
    
    .mobile-nav-container {
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: calc(100% - 16px) !important;
        width: calc(100% - 16px) !important;
        margin: 0 !important;
    }
    
    .pan-popup-overlay,
    .notification-popup-overlay {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .pan-popup-content,
    .pan-verified-content,
    .notification-popup-content,
    .confirmation-popup-content {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 375px) {
    .wallet-card {
        padding: 1rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .action-btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.75rem;
        min-height: 40px;
    }
}

@media (max-width: 320px) {
    .wallet-card {
        padding: 0.875rem 1rem;
    }
    
    .balance-amount {
        font-size: 1.875rem;
    }
    
    .action-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.7rem;
        min-height: 36px;
    }
}