* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #121212; color: #e0e0e0; }
nav { display: flex; gap: 16px; padding: 12px 24px; background: #1e1e1e; }
nav a { color: #90caf9; text-decoration: none; }
main { padding: 24px; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { padding: 8px; border-bottom: 1px solid #333; text-align: left; vertical-align: top; }
button { background: #1976d2; color: #fff; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
button.danger { background: #c62828; }
input { background: #1e1e1e; color: #e0e0e0; border: 1px solid #333; padding: 6px; border-radius: 4px; }
.card { background: #1e1e1e; padding: 16px; border-radius: 8px; max-width: 400px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.inline { display: inline-flex; gap: 4px; align-items: center; }
.error { color: #ef5350; }
body { min-height: 100vh; }
nav { align-items: center; box-shadow: 0 1px 0 #333; }
nav a:first-child { font-weight: 600; }
nav a:hover { color: #fff; text-decoration: underline; }
main { max-width: 1000px; margin: 0 auto; }
h1 { font-weight: 600; letter-spacing: .2px; }
table tr:hover td { background: #181818; }
button:hover { background: #1e88e5; }
button.danger:hover { background: #e53935; }
input:focus { outline: none; border-color: #1976d2; }
.card { box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.card h2 { margin: 0 0 8px; }

/* Центрируем ВСЁ содержимое страниц */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Карточки (логин, новое приложение и т.п.) */
.card {
    width: 100%;
    max-width: 420px;
    align-self: center;
}

/* Вертикальный layout: «Новое приложение» сверху, таблица снизу */
.layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.sidebar,
.content {
    width: 100%;
    max-width: 1000px;
}

/* Таблицы внутри контента — на всю ширину */
.content table {
    width: 100%;
}

/* Красивые статусы */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    display: inline-block;
}
.badge.success { background: rgba(46, 125, 50, 0.2); color: #81c784; }
.badge.warning { background: rgba(239, 108, 0, 0.2); color: #ffb74d; }

/* Зеленая кнопка для подтверждения */
button.success { background: #2e7d32; }
button.success:hover { background: #43a047; }