body {
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    color: #fff;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    height: 100vh;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.main-container {
    display: flex;
    height: 100vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.center-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    z-index: 1100;
    animation: fadeInOut 2s ease;
}

.title {
    font-size: 3.5rem;
    margin-bottom: 40px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 5s ease infinite;
    text-align: center;
}

.search-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

#nickInput {
    width: 100%;
    padding: 18px 25px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    outline: none;
    transition: all 0.3s ease;
}

#nickInput:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
}

#searchButton {
    padding: 18px 60px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

#searchButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

#searchButton:disabled {
    background: linear-gradient(90deg, #4facfe80, #00f2fe80);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.wave-gif {
    width: 440px;
    height: auto;
    margin-top: 30px;
    opacity: 0.9;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.wave-gif:hover {
    transform: scale(1.05);
}

.history-section {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    max-height: 60vh;
    overflow-y: auto;
}

.history-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-weight: normal;
}

#recentSearchesList {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-item {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-item.no-results {
    color: rgba(255, 255, 255, 0.5);
    position: relative;
}

.recent-item.no-results::after {
    content: "✖";
    position: absolute;
    right: 10px;
    color: rgba(255, 100, 100, 0.7);
}

.recent-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.discord-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    background: none;
    border: none;
    padding: 0;
}

.discord-icon img {
    width: 70px;
    height: 50px;
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

.discord-icon:hover img {
    transform: scale(1.1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay.active {
    display: flex;
}

.result-content {
    width: 100%;
    margin-top: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-row.header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-weight: bold;
}

.result-label {
    flex: 1;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.result-data {
    flex: 1;
    text-align: center;
    padding: 5px;
}

.result-box {
    background: rgba(30, 30, 30, 0.9);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.copyable-ip {
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
    padding: 3px 8px;
}

.copyable-ip:hover {
    background: rgba(105, 105, 105, 0.2);
}

.close-result {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.close-result:hover {
    color: white;
    transform: scale(1.1);
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 12px 25px;
    border-radius: 30px;
    color: white;
    z-index: 100;
    animation: fadeInOut 5s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.error {
    background: rgba(255, 50, 50, 0.9);
    border: 1px solid rgba(255, 100, 100, 0.8);
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0); }
    90% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsywność */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .history-section {
        position: static;
        width: 100%;
        transform: none;
        margin-top: 30px;
    }
    
    .search-box {
        width: 90%;
    }
    
    .wave-gif {
        width: 300px;
    }
}