body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    width: 350px;
    margin: 0;
    padding: 10px;
    background-color: #f4f4f9;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 18px;
    text-align: center;
    color: #444;
    margin-top: 0;
    margin-bottom: 15px;
}

h2 {
    font-size: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
    margin-top: 0;
}

p, label {
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #555;
}

.section {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

button {
    flex-grow: 1;
    padding: 10px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

#startBtn {
    background-color: #28a745;
    color: white;
}
#startBtn:hover {
    background-color: #218838;
}

#stopBtn {
    background-color: #ffc107;
    color: #333;
}
#stopBtn:hover {
    background-color: #e0a800;
}

#exportBtn {
    background-color: #007bff;
    color: white;
}
#exportBtn:hover {
    background-color: #0069d9;
}

#importBtn {
    background-color: #6c757d;
    color: white;
}
#importBtn:hover {
    background-color: #5a6268;
}

#manualClearBtn {
    width: 100%;
    background-color: #dc3545;
    color: white;
}
#manualClearBtn:hover {
    background-color: #c82333;
}

textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 10px;
    resize: vertical;
}

#status, #automationStatus {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    min-height: 20px;
}

#status {
    color: #007bff;
}

#automationStatus {
    color: #17a2b8;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
