/* ssh.css - the /ssh page's own rules, on top of terminal.css.
   Lifted out of an inline <style> block so style-src can be a flat 'self'.
   Loaded after terminal.css, which is what lets it override the fixed-height
   terminal body below. */
/* The /ssh page scrolls normally, unlike the fixed-height terminal body. */
html, body {
    overflow: auto;
    height: auto;
    min-height: 100vh;
}

.ssh-header {
    background-color: #1a1a1a;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid #404040;
}

.ssh-header h1 {
    color: #ffffff;
    font-size: 18px;
}

.ssh-header .ssh-meta {
    color: #808080;
    font-size: 13px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.ssh-header a {
    color: #ffff00;
    text-decoration: none;
}

.ssh-header a:hover {
    text-decoration: underline;
}

.ssh-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.ssh-card {
    background-color: #0d0d0d;
    border: 1px solid #404040;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}

.ssh-card h2 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 16px;
}

.ssh-card label {
    display: block;
    color: #c0c0c0;
    margin-bottom: 4px;
    font-size: 14px;
}

.ssh-card input,
.ssh-card textarea {
    width: 100%;
    padding: 8px 12px;
    background-color: #000000;
    border: 1px solid #404040;
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
}

.ssh-card textarea {
    resize: vertical;
    min-height: 90px;
    word-break: break-all;
}

.ssh-card input:focus,
.ssh-card textarea:focus {
    outline: none;
    border-color: #ffff00;
    box-shadow: 0 0 4px rgba(255, 255, 0, 0.3);
}

.ssh-hint {
    color: #707070;
    font-size: 12px;
    margin-top: 4px;
}

.ssh-error {
    color: #ff6060;
    background-color: rgba(255, 96, 96, 0.1);
    border: 1px solid #ff6060;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 12px 0;
    font-size: 13px;
}

.ssh-muted {
    color: #808080;
    font-size: 14px;
}

.ssh-keys {
    list-style: none;
}

.ssh-key {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #262626;
    flex-wrap: wrap;
}

.ssh-key:first-child {
    border-top: none;
}

.ssh-key-info {
    min-width: 0;
    flex: 1;
}

.ssh-key-name {
    color: #ffffff;
    font-weight: bold;
}

.ssh-key-type {
    color: #00c000;
    font-size: 12px;
    margin-left: 8px;
}

.ssh-key-fp {
    color: #909090;
    font-size: 12px;
    word-break: break-all;
    margin-top: 2px;
}

.ssh-key-meta {
    color: #707070;
    font-size: 12px;
    margin-top: 2px;
}

.btn-danger {
    background-color: #401515;
    color: #ff8080;
    border: 1px solid #a03030;
    align-self: flex-start;
}

.btn-danger:hover {
    background-color: #5a1d1d;
}

/* Avstånd mellan grupperna på sidan. Ersätter style="margin-top" i markup, som
   style-src 'self' inte tillåter. */
.ssh-gap-sm { margin-top: 16px; }
.ssh-gap-md { margin-top: 20px; }
