:root {
    --bg-pink-light: #ffe6f0;
    --bg-pink-main: #ffb3d1;
    --accent-pink: #ff66a3;
    --text-dark: #4a2e3b;
    --white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.85);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #ffd1dc 0%, #ffc0cb 50%, #ffb6c1 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

.clouds-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 100px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6);
}

.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
}

.cloud-1 {
    width: 250px;
    height: 80px;
    top: 10%;
    left: -300px;
    animation: floatClouds 45s linear infinite;
}
.cloud-1::before { width: 100px; height: 100px; top: -50px; left: 30px; }
.cloud-1::after { width: 120px; height: 120px; top: -60px; right: 40px; }

.cloud-2 {
    width: 350px;
    height: 100px;
    top: 45%;
    left: -400px;
    animation: floatClouds 30s linear infinite;
    animation-delay: -10s;
    opacity: 0.7;
}
.cloud-2::before { width: 140px; height: 140px; top: -70px; left: 50px; }
.cloud-2::after { width: 150px; height: 150px; top: -80px; right: 60px; }

.cloud-3 {
    width: 200px;
    height: 70px;
    top: 75%;
    left: -250px;
    animation: floatClouds 55s linear infinite;
    animation-delay: -5s;
    opacity: 0.5;
}
.cloud-3::before { width: 80px; height: 80px; top: -40px; left: 25px; }
.cloud-3::after { width: 90px; height: 90px; top: -45px; right: 30px; }

@keyframes floatClouds {
    0% {
        transform: translateX(-150px);
    }
    100% {
        transform: translateX(calc(100vw + 500px));
    }
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-img {
    max-width: 350px;
    width: 100%;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(3px 3px 0px rgba(255, 102, 163, 0.4)) 
            drop-shadow(6px 6px 10px rgba(0, 0, 0, 0.1));
}

.tabs {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(255, 102, 163, 0.2);
    margin-bottom: 30px;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    flex: 1; 
    text-align: center;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--white);
    color: var(--accent-pink);
    box-shadow: 0 4px 15px rgba(255, 102, 163, 0.3);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    width: 100%;
    max-width: 900px;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    border: 2px solid var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.server-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.server-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ddd;
    object-fit: cover;
}

.server-title-area h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.server-status-badge {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-block;
    margin-top: 3px;
}

.status-online { background: #d4edda; color: #155724; }
.status-offline { background: #f8d7da; color: #721c24; }

.server-ip-box {
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 102, 163, 0.2);
    gap: 10px;
}

.ip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: var(--accent-pink);
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    transition: background 0.2s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #e05590;
}

.server-info-text {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.card.archived {
    opacity: 0.65;
    border-color: #ddd;
}

.card.archived .server-status-badge {
    background: #e2e3e5;
    color: #383d41;
}

.archived-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ddd;
    object-fit: cover;
}

.status-archived { 
    background: #e2e3e5; 
    color: #383d41; 
}

.download-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.download-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.download-btn {
    background: var(--accent-pink);
    color: var(--white);
    text-decoration: none;
    text-align: center;
    padding: 10px;
    border-radius: 12px;
    font-weight: 600;
    display: block;
    transition: background 0.2s, transform 0.2s;
}

.download-btn:hover {
    background: #e05590;
    transform: scale(1.02);
}

.download-card .download-btn + .download-btn {
    margin-top: 8px;
}

.section-label {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 10px 5px;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
