/**
 * パスワード生成ツール スタイル
 *
 * @package ToolZoo
 */

/* コンテナ */
.toolzoo-password-container {
    max-width: 700px;
    margin: 20px auto;
    padding: 25px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toolzoo-password-header h3 {
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    font-size: 20px;
    color: #333;
}

/* オプション選択エリア */
.toolzoo-password-options {
    margin-bottom: 25px;
}

.toolzoo-option-group {
    margin-bottom: 20px;
}

.toolzoo-option-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* スライダー */
.toolzoo-password-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.toolzoo-password-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
}

.toolzoo-password-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0073aa;
    cursor: pointer;
    border: none;
}

.toolzoo-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

#toolzoo-length-value {
    font-weight: bold;
    color: #0073aa;
}

/* チェックボックス */
.toolzoo-checkbox-label {
    display: block;
    margin-bottom: 10px;
    font-weight: normal;
    cursor: pointer;
}

.toolzoo-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* ボタン */
.toolzoo-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.toolzoo-btn:hover {
    transform: translateY(-1px);
}

.toolzoo-btn:active {
    transform: translateY(0);
}

.toolzoo-btn-primary {
    background: #0073aa;
    color: white;
}

.toolzoo-btn-primary:hover {
    background: #005a87;
}

.toolzoo-btn-primary.copied {
    background: #28a745;
}

/* エラーメッセージ */
.toolzoo-error {
    padding: 10px 15px;
    margin-top: 10px;
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 4px;
    color: #c62828;
    font-size: 14px;
}

/* 結果エリア */
.toolzoo-password-results h4 {
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    color: #333;
}

/* パスワードリスト */
.toolzoo-password-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
}

.toolzoo-password-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.toolzoo-password-item:last-child {
    border-bottom: none;
}

.toolzoo-password-item:hover {
    background-color: #f0f0f0;
}

.toolzoo-password-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #333;
    flex: 1;
    margin-right: 15px;
    word-break: break-all;
    line-height: 1.5;
}

.toolzoo-copy-single-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.toolzoo-copy-single-btn:hover {
    background: #005a87;
}

.toolzoo-copy-single-btn.copied {
    background: #28a745;
}

/* すべてコピーボタン */
.toolzoo-copy-all-container {
    text-align: center;
    margin-top: 15px;
}

#toolzoo-copy-all-btn {
    padding: 10px 30px;
}

/* 初期状態のメッセージ */
.toolzoo-initial-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .toolzoo-password-container {
        padding: 20px 15px;
        margin: 15px 10px;
    }

    .toolzoo-password-header h3 {
        font-size: 18px;
    }

    .toolzoo-password-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 12px;
    }

    .toolzoo-password-text {
        margin-bottom: 10px;
        margin-right: 0;
        font-size: 13px;
    }

    .toolzoo-copy-single-btn {
        align-self: flex-end;
        width: 100%;
        max-width: 120px;
    }

    .toolzoo-btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .toolzoo-password-container {
        padding: 15px 10px;
    }

    .toolzoo-password-text {
        font-size: 12px;
    }

    .toolzoo-password-list {
        max-height: 400px;
    }
}

/* スクロールバーのスタイル（Webkit系ブラウザ） */
.toolzoo-password-list::-webkit-scrollbar {
    width: 8px;
}

.toolzoo-password-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.toolzoo-password-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.toolzoo-password-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}
