@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.container {
    width: 100%;
    min-height: 100vh;
    padding: 50px 20px;
}

.card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fce7f3;
    color: #db2777;
    border-radius: 18px;
    font-size: 32px;
    font-weight: bold;
}

h1 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 800;
}

.header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.generator-box {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    outline: none;
}

select:focus {
    border-color: #db2777;
}

.generate-btn {
    height: 46px;
    border: none;
    background: #db2777;
    color: #ffffff;
    padding: 0 24px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.generate-btn:hover {
    background: #be185d;
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.result-section {
    margin-top: 35px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.result-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.result-header p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.action-buttons button {
    border: none;
    background: #111827;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.action-buttons button:hover {
    background: #374151;
}

.results {
    display: grid;
    gap: 8px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

.results::-webkit-scrollbar {
    width: 6px;
}

.results::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.results::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.username-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 14px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: 0.2s ease;
}

.username-item:hover {
    background: #ffffff;
    border-color: #d1d5db;
}

.username-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
}

.username {
    font-family: monospace;
    font-size: 15px;
    font-weight: 600;
    word-break: break-all;
}

.copy-btn {
    min-width: 76px;
    border: none;
    background: #f3f4f6;
    color: #374151;
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.copy-btn:hover {
    background: #e5e7eb;
}

.copy-btn.copied {
    background: #dcfce7;
    color: #15803d;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    z-index: 999;
    transform: translateX(-50%) translateY(100px);
    background: #111827;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {

    .container {
        padding: 25px 12px;
    }

    .card {
        padding: 22px 16px;
        border-radius: 14px;
    }

    h1 {
        font-size: 22px;
    }

    .generator-box {
        flex-direction: column;
        align-items: stretch;
    }

    .generate-btn {
        width: 100%;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons {
        width: 100%;
    }

    .action-buttons button {
        flex: 1;
    }

    .username {
        font-size: 13px;
    }

    .copy-btn {
        min-width: 65px;
        padding: 8px 10px;
    }

}