@charset "utf-8";

.cron-container {
    max-width: 800px;
    margin: 0 auto;
}

/* タイトル見出し */
.cron-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* タブUI */
.cron-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.cron-tab-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #ccc;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.cron-tab-btn.active {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

.cron-tab-content {
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cron-tab-content.active {
    display: block;
}

/* ジェネレーター（UIから作成）のフォーム */
.cron-gen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.cron-gen-group label {
    display: block;
    font-weight: bold;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.cron-gen-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* ターミナル風入力 (直接入力) */
.cron-terminal-input {
    background: #1e1e1e;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 32px;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #333;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.cron-terminal-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* 出力結果エリア */
.cron-result-box {
    background: #fdfdfd;
    border-left: 5px solid #00b900;
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cron-result-box.error {
    border-left-color: #f44336;
    background: #fff5f5;
}

.cron-translation {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 15px;
}

.cron-result-box.error .cron-translation {
    color: #d32f2f;
    font-size: 18px;
}

.cron-schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cron-schedule-list li {
    font-family: monospace;
    font-size: 16px;
    color: #555;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.cron-schedule-list li:last-child {
    border-bottom: none;
}

.cron-schedule-list li span {
    display: inline-block;
    width: 20px;
    font-weight: bold;
    color: #999;
}

/* 用語集テーブル */
.cron-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 14px;
}

.cron-table th,
.cron-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.cron-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
    width: 30%;
}

.cron-table code {
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    color: #d32f2f;
    font-family: monospace;
    font-weight: bold;
}