/* src/public/css/id-generator.css … UUID / ULID / NanoID 一括ジェネレーター
   ダークモードは theme-dark.css の末尾（=== IDジェネレーター ===）にあります */

.idg-box { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 18px; margin-top: 18px; }
.idg-h2 { font-size: 1.05rem; color: #2a5298; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.idg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.idg-grid[hidden], .idg-options[hidden], .idg-field[hidden] { display: none; }
.idg-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.idg-wide { grid-column: span 2; }
.idg-label { font-weight: bold; color: #2a5298; font-size: 0.9rem; }
.idg-field select,
.idg-field input,
.idg-field textarea {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    max-width: 100%;
    box-sizing: border-box;
}
.idg-field textarea,
.idg-field input[type="text"] { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }
.idg-field input[hidden] { display: none; }
.idg-options { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; font-size: 0.9rem; color: #334155; }
.idg-options label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.idg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.idg-btn {
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.idg-btn:hover { background: #e2e8f0; }
.idg-btn-primary { background: #2a5298; border-color: #2a5298; color: #fff; }
.idg-btn-primary:hover { background: #1e3c72; }
.idg-status { min-height: 1.2em; font-size: 0.85rem; color: #16a34a; margin: 8px 0; }
.idg-status.is-error { color: #b91c1c; }
.idg-output {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    background: #f8fafc;
    white-space: pre;
    overflow-x: auto;
}
.idg-table-wrap { overflow-x: auto; }
.idg-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.idg-table th, .idg-table td { padding: 8px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.idg-table th { background: #f8fafc; color: #475569; }
.idg-table td:first-child { font-weight: bold; white-space: nowrap; }
.idg-table code { font-size: 0.8rem; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; word-break: break-all; }

@media (max-width: 600px) {
    .idg-wide { grid-column: auto; }
    .idg-btn { flex: 1 1 auto; justify-content: center; }
}
