:root {
    --bg-color: #050505;
    --card-bg: #0a0a0a;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --accent-primary: #00ff41;
    /* Hacker Green */
    --accent-secondary: #008f11;
    --border-color: #1a1a1a;
    --error-color: #ff3333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Code', 'Courier New', monospace;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    line-height: 1.5;
}

/* Emulate terminal cursor blink on title */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.container {
    width: 100%;
    max-width: 800px;
    z-index: 1;
}

header {
    margin-bottom: 2rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1.5rem;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
    text-align: center;
}

header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Minimalist Card */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
}

.hidden {
    display: none !important;
}

/* Minimalist Loader */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 0;
    gap: 1rem;
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* IP Section */
.main-ip-section {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.label::before {
    content: '> ';
    color: var(--accent-secondary);
}

.gradient-text {
    font-size: 2.5rem;
    color: var(--accent-primary);
    font-weight: 700;
    word-break: break-all;
    margin: 0.5rem 0;
    letter-spacing: -1px;
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    margin-top: 0.5rem;
}

.icon-btn::after {
    content: '[copy]';
    font-size: 0.8rem;
}

.icon-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.toast {
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.toast.show {
    opacity: 1;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 2rem 0;
    width: 100%;
}

/* Info List Layout (Terminal style) */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.01);
}

.info-icon {
    color: var(--accent-secondary);
    width: 25px;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
}

.info-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: baseline;
    gap: 1rem;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.info-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: right;
}

/* Error State */
.error-message {
    color: var(--error-color);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.9rem;
}

.retry-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
}

.retry-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 600px) {
    .glass-panel {
        padding: 1.5rem;
    }

    .gradient-text {
        font-size: 2rem;
    }

    .info-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .info-value {
        text-align: left;
        color: var(--accent-primary);
    }
}