@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --bg-dark: #121212;
    --ui-blue: #364066;
    --ui-border-light: #6d7696;
    --ui-border-dark: #1b1e2b;
    --accent-gold: #ffcc00;
    --accent-green: #2dbd4d;
    --accent-red: #e04c4c;
    --text-shadow: 2px 2px 0 #000;
}

/* --- ОСНОВА --- */
body {
    background-color: #0d0d10;
    /* Узор "звездная ночь" или "глубокая пещера" через CSS */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(46, 54, 87, 0.4) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(45, 189, 77, 0.1) 0%, transparent 20%),
        linear-gradient(rgba(0,0,0,0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.7) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    
    color: white;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
}

/* Кастомный скроллбар (как в игре) */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: var(--ui-border-light);
    border: 2px solid #000;
}

/* --- НАВИГАЦИЯ --- */
.navbar {
    background-color: var(--ui-blue) !important;
    border-bottom: 4px solid var(--ui-border-dark);
    box-shadow: 0 6px 0 rgba(0,0,0,0.5);
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-brand {
    font-size: 2.2rem;
    color: var(--accent-gold) !important;
    text-transform: uppercase;
    text-shadow: var(--text-shadow);
    letter-spacing: 2px;
}

.nav-link {
    color: #ccc !important;
    font-size: 1.5rem;
    transition: 0.2s;
}

.nav-link:hover {
    color: white !important;
    text-shadow: 0 0 5px white;
    transform: translateY(-2px);
}

/* --- ПАНЕЛИ И КАРТОЧКИ (Стиль инвентаря) --- */
.terraria-panel {
    background-color: var(--ui-blue);
    /* Эффект объемной рамки */
    border: 4px solid var(--ui-border-light);
    outline: 4px solid var(--ui-border-dark);
    margin: 10px;
    padding: 20px;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.4);
    position: relative;
}

/* Заголовки */
h2, h3, h4 {
    text-shadow: var(--text-shadow);
    color: white;
}

/* --- IP BOX (ГЛАВНЫЙ ЭЛЕМЕНТ) --- */
.ip-container {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

.ip-box {
    display: inline-block;
    background: linear-gradient(180deg, #58638a 0%, #364066 100%);
    border: 3px solid var(--accent-gold);
    padding: 15px 40px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.3), inset 0 0 20px rgba(0,0,0,0.5);
    transition: all 0.3s;
    overflow: hidden;
}

.ip-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.6);
    border-color: #fff;
}

.ip-text {
    font-size: 3rem;
    color: var(--accent-gold);
    text-shadow: 3px 3px 0 #000;
    margin: 0;
}

.ip-hint {
    font-size: 1.1rem;
    color: #ddd;
    opacity: 0.8;
}

/* Анимация "блеска" */
.ip-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.ip-box:hover::after {
    left: 100%;
}

/* --- ТАБЛИЦА --- */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* Расстояние между строками */
}

.table-custom thead th {
    color: var(--accent-gold);
    text-shadow: 1px 1px 0 #000;
    border: none;
    font-size: 1.5rem;
    padding-bottom: 15px;
}

.table-custom tbody tr {
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 0 2px var(--ui-border-light);
    transition: 0.2s;
}

.table-custom tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.table-custom td {
    padding: 15px;
    border: none;
    vertical-align: middle;
}

/* Бэйджи */
.badge-custom {
    border: 2px solid white;
    padding: 5px 10px;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

/* --- КНОПКИ --- */
.btn-terraria {
    background-color: #58638a;
    border: 2px solid #fff;
    color: white;
    font-size: 1.3rem;
    padding: 8px 20px;
    text-transform: uppercase;
    box-shadow: 4px 4px 0 #000;
    transition: 0.1s;
}

.btn-terraria:hover {
    background-color: #727fae;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000;
    color: var(--accent-gold);
}

.btn-terraria:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* --- ПОЛЯ ВВОДА (INPUTS) --- */
.form-control {
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--ui-border-light);
    color: white !important;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
}

.form-control:focus {
    background-color: rgba(0, 0, 0, 0.6);
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
    color: white;
}

/* Цвет подсказок */
.text-muted {
    color: #8892b0 !important;
}