@font-face {
    font-family: "Hiragino Maru Gothic";
    src: url("../fonts/HiraginoMaruGothic.ttc") format("truetype");
}

:root {
    --bg: #f3f5f9;
    --panel: #ffffff;
    --text: #122033;
    --muted: #5b6678;
    --line: #dbe3ef;
    --header-bg: #0f172a;
    --header-border: #f3d970;
    --header-text: #eef2ff;
    --accent: #f3d970;
    --accent-hover: #e5c65d;
    --accent-text: #2e4a08;
}

body {
    font-family: "Hiragino Maru Gothic", "Yu Gothic UI", "Meiryo", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.glv-navbar {
    background: var(--header-bg) !important;
    border-bottom: 3px solid var(--header-border);
}

.navbar-brand {
    color: var(--accent) !important;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.navbar-toggler {
    border-color: rgba(238, 242, 255, 0.4);
}

.navbar-toggler-icon {
    filter: invert(1) brightness(1.2);
}

.nav-link {
    color: var(--header-text) !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.36rem 0.78rem !important;
    margin-right: 0.2rem;
}

.nav-link:hover,
.nav-link:focus {
    color: #ffffff !important;
    background: rgba(243, 217, 112, 0.16);
}

.nav-link.active {
    background: rgba(243, 217, 112, 0.28);
    color: #fff7c7 !important;
}

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.15);
    padding: 0.35rem;
}

.dropdown-item {
    border-radius: 8px;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #eff3ff;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--header-text);
    padding: 0.3rem 0.62rem;
    font-size: 12px;
    line-height: 1;
}

.chip-ygrid {
    font-family: "Consolas", "Menlo", monospace;
    font-weight: 700;
    color: #ffffff;
}

.chip-name {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chip-role {
    border-radius: 999px;
    background: rgba(243, 217, 112, 0.22);
    color: #fff5c8;
    font-weight: 700;
    padding: 0.2rem 0.46rem;
}

.btn-warning {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

.btn-warning:hover,
.btn-warning:focus {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #243d06;
}

.container {
    max-width: 1280px;
}

.container.mt-5 {
    margin-top: 1.2rem !important;
}

.page-title {
    color: #0d1b31;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.page-lead {
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.card {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.card-header {
    background: #f8fafe;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
}

.table > :not(caption) > * > * {
    border-bottom-color: #e3e8f2;
}

.table th {
    color: #334155;
    font-size: 12px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.table td .btn {
    white-space: nowrap;
}

.table-responsive {
    border-radius: 10px;
}

.form-control,
.form-select {
    border-radius: 9px;
    border-color: #cfd8e6;
}

.form-control:focus,
.form-select:focus {
    border-color: #8db4ff;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12);
}

.alert {
    border-radius: 10px;
}

.app-footer {
    background: #111827;
    color: #ffffff;
    padding: 10px 16px;
    text-align: center;
    font-size: 12px;
    margin-top: 18px;
}

@media (max-width: 991px) {
    .user-chip {
        max-width: 100%;
    }

    .chip-name {
        max-width: 120px;
    }
}

.mono {
    font-family: Consolas, Menlo, monospace;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.tag.active {
    background: #dcfce7;
    color: #166534;
}

.tag.inactive {
    background: #e2e8f0;
    color: #334155;
}

.tag.danger {
    background: #fee2e2;
    color: #991b1b;
}

.tag.scheduled {
    background: #dbeafe;
    color: #1d4ed8;
}
