:root {
    --bg-color: #121212;
    --card-bg: rgba(25, 25, 25, 0.4);
    --primary-color: #00e5ff;
    --secondary-color: #ff00e5;
    --text-color: #ffffff;
    --shadow-color: rgba(0, 229, 255, 0.3);
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 229, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 229, 0.05) 0%, transparent 20%);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: glow 5s infinite;
    position: relative;
    z-index: 1;
}

.container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(255, 0, 229, 0.3));
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(3px);
    pointer-events: none;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.email-display {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.email-display::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px 10px 0 0;
}

.email-text {
    font-size: 1.2rem;
    word-break: break-all;
    text-align: center;
    letter-spacing: 0.5px;
    color: var(--text-color);
    font-weight: 500;
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

button:hover::before {
    opacity: 1;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

button:active {
    transform: translateY(0);
}

.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 229, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid var(--primary-color);
    opacity: 0;
    z-index: 1000;
    width: 90%;
    max-width: 300px;
    text-align: center;
    font-size: 0.9rem;
}

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

.icon {
    font-size: 1.2rem;
}

@media (max-width: 700px) {
    .container {
        width: 100%;
        min-height: 100vh;
        max-width: none;
        border-radius: 0;
        padding: 2rem 1rem;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    h1 {
        font-size: 1.5rem;
    }

    .email-display {
        margin: 2rem 0;
        padding: 1.2rem;
    }

    .email-text {
        font-size: 1rem;
        word-break: break-all;
    }

    .buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    button {
        width: 100%;
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }
}

/* Animation for email generation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Glow effect for the container */
@keyframes glow {
    0% { box-shadow: 0 8px 32px var(--shadow-color); }
    50% { box-shadow: 0 8px 42px rgba(0, 229, 255, 0.5), 0 0 20px rgba(255, 0, 229, 0.3); }
    100% { box-shadow: 0 8px 32px var(--shadow-color); }
}
