* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #333;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

.config-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

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

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

label input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    display: inline-block;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

input:disabled, select:disabled {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
}

.collapsible-section {
    margin-top: 15px;
}

.collapsible-header {
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
    margin: 0;
    font-size: 16px;
    color: #555;
    border-bottom: 1px solid #ddd;
    transition: color 0.2s;
}

.collapsible-header:hover {
    color: #333;
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.2s;
    margin-right: 8px;
    font-size: 12px;
}

.toggle-icon.rotated {
    transform: rotate(90deg);
}

.collapsible-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 1000px;
    padding-top: 15px;
}

.collapsible-content.collapsed {
    max-height: 0;
    padding-top: 0;
}

.validation-status {
    margin-top: 10px;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #28a745;
}

.validation-status.success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.validation-status.error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.validation-status.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.form-disabled-message {
    margin-top: 15px;
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    color: #721c24;
}

.form-disabled-message strong {
    display: block;
    margin-bottom: 5px;
}

.in-stock-message {
    margin-top: 15px;
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    color: #155724;
}

.in-stock-message strong {
    display: block;
    margin-bottom: 5px;
}

.form-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.start-btn {
    background: #28a745;
    color: white;
}

.start-btn:hover {
    background: #218838;
}

.stop-btn {
    background: #dc3545;
    color: white;
}

.stop-btn:hover {
    background: #c82333;
}

.test-btn {
    background: #6c757d;
    color: white;
}

.test-btn:hover {
    background: #5a6268;
}

.status-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

.status {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.status.monitoring {
    color: #28a745;
}

.status.stopped {
    color: #dc3545;
}

.status.in-stock {
    color: #007bff;
}

.log-section {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: #f1f1f1;
    border-radius: 5px;
    font-family: monospace;
    font-size: 14px;
    border: 1px solid #ddd;
}

.log-entry {
    margin-bottom: 5px;
    padding: 5px;
    border-left: 3px solid #007bff;
    background: white;
}

.log-entry.error {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.log-entry.success {
    border-left-color: #28a745;
    background: #f0fff4;
}

.timestamp {
    color: #666;
    font-size: 12px;
}

.product-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 10px;
}

.disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    button {
        width: 100%;
        max-width: 200px;
    }
}