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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.container {
    max-width: 800px;
    width: 90%;
    text-align: center;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 20px;
    margin: 20px 0;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.logo span {
    color: #e74c3c;
}

h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
    font-weight: 600;
}

.ip-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.ip-box:hover {
    transform: translateY(-5px);
}

.ip-address {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    word-break: break-all;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: inline-block;
    min-width: 220px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ip-address:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.ip-address.copied-scale {
    transform: scale(1.05);
}

.copy-btn {
    background-color: white;
    color: #667eea;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.copy-btn.visible {
    display: inline-block;
}

.copy-btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

.instructions {
    margin-top: 30px;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.loading {
    color: white;
    font-style: italic;
    font-size: 1.2rem;
}

.footer {
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.footer-top {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #999;
}

.footer-bottom {
    font-size: 0.7rem;
    color: #ccc;
    margin-top: 5px;
}

.footer-link {
    color: #3498db;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-license {
    color: #ccc;
    text-decoration: none;
}

.footer-license:hover {
    text-decoration: underline;
}

.footer a {
    color: #3498db;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Toast notification styles */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

@media (max-width: 600px) {
    .container {
        padding: 30px 15px;
        width: 95%;
    }

    .logo {
        font-size: 2rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .ip-address {
        font-size: 1.4rem;
        padding: 15px;
    }

    .copy-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}