main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.error-shell {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, #0d0b1e, #1b1633);
    color: #f7f8ff;
}

.error-card {
    max-width: 620px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 36px 48px;
    box-shadow: 0 20px 45px rgba(3, 3, 12, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.error-code {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.error-status {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #17b890;
    margin-bottom: 16px;
}

.error-message {
    font-size: 1.05rem;
    color: #f4f5ff;
    margin-bottom: 8px;
}

.error-hint {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.error-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.error-action {
    display: inline-flex;
    padding: 10px 22px;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    background: #432c74;
    color: white;
    box-shadow: 0 10px 20px rgba(67, 44, 116, 0.4);
    transition: transform 0.2s ease, background 0.2s ease;
}

.error-action.subtle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: white;
    box-shadow: none;
}

.error-action:hover {
    transform: translateY(-2px);
}

.error-action.subtle:hover {
    border-color: white;
}

@media (max-width: 767px) {
    .error-card {
        padding: 28px;
    }
}
