/* Tool wrapper page — banner/index.php */

/* ── Tool Workspace ──────────────────────────────── */
.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 130px);
    gap: 12px;
}

/* ── Top Tool Navigation Bar ─────────────────────── */
.tool-top-nav {
    background: #fff;
    padding: 8px 12px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    flex-shrink: 0;
}
.tool-top-nav::-webkit-scrollbar { display: none; }

.nav-list {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-item { flex-shrink: 0; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #64748b;
    transition: all 0.15s;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid transparent;
    white-space: nowrap;
}
.nav-link:hover  { background: #f1f5f9; color: #2563eb; }
.nav-link.active {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
    box-shadow: 0 1px 4px rgba(37,99,235,0.1);
}
.nav-icon { font-size: 1rem; }
.nav-text { font-size: 0.82rem; }

/* ── Tool Content Area ───────────────────────────── */
.tool-content   { width: 100%; min-width: 0; flex: 1; }
.banner-container { background: transparent; padding: 0; }

.banner-header { margin-bottom: 12px; }
.banner-title  {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
}

.banner-footer {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    color: #64748b;
    font-size: 0.88rem;
    border: 1px solid #e2e8f0;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1099px) {
    .dashboard-wrapper { min-height: auto; gap: 10px; }
    .tool-top-nav { padding: 7px 10px; }
    .nav-link { padding: 6px 10px; }
    .nav-text { display: none; }       /* tablet: icon만 표시 */
    .nav-link.active .nav-text { display: inline; }  /* active는 텍스트 유지 */
}

@media (max-width: 767px) {
    .dashboard-wrapper { gap: 8px; }
    .tool-top-nav { padding: 6px 8px; border-radius: 10px; }
    .nav-link { padding: 8px; gap: 0; }
    .nav-text  { display: none !important; }
    .nav-icon  { font-size: 1.1rem; }
    .banner-title { font-size: 1.1rem; }
}
