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

/* === BASE === */
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: radial-gradient(circle at top, #0f3d3e, #062c36);
    overflow: hidden;
    color: #d9f4ff;
}

/* === PARTICULAS === */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* === CARD === */
.card {
    z-index: 2;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 40px;
    width: 520px;
    box-shadow: 0px 0px 40px rgba(0, 255, 200, 0.15);

    /* FIX Safari */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    text-align: center;
    animation: floatCard 6s ease-in-out infinite alternate;
}

/* === BLUR HOVER === */
.glass-hover:hover {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    background: rgba(255, 255, 255, 0.15);
    transition: 0.3s ease;
}

/* === LOGO ANIMADO === */
.logo {
    height: 65px;
    display: flex;
    justify-content: center;
}

.rocket {
    width: 32px;
    height: 32px;
    background: url('https://cdn-icons-png.flaticon.com/512/3212/3212608.png') no-repeat center;
    background-size: contain;
    animation: rocketFly 3s ease-in-out infinite;
    filter: drop-shadow(0 0 4px #5bffc9);
}

/* === TÍTULO HOLOGRÁFICO === */
.holographic {
    font-size: 32px;
    font-weight: 800;

    background: linear-gradient(90deg, #5bffc9, #0bf5ff, #ff6af5, #5bffc9);
    background-size: 300%;

    /* FIX Safari + estándar */
    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    animation: holoMove 4s linear infinite;
}

/* === RUTAS === */
.routes-box {
    background: rgba(255, 255, 255, 0.08);
    padding: 18px;
    border-radius: 15px;
    margin-bottom: 25px;

    /* soporte extra glass */
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.route {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 14px;
    border-radius: 9px;
    margin-bottom: 10px;
    font-family: monospace;
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* smooth glass */
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.method {
    padding: 4px 8px;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
}

.get { background: #00b359; }
.post { background: rgb(138, 138, 1); }
.put { background: blue;}
.delete { background: #ff3c3c; }

/* === BOTÓN COPIAR === */
.copy-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* === ANIMACIONES === */
@keyframes rocketFly {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes holoMove {
    0% { background-position: 0%; }
    100% { background-position: 300%; }
}

@keyframes floatCard {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* === TOAST COMPLETO === */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #eaffff;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 200, 0.2);
    box-shadow: 0 8px 25px rgba(0, 255, 200, 0.25);
    z-index: 9999;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.35s ease;
}

/* Ícono animado */
.toast-icon {
    font-size: 18px;
    animation: popIn 0.4s ease forwards;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}

/* Mostrar toast */
.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hidden { display: none; }




