:root {
    --bg-color: #0d0f14;
    --card-bg: #1c222d;
    --accent: #5c6bc0;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    padding: 40px;
    background-color: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.6s ease-out;
    text-align: center;
}

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

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

.logo {
    margin-bottom: 24px;
}

.logo img {
    width: 80px;
    height: 80px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.setup-section {
    text-align: left;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.setup-section h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.setup-item {
    margin-bottom: 20px;
}

.setup-item label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hostname-box {
    background: #000;
    padding: 12px 14px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    color: var(--accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-download {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 8px;
    transition: transform 0.2s;
}

.btn-download:hover {
    transform: scale(1.03);
    background-color: #7986cb;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    margin-bottom: 24px;
}

.github-link:hover {
    color: white;
}

.github-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.5;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer {
    margin-top: 20px;
}

.btn-admin {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.btn-admin:hover {
    opacity: 1;
}

/* Improved Copy Button Styles */
.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-1px);
}

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

.copy-btn.success {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

.copy-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.qr-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.qr-section canvas {
    border-radius: 8px;
    background: #fff;
    padding: 6px;
    flex-shrink: 0;
}

.qr-section .qr-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.qr-section .qr-label strong {
    color: var(--text-primary);
}

/* Responsive Design for Small Screens */
@media (max-width: 480px) {
    .container {
        padding: 24px;
        border-radius: 16px;
        max-width: 100%;
    }

    h1 {
        font-size: 1.6rem;
    }

    p {
        font-size: 0.9rem;
    }

    .setup-section {
        padding: 16px;
        margin-bottom: 24px;
    }

    .setup-section h2 {
        font-size: 1rem;
    }

    .setup-item label {
        font-size: 0.75rem;
    }

    .btn-download {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .qr-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 12px;
        gap: 12px;
    }

    .qr-section img {
        max-width: 100px !important;
        height: auto !important;
    }

    .qr-label {
        font-size: 0.75rem !important;
    }

    .hostname-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }

    details {
        font-size: 0.8rem;
    }

    details > div {
        padding: 12px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 375px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 16px;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    p {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }

    .setup-section {
        padding: 12px;
        margin-bottom: 16px;
    }

    .logo img {
        width: 64px;
        height: 64px;
    }

    .qr-section img {
        max-width: 80px !important;
        height: auto !important;
    }

    .github-link {
        font-size: 0.8rem;
    }

    .disclaimer {
        font-size: 0.7rem;
        padding-top: 16px;
    }
}
