sshkeyman 0.1.1

Web-based SSH key & config manager in Rust.
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.header {
    background: #2c3e50;
    color: white;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
}

.container {
    display: flex;
    height: calc(100vh - 48px);
}

.sidebar {
    width: 240px;
    background: white;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar h2 {
    font-size: 14px;
    padding: 12px 16px 8px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.key-list {
    list-style: none;
}

.key-item {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.key-item:hover {
    background: #f0f0f0;
}

.key-item.active {
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 500;
}

.key-item.no-private {
    color: #999;
}

.main {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    color: #999;
    margin-top: 100px;
    font-size: 16px;
}

.detail h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 16px;
    margin-bottom: 20px;
}

.detail-grid .label {
    font-weight: 500;
    color: #666;
}

.pubkey-box {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
    white-space: pre-wrap;
    margin-bottom: 20px;
    max-height: 120px;
    overflow-y: auto;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #1565c0;
    color: white;
}

.btn-primary:hover {
    background: #0d47a1;
}

.btn-danger {
    background: #c62828;
    color: white;
}

.btn-danger:hover {
    background: #b71c1c;
}

.btn-secondary {
    background: #eee;
    color: #333;
}

.btn-secondary:hover {
    background: #ddd;
}

.section-title {
    font-size: 18px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1565c0;
}

.form-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 16px;
    align-items: center;
    max-width: 500px;
}

.form-grid input[type="text"],
.form-grid input[type="password"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.form-grid .radio-group {
    display: flex;
    gap: 16px;
}

.form-grid label.field-label {
    font-weight: 500;
    color: #666;
}

.form-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.flash {
    padding: 10px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 14px;
}

.flash-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.flash-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.import-form {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.import-form input[type="file"] {
    font-size: 14px;
}

/* Navigation */
nav {
    display: flex;
    gap: 4px;
}

.nav-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white;
    font-weight: 500;
}

/* Config cards */
.config-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
}

.config-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.config-host {
    font-weight: 600;
    font-size: 16px;
    color: #1565c0;
}

.config-card-actions {
    display: flex;
    gap: 6px;
}

.config-card-body {
    padding: 12px 16px;
}

.config-fields {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 4px 12px;
}

.config-field-key {
    font-family: monospace;
    font-size: 13px;
    color: #666;
}

.config-field-value {
    font-family: monospace;
    font-size: 13px;
    color: #333;
}

/* Button sizes */
.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

/* Host association tags */
.host-association {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.host-association .label {
    font-weight: 500;
    color: #666;
}

.host-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 12px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.host-tag:hover {
    background: #bbdefb;
}

/* Form group */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
}

.form-group .field-label {
    font-weight: 500;
    color: #666;
}