:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.5);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --blob-1: #6366f1;
    --blob-2: #ec4899;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Dynamic Background */
.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: drift 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--blob-1);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--blob-2);
    bottom: -50px;
    right: -50px;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.app-header {
    text-align: center;
}

.app-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

.app-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    overflow: hidden;
}

/* Info Section */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.ip-display {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.ip-display .label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#ip-address {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.detail-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
}

.icon {
    font-size: 1.5rem;
}

.text {
    display: flex;
    flex-direction: column;
}

.text .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.text .value {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Map */
#map {
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    width: 100%;
    z-index: 10;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

/* Loading Animation */
.loading-pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 900px) {
    .glass-panel {
        grid-template-columns: 1fr;
    }
    
    #map {
        height: 300px;
        min-height: 300px;
    }

    .app-header h1 {
        font-size: 2.5rem;
    }
    
    #ip-address {
        font-size: 2rem;
    }
}
