:root {
    --bg-dark: #0f111a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-card: rgba(255, 255, 255, 0.1);
    --neon-purple: #bd00ff;
    --neon-cyan: #00e1ff;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--neon-purple);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--neon-cyan);
    bottom: 10%;
    right: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: #4f46e5;
    top: 40%;
    left: 30%;
    animation-duration: 15s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.2);
    }
}

/* Layout */
.container {
    width: 100%;
    max-width: 900px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.highlight {
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Search Box */
.search-container {
    width: 100%;
    max-width: 700px;
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    width: 100%;
    height: 60px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.search-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    z-index: -1;
    border-radius: 32px;
    opacity: 0.5;
    filter: blur(5px);
    transition: opacity 0.3s;
}

.search-box:focus-within::before {
    opacity: 1;
    filter: blur(8px);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 1.2rem;
    font-family: inherit;
}

.search-box input::placeholder {
    color: #64748b;
}

.search-box button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    color: var(--neon-cyan);
}

.error-msg {
    color: var(--error);
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    min-height: 20px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Main Card */
.main-card {
    position: relative;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.company-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.info-icon {
    font-size: 1.2rem;
}

.info-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.5;
}

.info-text span {
    color: var(--text-primary);
}

/* Source Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.status-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease;
}

.status-card:hover {
    transform: translateY(-5px);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-top h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.status-icon {
    font-size: 1.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.dot.active {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.dot.error {
    background: var(--error);
    box-shadow: 0 0 10px var(--error);
}

.dot.warning {
    background: var(--warning);
    box-shadow: 0 0 10px var(--warning);
}

.details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    border-top: 1px solid var(--border-card);
    padding-top: 15px;
    margin-top: auto;
}

/* Utilities & Animations */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.fade-in-stagger>div {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.fade-in-stagger>div:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in-stagger>div:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in-stagger>div:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s infinite;
    border-radius: 16px;
    border: 1px solid var(--border-card);
}

.skeleton-main {
    height: 250px;
    width: 100%;
}

.skeleton-card {
    height: 180px;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Response Data Box */
.response-data {
    margin-top: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 225, 255, 0.2);
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.response-data::-webkit-scrollbar {
    width: 6px;
}

.response-data::-webkit-scrollbar-thumb {
    background: var(--border-card);
    border-radius: 4px;
}

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

.data-table th, .data-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--text-secondary);
    font-weight: 400;
    width: 35%;
    white-space: nowrap;
}

.data-table td {
    color: var(--text-primary);
    word-break: break-word;
}

.data-list-item {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.data-list-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.item-header {
    font-size: 0.8rem;
    color: var(--neon-cyan);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}