/* ================================================================
   菜刀客在线工具页 · password-generator.html 私有样式
   需在 /css/common.css 之后加载。
   ================================================================ */

/* ---- 字符类型卡片（复用 .radio-card 选中态）---- */
.check-card b {
    font-weight: 600;
}

.check-card span {
    font-size: 12px;
    color: #6b7280;
}

.check-card:not(.active) span {
    color: #374151;
}

/* ---- 行内复选项 ---- */
.opt-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

.opt-check input {
    accent-color: #667eea;
    width: 15px;
    height: 15px;
}

/* ---- 密码列表 ---- */
.pwd-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px;
}

.pwd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    transition: border-color 0.2s;
}

.pwd-item:hover {
    border-color: #667eea;
}

.pwd-item .index {
    color: #9ca3af;
    font-size: 12px;
    flex-shrink: 0;
    width: 24px;
}

.pwd-item .pwd-text {
    flex: 1;
    word-break: break-all;
    color: #374151;
    user-select: all;
}

.pwd-item .pwd-copy {
    flex-shrink: 0;
}

.pwd-item .pwd-copy.copied {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

/* ---- 历史记录 ---- */
.history-tip {
    font-size: 12px;
    color: #9ca3af;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow: auto;
}

.history-row {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.history-row:hover {
    border-color: #667eea;
}

.history-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
}

.history-meta .num {
    color: #667eea;
    font-weight: 600;
}

.history-meta .time {
    flex: 1;
}

.history-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
}

.history-pwds {
    flex: 1;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #374151;
    word-break: break-all;
    max-height: 120px;
    overflow: auto;
    line-height: 1.7;
}

.history-row .pwd-copy {
    flex-shrink: 0;
}

/* ---- 空历史 / 空结果 ---- */
.no-history {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 20px 0;
}