@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --bg-gradient-start: #f0f6fc;
    --bg-gradient-mid: #e3edf7;
    --bg-gradient-end: #d6e5f5;
    --navy-title: #0b2341;
    --brand-blue: #1b63b9;
    --card-shadow-outer: 0 25px 50px -12px rgba(62, 107, 160, 0.22);
    --card-shadow-inner: inset 0 2px 4px 0 rgba(255, 255, 255, 0.9);
    --input-bg: #e6edf5;
    --input-border: #568cd2;
    --input-placeholder: #8ca2ba;
    --btn-blue-top: #5c9dda;
    --btn-blue-bottom: #3977c6;
    --btn-shadow: 0 10px 25px rgba(57, 119, 198, 0.45);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background: radial-gradient(circle at 50% 30%, #f4f8fe 0%, #e1ecf8 60%, #cfdef0 100%);
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background Globe Wireframe Pattern */
.bg-globe-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background-image: radial-gradient(circle, rgba(160, 195, 235, 0.25) 1px, transparent 1px),
                      radial-gradient(circle, rgba(120, 165, 215, 0.15) 1px, transparent 1px);
    background-size: 24px 24px, 48px 48px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(circle, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%);
}

.globe-svg-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 850px;
    height: 850px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    animation: rotateGlobe 120s linear infinite;
}

@keyframes rotateGlobe {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Main Container Layout - Single Screen Fit without Scrolling */
.app-viewport {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
    overflow: hidden;
}

/* Header Branding */
.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 2px;
}

.brand-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #174888;
    display: flex;
    align-items: center;
    line-height: 1;
}

.sphere-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: radial-gradient(circle at 35% 35%, #92c9f9 0%, #2b7bc5 40%, #0d386d 90%);
    border-radius: 50%;
    box-shadow: inset -2px -2px 6px rgba(0, 0, 0, 0.4), 0 4px 10px rgba(27, 99, 185, 0.3);
    margin: 0 2px;
    position: relative;
}

.sphere-icon::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    filter: blur(1px);
}

.brand-divider {
    width: 2px;
    height: 32px;
    background-color: #9cb5d8;
    margin: 0 4px;
}

.brand-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a4985;
    line-height: 1.15;
    text-transform: lowercase;
    letter-spacing: 0.2px;
}

/* Glassmorphism Card Frame */
.kyc-card-outer {
    background: rgba(245, 249, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 10px;
    box-shadow: var(--card-shadow-outer), inset 0 0 0 1.5px rgba(255, 255, 255, 0.85);
    max-width: 540px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kyc-card-inner {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 246, 254, 0.9));
    border-radius: 22px;
    padding: 42px 40px 46px 40px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 1), 0 4px 15px rgba(135, 175, 220, 0.15);
    border: 1px solid rgba(210, 225, 245, 0.8);
    text-align: center;
}

/* Card Title */
.kyc-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--navy-title);
    margin-bottom: 32px;
    letter-spacing: -0.3px;
}

/* PAN Input Styling */
.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 28px;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    color: #4b6b94;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pan-input {
    width: 100%;
    height: 54px;
    background-color: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 50px;
    padding: 0 20px 0 56px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #17375e;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.pan-input::placeholder {
    color: var(--input-placeholder);
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

.pan-input:focus {
    border-color: #2b75d6;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(43, 117, 214, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* View Status Button */
.btn-view-status {
    width: 220px;
    height: 52px;
    background: linear-gradient(180deg, var(--btn-blue-top) 0%, var(--btn-blue-bottom) 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--btn-shadow);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-view-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), transparent);
    border-radius: 50px 50px 0 0;
}

.btn-view-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(47, 109, 188, 0.55);
    background: linear-gradient(180deg, #6bb0ef 0%, #3e81d4 100%);
}

.btn-view-status:active {
    transform: translateY(1px);
    box-shadow: 0 5px 12px rgba(47, 109, 188, 0.4);
}

/* Quick Access Chips */
.quick-pan-container {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quick-label {
    font-size: 0.78rem;
    color: #5c7490;
    font-weight: 600;
}

.pan-chip {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(220, 233, 247, 0.8);
    color: #1c4b82;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(160, 192, 225, 0.5);
    transition: all 0.2s ease;
}

.pan-chip:hover {
    background: #1c4b82;
    color: #ffffff;
}

/* Results Display Modal/Card */
.result-card-container {
    display: none;
    margin-top: 28px;
    text-align: left;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #d4e3f3;
    box-shadow: 0 10px 25px rgba(50, 90, 140, 0.08);
    animation: fadeIn 0.35s ease-out forwards;
}

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

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px dashed #d5e2f0;
    margin-bottom: 16px;
}

.result-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-verified {
    background-color: #e6f7ed;
    color: #0e8345;
    border: 1px solid #b3e7c5;
}

.status-pending {
    background-color: #fff9e6;
    color: #b78103;
    border: 1px solid #ffe899;
}

.status-hold {
    background-color: #fde8e8;
    color: #c82333;
    border: 1px solid #f5c6cb;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b829c;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #102a45;
}

.btn-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-secondary-action {
    flex: 1;
    height: 42px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #568cd2;
    background: #f0f6fc;
    color: #1b63b9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-secondary-action:hover {
    background: #1b63b9;
    color: #ffffff;
}

/* Spinner */
.spinner-border-sm {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    color: #d93025;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 8px;
    display: none;
}

/* Footer decorative accent */
.footer-sparkle {
    position: absolute;
    bottom: 40px;
    right: 80px;
    opacity: 0.4;
    pointer-events: none;
}

/* ==========================================================================
   Globe Detailed KYC Page Layout & Table Styles
   ========================================================================== */

.globe-page-container {
    background-color: #f7f5e8;
    min-height: 100vh;
    padding: 12px 18px 40px 18px;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
}

/* Header & Banner */
.globe-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px 12px 10px;
    border-bottom: 2px solid #336699;
    margin-bottom: 8px;
}

.globe-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.globe-logo {
    font-size: 2.4rem;
    font-weight: 900;
    color: #164888;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    margin: 0;
    line-height: 1;
}

.globe-sphere {
    display: inline-block;
    width: 26px;
    height: 26px;
    background: radial-gradient(circle at 35% 35%, #92c9f9 0%, #2b7bc5 40%, #0d386d 90%);
    border-radius: 50%;
    margin: 0 2px;
    box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.4);
}

.globe-tagline-box {
    display: flex;
    flex-direction: column;
    font-size: 0.72rem;
    font-weight: bold;
    color: #164888;
    line-height: 1.1;
    border-left: 2px solid #8ba8cd;
    padding-left: 10px;
}

.btn-back-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #164888;
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-back-search:hover {
    background-color: #0e305d;
    color: #ffffff;
}

/* Tabs Bar - Modern Glassmorphic Design */
.globe-tabs-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #dcdabf;
    border: 1px solid #b2af95;
    border-radius: 8px;
    padding: 5px 8px;
    margin-bottom: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tab-item {
    padding: 7px 26px;
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #2c425e;
    background: #e8e6d3;
    border: 1px solid #bebb9f;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-item:hover:not(.active) {
    color: #111111;
    background: #f4f2e2;
}

.tab-item.active {
    background: linear-gradient(180deg, #3d6f9f 0%, #214b77 100%);
    color: #ffffff;
    border-color: #173b60;
    box-shadow: 0 2px 6px rgba(27, 65, 105, 0.35);
}

/* Table Sections */
.globe-content-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.globe-table-section {
    background-color: #ffffff;
    border: 1px solid #4a75a0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.globe-section-title {
    background-color: #ffffff;
    color: #1a4985;
    font-size: 1.05rem;
    font-weight: bold;
    text-align: center;
    padding: 6px 10px;
    border-bottom: 1px solid #4a75a0;
}

.globe-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.globe-data-table th {
    background: linear-gradient(180deg, #4679aa 0%, #35628e 100%);
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    padding: 7px 8px;
    border: 1px solid #2b5077;
    font-size: 0.86rem;
}

.globe-data-table td {
    padding: 6px 8px;
    border: 1px solid #c2d0df;
    text-align: center;
    color: #000000;
    background-color: #ffffff;
}

.globe-data-table tbody tr:nth-child(even) td {
    background-color: #fbfbfa;
}

.globe-data-table td.fw-bold {
    font-weight: bold;
}

.text-green {
    color: #008000;
}

/* Status cell pills inside table */
.status-cell {
    font-weight: bold;
    display: inline-block;
}

.status-cell.opened {
    color: #333333;
}

.status-cell.returned {
    color: #aa2222;
}

.status-cell.pending {
    color: #b86b00;
}

.status-cell.resolved {
    color: #008000;
}

.empty-row {
    color: #777777;
    font-style: italic;
    padding: 16px !important;
}

/* Custom SweetAlert Styles */
.globe-swal-popup { border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(62, 107, 160, 0.4); border: 1px solid rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); }
.globe-swal-button { border-radius: 8px !important; padding: 12px 30px !important; font-family: 'Cinzel', serif !important; font-weight: 700 !important; letter-spacing: 1px !important; box-shadow: 0 10px 25px rgba(57, 119, 198, 0.45) !important; background: linear-gradient(to bottom, var(--btn-blue-top), var(--btn-blue-bottom)) !important; border: none !important; color: white !important; }
.globe-swal-button:hover { background: linear-gradient(to bottom, #74aee2, #4784d1) !important; transform: translateY(-2px); transition: all 0.2s ease-in-out; }
.globe-swal-icon { border-color: #e74c3c !important; color: #e74c3c !important; }

