/* Base styles */
body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f5f5f5;
}

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

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

/* Button styles */
button {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

/* Home page styles */
.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

form {
    text-align: center;
}

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

input[type="text"] {
    width: 300px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
}

input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.auth-info {
    text-align: center;
    color: #666;
}

.auth-info code {
    background: #f0f0f0;
    padding: 10px;
    display: inline-block;
    border-radius: 4px;
}

.auth-info .note {
    margin-top: 20px;
    font-size: 14px;
}

/* Control page styles */
.device-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #e9f4ff;
    border-radius: 4px;
}

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

.controls button {
    margin: 10px;
    padding: 15px 30px;
}

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

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

.dispense-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

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

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

.status {
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    min-height: 20px;
}

.status.info {
    background: #d1ecf1;
    color: #0c5460;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
}

.status.success {
    background: #d4edda;
    color: #155724;
}

.timeout-info {
    text-align: center;
    color: #666;
    font-size: 14px;
}
