@charset "UTF-8";


/* ======== ▼YouTubeタグ変換ページ専用スタイル▼ ======== */
.input-group {
    margin-bottom: 25px;
}

.fetch-wrapper {
    display: flex;
    gap: 10px;
}

.fetch-wrapper input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.status-message {
    font-size: 0.9rem;
    margin-top: 8px;
    height: 1.2em; /* メッセージの有無でレイアウトが崩れないように高さを確保 */
}
.status-message.error {
    color: #d9534f;
}
.status-message.success {
    color: #5cb85c;
}

.code-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
}

.code-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* パスワード生成ページのスタイルを再利用 */
.password-display-area #after-textarea {
    padding-right: 50px;
    height: auto; /* textareaの高さを行数で制御 */
}

.convert-button-wrapper {
    text-align: center;
    margin: -10px 0 15px;
}

/* --- コピーボタンコンポーネントの共通スタイル --- */
.password-display-area {
    position: relative;
    display: flex;
    align-items: center;
}

.copy-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 5;
}
.copy-button:hover {
    color: var(--primary-color);
}

.copy-feedback {
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    /* ▼▼▼ ここが重要 ▼▼▼ */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
}

.copy-feedback.show {
    opacity: 1;
    visibility: visible;
}
