/* Корневой блок */
.exception {
    background: #1e1e1e;
    color: #e8e8e8;
    padding: 20px;
    border-radius: 12px;
    max-width: 850px;
    margin: 20px auto;
    font-family: Consolas, "Fira Code", monospace;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-left: 5px solid #ff5555;
}

/* Ссылки */
.exception a {
    color: #4aa3ff;
    text-decoration: none;
}
.exception a:hover {
    text-decoration: underline;
}

.exceptionActions {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 140px));
    gap: 12px;
    margin-bottom: 18px;
}

.exception .exceptionAction {
    display: flex;
    box-sizing: border-box;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    border: 1px solid #454545;
    border-radius: 10px;
    background: #252525;
    color: #e8e8e8;
    text-align: center;
}

.exception .exceptionAction:hover {
    border-color: #4aa3ff;
    background: #303030;
    text-decoration: none;
}

.exceptionActionIcon {
    width: 52px;
    height: 52px;
    margin-bottom: 3px;
}

.exceptionAction strong {
    font-size: 14px;
}

.exceptionAction span {
    color: #b8b8b8;
    font-size: 11px;
}

@media (max-width: 480px) {
    .exceptionActions {
        grid-template-columns: repeat(2, minmax(105px, 1fr));
    }
}

/* Заголовок ошибки */
.exception .title {
    font-size: 20px;
    font-weight: bold;
    color: #ff5555;
    margin-top: 15px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Сообщение ошибки */
.exception .message {
    background: #2a2a2a;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    white-space: pre-wrap;
    font-size: 15px;
}

/* Stack trace */
.exception .stack {
    background: #111;
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    white-space: pre-wrap;
    line-height: 1.45;
}

/* Одна строка стека */
.exception .stackLine {
    margin-bottom: 4px;
    padding-left: 4px;
}

/* Имя файла */
.exception .filename {
    color: #4aa3ff;
}

/* Имя функции */
.exception .functionname {
    color: #b38aff;
}

/* Номер строки и столбца */
.exception .lineno,
.exception .colno {
    color: #ffd27f;
}
