body {
    margin: 20px;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* インターバル設定ラジオボタンのスタイル */
.interval-type-selector {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 5px;
}

.interval-type-selector .form-check {
    margin-bottom: 8px;
}

.interval-type-selector .form-check:last-child {
    margin-bottom: 0;
}

.interval-type-selector .form-check-input {
    margin-top: 0.25em;
    margin-right: 8px;
}

.interval-type-selector .form-check-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

.interval-type-selector .form-check-input:checked+.form-check-label {
    color: #0d6efd;
    font-weight: 600;
}

.interval-type-selector .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.header {
    background-color: #7286D3;
    color: white;
    padding: 20px 30px;
    text-align: left;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(114, 134, 211, 0.3);
}

.sidebar {
    background-color: #7286D3;
    width: 250px;
    height: calc(100vh - 240px);
    position: fixed;
    left: 20px;
    top: 125px;
    padding: 25px 0;
    border-radius: 0;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(114, 134, 211, 0.3);
}



.main-content {
    margin-left: 290px;
    margin-top: 40px;
    padding: 30px;
    background-color: white;
    height: calc(100vh - 240px);
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.input-section {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.input-fields {
    flex: 1;
}

.info-panel {
    flex: 1;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0;
    padding: 20px;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 4px;
    font-size: 14px;
}



.footer {
    background-color: #7286D3;
    color: white;
    text-align: center;
    padding: 20px;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(114, 134, 211, 0.3);
}

.schedule-card {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.schedule-card .card-header {
    padding: 20px 25px;
}

.schedule-card .card-body {
    padding: 0;
}

.schedule-item {
    padding: 20px 25px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
}

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

.schedule-item h6 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.schedule-item .text-dark {
    font-size: 0.95rem;
    line-height: 1.4;
}

.schedule-item .text-muted {
    margin-left: 8px;
}

.interval-item {
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
    padding: 10px 25px;
}

.interval-item .schedule-number {
    background-color: #6c757d;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 15px;
}

/* 定期インターバル用の区切り線スタイル */
.interval-separator {
    padding: 20px 25px;
    margin-left: 35px;
    text-align: center;
    background-color: #f8f9fa;
}

.interval-line {
    border: none;
    border-top: 2px solid #dc3545;
    margin: 10px 0;
    width: 100%;
}

.interval-text {
    color: #dc3545;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 10px 0;
    background-color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    border: 2px solid #dc3545;
}

.schedule-number {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.stats-card {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* プレースホルダーのスタイル */
.form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

.form-control:focus::placeholder {
    opacity: 0.5;
}

/* 小さい入力フィールドのスタイル */
.input-small {
    max-width: 150px;
    width: 100%;
}

/* 小さいラベルのスタイル */
.form-label.small {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

/* input-group-textの高さ調整 */
.input-group-text {
    height: auto;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #495057;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}



.sidebar button {
    width: 85%;
    padding: 15px 20px;
    margin: 8px auto;
    border: none;
    background-color: #5a6bc4;
    color: white;
    text-align: left;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: block;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(90, 107, 196, 0.3);
}

.sidebar button:hover {
    background-color: #4a5bb4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 107, 196, 0.4);
}

.sidebar button:focus,
.sidebar button:focus-visible {
    background-color: #4a5bb4 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(90, 107, 196, 0.3) !important;
    border: none !important;
}

.sidebar button.active {
    background-color: #8b9de3;
    border-left: 4px solid #007bff;
    box-shadow: 0 4px 12px rgba(139, 157, 227, 0.4);
}

/* 印刷用スタイル */
@media print {
    body * {
        visibility: hidden;
    }

    #schedule-content,
    #schedule-content * {
        visibility: visible;
    }

    #schedule-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
        padding: 20px;
    }

    .schedule-item {
        page-break-inside: avoid;
        border-bottom: 1px solid #000;
        padding: 15px 0;
    }

    .schedule-number {
        background: #000 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    .btn {
        display: none !important;
    }

    .card-header {
        background: #000 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    /* 印刷時のヘッダーテキスト変更 */
    .card-header h4 {
        font-size: 1.5rem !important;
        margin: 0;
    }

    .card-header h4::after {
        content: "作業スケジュール";
        display: block;
    }

    .card-header h4 .original-text {
        display: none;
    }

    /* URL表示を非表示 */
    @page {
        margin: 1cm;
        size: A4;
    }

    /* 印刷時のページ設定 */
    body {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    /* 印刷時のURL表示を完全に非表示 */
    @media print {
        * {
            -webkit-print-color-adjust: exact !important;
            color-adjust: exact !important;
        }

        /* ブラウザのURL表示を非表示 */
        @page :first {
            margin-top: 0;
        }

        @page :left {
            margin-left: 0;
        }

        @page :right {
            margin-right: 0;
        }
    }
}