wifi-caddy 0.1.0

Platform-agnostic config storage traits, HTTP config portal, and form generation for WiFi configuration managers
Documentation
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}
header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}
header p {
    opacity: 0.9;
    font-size: 14px;
}
.nav {
    background: #f8f9fa;
    padding: 15px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
}
.nav a:hover {
    background: #e9ecef;
}
.content {
    padding: 30px;
}
fieldset {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    background: #fafafa;
}
legend {
    font-weight: bold;
    font-size: 18px;
    color: #667eea;
    padding: 0 10px;
}
.form-group {
    margin-bottom: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}
input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}
.help-text {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}
button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
button[type="submit"]:active {
    transform: translateY(0);
}
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
button[type="button"] {
    background: #f0f0f0;
    color: #333;
}
button[type="button"]:hover {
    background: #e0e0e0;
}
.message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}
.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.message.show {
    display: block;
}
.loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
.loading-overlay {
    border-color: #667eea;
    border-top-color: transparent;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.config-tabs {
    display: flex;
    gap: 8px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}
.config-tab {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: #f0f0f0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.config-tab:hover {
    background: #e0e0e0;
}
/* Higher specificity so active state wins over button[type="button"] and :hover */
button.config-tab.active,
button.config-tab.active:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.config-tab-panel {
    margin-top: 0;
}
.config-loading-overlay {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}
.config-tab-panel.loaded .config-loading-overlay {
    display: none;
}