
:root {
    --bg: #0b1120;
    --surface: #151f32;
    --surface2: #1c2940;
    --border: #2a3952;
    --text: #e7edf7;
    --muted: #91a1b9;
    --blue: #4389ed;
    --green: #22b88a;
    --purple: #a47bed;
    --red: #e66c78;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
}

a {
    color: #77aaff;
    text-decoration: none;
}

a:hover { color: white; }

.navbar {
    min-height: 70px;
    background: #111b2d;
    border-bottom: 1px solid var(--border);
    padding: 16px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.brand {
    font-size: 19px;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.nav-links span { color: var(--muted); }

.logout { color: var(--red); }

.container {
    max-width: 1400px;
    margin: auto;
    padding: 40px 24px;
}

h1 { font-size: 32px; margin-bottom: 10px; }
h2 { font-size: 21px; }
p { line-height: 1.6; color: var(--muted); }

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 30px 0;
}

.stat-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 14px;
    color: var(--text);
}

.stat-card span {
    font-weight: bold;
    font-size: 17px;
}

.stat-card strong {
    font-size: 36px;
    margin: 12px 0;
}

.stat-card small { color: var(--muted); }

.stat-card.npm { border-top: 3px solid var(--blue); }
.stat-card.apm { border-top: 3px solid var(--green); }
.stat-card.euem { border-top: 3px solid var(--purple); }

.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px 0;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.filters input { flex: 2; min-width: 200px; }
.filters select { flex: 1; min-width: 160px; }
.filters .btn { flex: 0 0 auto; }

.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.filter-check input { width: auto; }

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.solution-card, .detail-card, .panel, .form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}

.solution-card {
    min-width: 0;
    transition: .2s;
}

.solution-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue);
}

.solution-card h2 { color: white; }
.solution-top {
    display: flex;
    justify-content: space-between;
}

.solution-logo {
    display: block;
    max-width: 110px;
    max-height: 65px;
    object-fit: contain;
    margin: 20px 0;
}

.tag {
    display: inline-block;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
}

.tag.npm { background: #193d6d; color: #80b7ff; }
.tag.apm { background: #174e43; color: #69e2b9; }
.tag.euem { background: #49356d; color: #c4a8ff; }

.favorite-btn {
    background: none;
    border: none;
    color: #f5ca58;
    font-size: 26px;
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.btn.primary {
    background: var(--blue);
    color: white;
}

.btn.secondary {
    background: var(--surface2);
    color: white;
    border: 1px solid var(--border);
}

.btn.small { padding: 7px 10px; font-size: 12px; }
.btn.full { display: block; width: 100%; margin-top: 20px; }

.detail-card { margin-top: 30px; }
.screenshot {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    margin: 20px 0;
    border-radius: 10px;
    background: #080e19;
}

.panel { margin: 25px 0; }
.admin-links { display: flex; gap: 25px; margin: 30px 0; }

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
th { color: var(--muted); }

.form-card {
    max-width: 750px;
    display: grid;
    gap: 12px;
    margin-top: 25px;
}

.form-card label { font-weight: bold; }
.form-card textarea { min-height: 120px; resize: vertical; }

.alert {
    background: #562a37;
    color: #ffc2ca;
    padding: 13px;
    border-radius: 8px;
    margin: 15px 0;
}

.empty { text-align: center; padding: 60px; }

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: radial-gradient(circle at top, #1d3760, var(--bg) 60%);
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 38px;
    text-align: center;
}

.login-card input {
    margin: 10px 0 20px;
    text-align: left;
}

.login-card label {
    display: block;
    text-align: left;
}

.login-card .btn { margin-top: 15px; }

.brand-icon {
    font-size: 48px;
    color: #62cbbd;
}

@media(max-width: 900px) {
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 600px) {
    .solutions-grid, .stats-grid { grid-template-columns: 1fr; }
    h1 { font-size: 25px; }
    .navbar { align-items: flex-start; }
    .nav-links { gap: 12px; }
    .container { padding: 25px 15px; }
}

.language-switch {
    display: flex;
    gap: 5px;
    padding: 5px;
    background: #1c2940;
    border: 1px solid #2a3952;
    border-radius: 8px;
}

.language-switch a {
    padding: 7px 10px;
    border-radius: 6px;
    color: #91a1b9;
    font-size: 13px;
    font-weight: bold;
}

.language-switch a.selected {
    background: #4389ed;
    color: white;
}
