body {
    font-family: 'Sarabun', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], input[type="date"], input[type="number"], textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

button {
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

.template-container {
    font-family: 'Sarabun', Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.project-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.project-info > div {
    flex: 1 1 200px;
    margin-bottom: 10px;
}

.section {
    margin-bottom: 20px;
}

h1, h2 {
    background-color: #f0f0f0;
    padding: 10px;
    margin-top: 0;
}

.comm-plan {
    display: grid;
    grid-template-columns: repeat(5, minmax(100px, 1fr));
    gap: 2px;
    margin-bottom: 2px;
}

.comm-plan-header, .comm-plan-item {
    padding: 10px;
    text-align: center;
}

.comm-plan-item {
    background-color: #f9f9f9;
}

.hidden {
    display: none;
}

#templateOutput {
    margin-top: 30px;
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
}

.channel-input, .schedule-input {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.channel-input input, .schedule-input input {
    flex: 1 1 150px;
}

@media print {
    body {
        background-color: white;
    }
    .container {
        box-shadow: none;
    }
    button {
        display: none;
    }
}